What was the temperature, 24 hours ago?
How long was the switch off, before it was put on?
What was the average power consumption this week?
Which day of last week had the highest temperature?
--> is it possible to read the devices database history with lua or dzVents?
read device history with dzVents? [Solved]
Moderator: leecollings
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: read device history with dzVents? [Solved]
Not directly but possible to access domoticz API with dzVents or lua to get the raw data.
eg.
eg.
Code: Select all
http://domoticz_ip:domoticz_port/json.htm?idx=device_idx&type=lightlog
http://domoticz_ip:domoticz_port/json.htm?type=graph&sensor=temp&idx=device_idx&range=month
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
- Posts: 1
- Joined: Monday 25 November 2019 9:12
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: read device history with dzVents?
Hi. From a rain device:
Code: Select all
http://DA.IP.OF.PI:PORT/json.htm?type=graph&sensor=rain&idx=IDX&range=week
Who is online
Users browsing this forum: No registered users and 1 guest