Script error blocky, compare number with string
Posted: Sunday 08 November 2015 14:12
Hi There,
I´m trying to use the second switch input on a Qubino dimmer to work as a secundary switch for my kitchen lights.
In dutch called a `wissel schakeling`.
The problem is that the kitchen light is always dimmed to +/- 50% when on. So the state in Domoticz is not Always "ON" but sometimes
showed as 50%.
When i'm trying this blocky script I get a error.
Error:
Name: Wisselkeuken => [string "result = 0; weekday = os.date('*t')['wday']; ..."]:1: attempt to compare string with number
I´m trying to use the second switch input on a Qubino dimmer to work as a secundary switch for my kitchen lights.
In dutch called a `wissel schakeling`.
The problem is that the kitchen light is always dimmed to +/- 50% when on. So the state in Domoticz is not Always "ON" but sometimes
showed as 50%.
When i'm trying this blocky script I get a error.
Error:
Name: Wisselkeuken => [string "result = 0; weekday = os.date('*t')['wday']; ..."]:1: attempt to compare string with number