LUA Script: Time how much a device is ON

Moderator: leecollings

gajotnt
Posts: 70
Joined: Monday 06 February 2017 12:48
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.9700
Location: Azores
Contact:

Re: LUA Script: Time how much a device is ON

Post by gajotnt »

Domoticz V4.10854, also started having trouble with this script :(
Matthiasfr
Posts: 17
Joined: Saturday 10 August 2019 12:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: LUA Script: Time how much a device is ON

Post by Matthiasfr »

Is this script still working?
How do I add the timer device?
User avatar
jacobsentertainment
Posts: 211
Joined: Thursday 01 October 2020 1:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021-1
Location: Not @ home
Contact:

Re: LUA Script: Time how much a device is ON

Post by jacobsentertainment »

Installed all required items as proposed but get no results, only error in the log is

Code: Select all

 2021-05-05 20:42:00.365 Error: EventSystem: in /home/pi/domoticz/scripts/lua/script_time_switch-timer.lua: /home/pi/domoticz/scripts/lua/script_time_switch-timer.lua:45: ')' expected near ';'

I got no clue what this means :shock: Anyone has some suggestions?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest