Got this code in my switch.yaml file
- platform: template
switches:
bedside_light:
turn_on:
service: mqtt.publish
data:
topic: ‘cmnd/rfbridge1/rfcode’
payload: ‘#4CA89B’
turn_off:
service: mqtt.publish
data:
topic: ‘cmnd/rfbridge1/rfcode’
payload: ‘#4CA89A’
I can switch the plug on / off from Home Assistant fine, but when I use the remote to manually turn the plug on/off it’s not registered in home assistant - what do I need to add that it registers a manual remote press.