read device history with dzVents?  [Solved]

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
renerene
Posts: 351
Joined: Wednesday 03 August 2016 11:36
Target OS: -
Domoticz version:
Contact:

read device history with dzVents?

Post by renerene »

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?
User avatar
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]

Post by waaren »

Not directly but possible to access domoticz API with dzVents or lua to get the raw data.
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
Fabruccio
Posts: 1
Joined: Monday 25 November 2019 9:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: read device history with dzVents?

Post by Fabruccio »

Hi. From a rain device:

Code: Select all

http://DA.IP.OF.PI:PORT/json.htm?type=graph&sensor=rain&idx=IDX&range=week
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest