I am struggling with this a bit. How can I convert a button to an automation? I want to use MQTT to call an automation. Here is the button code that works:
- type: button
icon: mdi:circle
tap_action:
action: perform-action
perform_action: remote.send_command
data:
command: DPAD_CENTER
target:
entity_id: remote.shield
hold_action:
action: perform-action
perform_action: remote.send_command
data:
command: DPAD_CENTER
hold_secs: 0.5
target:
entity_id: remote.shield