I need help with two different automations. First, I have my fireplace added to my Harmony Remote as a device. I added an input_boolean to the config.yaml file for the fireplace. The harmony.config file only shows PowerToggle for the fireplace. I created an automation to turn the fireplace on with the send.command service. I added a custom:button card to add the entity to the frontend. It works to turn the fireplace on but to turn it off I have to click the button twice which throws the state of the entity off (one click changes state to on, second click changes state to off, third click changes state back to on but entity is off). Here is my automation:
- alias: Fireplace Power
trigger:
platform: state
entity_id: input_boolean.fireplace_power
to: 'on'
action:
service: remote.send_command
data:
entity_id: remote.living_room
command:
- PowerToggle
device: 63611024
My second dilemma is when Home Assistant restarts, my Ring-MQTT addon starts but all of the entities show as unavailable until I restart the addon. I tried to use an automation to restart the addon when Home Assistant restarts but it is not working. Here is the automation:
- alias: Start Ring
trigger:
platform: event
event_type: homeassistant_restart
action:
service: homeassistant.addon_restart
data:
addon: fdb328a7_ring-mqtt