Trying to get a button card to every time pressed it would send an “ON” topic to my Arduino.
As the same flip flop is also controlled by a hardware button, as it has to work without home assistant running.
Have got the linking to work but the topic is staying as active.
So to get the flip flop to change I have to make other button to send “OFF” before I can change state of Flip flop.
My card code:
type: button tap_action: action: call-service service: mqtt.publish service_data: topic: SW1 payload: 'on' retain: false name: SW1 ON