Hi
I have a monetary switch setup and a binary sensor to read the state of this in esphome.
the code is as follows
switch:
- platform: gpio
name: ${friendly_node_name} Arm/Disarm
pin: D1
id: relay
inverted: False
on_turn_on:
then:
- switch.turn_on: relay
- delay: 300ms
- switch.turn_off: relay
binary_sensor:
- platform: gpio
id: reed
pin:
number: D2
mode: INPUT_PULLUP
name: ${friendly_node_name} Status
device_class: lock
filters:
- delayed_on_off: 20ms
I would like the icon on the switch to respond to the status of the binary sensor regardless go of the state off the switch, scene it is setup to be momentary.
Can anybody assist