Historical Text Sensor Values  [Solved]

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

Moderator: leecollings

Post Reply
patardw
Posts: 3
Joined: Wednesday 07 November 2018 21:14
Target OS: Windows
Domoticz version: 2020
Contact:

Historical Text Sensor Values

Post by patardw »

Sorry, I use google translator

I need to get the last 5 values ​​from a text sensor

It can ?
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Historical Text Sensor Values

Post by waaren »

patardw wrote: Tuesday 12 January 2021 21:16 I need to get the last 5 values ​​from a text sensor
Not directly with native dzVents command but you can check with domoticz.openURL() Wether you wil get >= 5 depends on your Log history settings for Light/Switches and when the 5th oldest message was created.

URL = http://<domoticz IP:domoticz port>/json.htm?type=textlog&idx=<device ID>
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
patardw
Posts: 3
Joined: Wednesday 07 November 2018 21:14
Target OS: Windows
Domoticz version: 2020
Contact:

Re: Historical Text Sensor Values  [Solved]

Post by patardw »

Thank you
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest