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?
React upon a dimmer being on
Moderator: leecollings
-
- Posts: 145
- Joined: Tuesday 08 July 2014 15:10
- Target OS: -
- Domoticz version: 4.9700
- Location: UK
- Contact:
-
- Posts: 145
- Joined: Tuesday 08 July 2014 15:10
- Target OS: -
- Domoticz version: 4.9700
- Location: UK
- Contact:
Re: React upon a dimmer being on
I tried linking a dummy switch as a slave but it reacts in the same way.
If you turn the main light 'on' the dummy comes on, if you set it as % aka dimmer level the slave goes off.
Is this a bug as it seems so.
If you turn the main light 'on' the dummy comes on, if you set it as % aka dimmer level the slave goes off.
Is this a bug as it seems so.
-
- Posts: 265
- Joined: Monday 05 February 2018 8:42
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 12467
- Location: Netherlands, near Haarlem
- Contact:
Re: React upon a dimmer being on
I do recognize this problem. Even in DzVents.
If I have two triggers, one of them a dimmer, the event is not riggers when a light is on.
If Motion=On and dimmer=On (or > 0%) then set dimmer to 40%
Most of the time this does not work. Sometimes it does. I do not understand why.
Is this the same problem?
If I have two triggers, one of them a dimmer, the event is not riggers when a light is on.
If Motion=On and dimmer=On (or > 0%) then set dimmer to 40%
Most of the time this does not work. Sometimes it does. I do not understand why.
Is this the same problem?
Domoticz 2020.1 (12230) on Raspberry Pi 3B with Raspian Buster. Besides Domoticz, Rpi is running Pi-Hole.
Who is online
Users browsing this forum: No registered users and 0 guests