Hello everyone,
I have normal buttons in the usual stairwell that previously went to a surge relay from Eltako. I replaced this with Ubisys S1-R and integrated it nicely into HA. The previous buttons are connected to the button input. 1:1 replacement, so to speak.
Now I wanted to set a classic staircase timer (light on for 1 minute after pressing a button / if switched off in the meantime via button, then reset the timer, etc.)
But I can’t get it to work - it works perfectly with the switch in the dashboard, when I press it the timer starts (I have set up a display) and it goes off after 1 minute. But this doesn’t work with the buttons, and the status of the switches in the dashboard isn’t adjusted either - although I would think they should also go to ON since the relay is on.
(HA Yellow, HA current, Z2M, )
What am I doing wrong? Thanks for any hints/ideas.
Here is my YAML code:
description: ""
triggers:
- entity_id:
- timer.ganglicht_kg
to: idle
id: Timer aus
trigger: state
- entity_id:
- switch.flur_kg_licht
to: "off"
id: Licht aus
trigger: state
- type: turned_on
device_id: 51c296b3b392319eb7f9b20fe09c14de
entity_id: 4031baa8e777e773a33fcc5b738e5bac
domain: switch
trigger: device
id: Licht an
conditions: []
actions:
- if:
- condition: trigger
id:
- Licht an
then:
- data: {}
target:
entity_id: timer.ganglicht_kg
action: timer.start
- if:
- condition: trigger
id:
- Timer aus
then:
- data: {}
target:
entity_id: switch.flur_kg_licht
action: switch.turn_off
- if:
- condition: trigger
id:
- Licht aus
then:
- data: {}
target:
entity_id: timer.ganglicht_kg
action: timer.finish
mode: restart`type or paste code here`