Counter Today in LUA Topic is solved

Moderator: leecollings

Post Reply
Andyyyy
Posts: 29
Joined: Saturday 13 July 2013 23:46
Target OS: -
Domoticz version:
Contact:

Counter Today in LUA

Post by Andyyyy »

Hi all,
i have an good working ontime counter and would like to use the Today value in LUA
1.jpg
1.jpg (16.95 KiB) Viewed 1723 times
how is this possible ?

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

Re: Counter Today in LUA

Post by waaren »

Andyyyy wrote: Monday 19 August 2019 15:49 Hi all,
i have an good working ontime counter and would like to use the Today value in LUA
how is this possible ?
Don't know how to get this data using classic domoticz Lua but in dzVents (100% Lua) you could use

Code: Select all

domoticz.devices('Poolpumpe(TMR)').counterToday 
When not yet familiar with dzVents please start with reading Get started Before implementing. (~ 5 minutes) Special attention please for
"In Domoticz go to Setup > Settings > Other and in the section EventSystem make sure the checkbox 'dzVents disabled' is not checked. Also make sure that in the Security section in the settings you allow 127.0.0.1 to not need a password. dzVents uses that port to send certain commands to Domoticz. Finally make sure you have set your current location in Setup > Settings > System > Location, otherwise there is no way to determine nighttime/daytime state."
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Andyyyy
Posts: 29
Joined: Saturday 13 July 2013 23:46
Target OS: -
Domoticz version:
Contact:

Re: Counter Today in LUA

Post by Andyyyy »

Hi waaren,
thank you that worked for me !!

KR, Andyyyy
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest