I have an ev1527 pushbutton, and i want it to toggle a light.
But it doesn’t work.
I only receive an on state when the button is pushed
[rflink.protocol] received data: 20;02;EV1527;ID=09c1b0;SWITCH=01
2022-11-27 12:16:57.802 DEBUG (MainThread) [rflink.protocol] received data: ;CMD=ON;
2022-11-27 12:16:57.802 DEBUG (MainThread) [rflink.protocol] got packet: 20;02;EV1527;ID=09c1b0;SWITCH=01;CMD=ON;
2022-11-27 12:16:57.803 DEBUG (MainThread) [rflink.protocol] decoded packet: {'node': 'gateway', 'protocol': 'ev1527', 'id': '09c1b0', 'switch': '01', 'command': 'on'}
2022-11-27 12:16:57.803 DEBUG (MainThread) [rflink.protocol] got event: {'id': 'ev1527_09c1b0_01', 'command': 'on'}
I have made an automation that triggers on the on state of the pushbutton.
But the ligt goes only on or of after home assistant is restarted.
I think it stays in the on state.
Added this in the configuration yaml:
binary_sensor:
- platform: rflink
automatic_add: true
devices:
ev1527_09c1b0_01:
name: Drukknop-1
alias: Drukknop keuken
description: ""
trigger:
- platform: state
entity_id:
- binary_sensor.drukknop_1
to: "on"
condition: []
action:
- service: light.toggle
data: {}
target:
entity_id: light.verlichting_nis
mode: single
Does somebody know how i can make this work?