Im trying to setup an automation with these items:
Schneider Wiser Dimmer Puck Relay
Schneider Wiser Battery Switch
And it almost works, only issue is that when im dimming down, it ends up turning off the light. Instead of stopping at the minimum limit. Have tried so much now and dont know what to do.
I have made this automation/yaml:
alias: Kontrol Lys Entre Gang
description: ""
triggers:
- event_type: zha_event
event_data:
device_ieee: 4c:5b:b3:ff:fe:2b:24:fc
command: move_with_on_off
id: dim-up
trigger: event
- event_type: zha_event
event_data:
device_ieee: 4c:5b:b3:ff:fe:2b:24:fc
command: move
id: dim-down
trigger: event
- event_type: zha_event
event_data:
device_ieee: 4c:5b:b3:ff:fe:2b:24:fc
command: stop
id: dim-released
trigger: event
- event_type: zha_event
event_data:
device_ieee: 4c:5b:b3:ff:fe:2b:24:fc
command: "on"
id: turn_on
trigger: event
- event_type: zha_event
event_data:
device_ieee: 4c:5b:b3:ff:fe:2b:24:fc
command: "off"
id: turn_off
trigger: event
conditions: []
actions:
- choose:
- conditions:
- condition: trigger
id: dim-up
sequence:
- repeat:
sequence:
- data:
entity_id: light.spots_entre_og_gang
brightness_step_pct: 10
action: light.turn_on
- delay:
milliseconds: 500
while:
- condition: trigger
id: dim-up
- conditions:
- condition: trigger
id: dim-down
sequence:
- repeat:
sequence:
- data:
entity_id: light.spots_entre_og_gang
brightness_step_pct: -10
action: light.turn_on
- delay:
milliseconds: 500
while:
- condition: trigger
id: dim-down
- condition: numeric_state
entity_id: light.spots_entre_og_gang
attribute: brightness
above: 10
- data:
entity_id: light.spots_entre_og_gang
brightness: 25
action: light.turn_on
- conditions:
- condition: trigger
id: turn_on
sequence:
- target:
entity_id: light.spots_entre_og_gang
action: light.turn_on
data: {}
- conditions:
- condition: trigger
id: turn_off
sequence:
- target:
entity_id: light.spots_entre_og_gang
action: light.turn_off
data: {}
mode: restart
Hope anybody can help me.
Best regards,
Jonathan