React upon a dimmer being on
Posted: Sunday 01 November 2020 18:29
I'm trying to activate a set of lights based on a dimmer switch being on/active and another switch being off but the dimmer switch is giving me problems.
If I have the logic as switch name = "on" and just "turn on" the dimmer switch it'll work but the dimmer is normally activated at a level so 50% 96% etc and then the switch fails do anything.
I tried using a percent logic like switch name great or equal to "level % 5" but then get an error in my log as "Error: EventSystem: Lua script error (Blockly), Name: Lounge_Timer_1 => [string "result = 0; weekday = os.date('*t')['wday']; ..."]:1: attempt to compare number with string"
How do i determine if my dimmer switch is on/in use/ greater than 5% to get it to do something else?
If I have the logic as switch name = "on" and just "turn on" the dimmer switch it'll work but the dimmer is normally activated at a level so 50% 96% etc and then the switch fails do anything.
I tried using a percent logic like switch name great or equal to "level % 5" but then get an error in my log as "Error: EventSystem: Lua script error (Blockly), Name: Lounge_Timer_1 => [string "result = 0; weekday = os.date('*t')['wday']; ..."]:1: attempt to compare number with string"
How do i determine if my dimmer switch is on/in use/ greater than 5% to get it to do something else?