Page 1 of 1
Counter Today in LUA
Posted: Monday 19 August 2019 15:49
by Andyyyy
Hi all,
i have an good working ontime counter and would like to use the Today value in LUA

- 1.jpg (16.95 KiB) Viewed 1768 times
how is this possible ?
Andyyyy
Re: Counter Today in LUA
Posted: Monday 19 August 2019 17:35
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."
Re: Counter Today in LUA
Posted: Tuesday 20 August 2019 15:17
by Andyyyy
Hi waaren,
thank you that worked for me !!
KR, Andyyyy