Hi all,
I am new to HA and got the system running with all the basics. But I am running into a small issue. I am working on actons in the Homeassistant app. I have added three buttions on my iphone that work via toggle (press to turn on the light and press again to turn off the light). However the fourth buttion to open/close the garagedoor won’t work with the toggle option. The configuration i have in automation.yaml:
.yaml:
- alias: Garagepoort
initial_state: true
trigger:
- platform: event
event_type: ios.action_fired
event_data:
actionName: Garage
action:
- device_id: 9bb0f111121511eb8dea4fe78ceeb835
domain: cover
entity_id: cover.garagedeur_msg100_main_channel
type: open
id: Gara92a43e34db2b4038f5397c889bd
This works, to open the garagedoor, but I can’t close the door with the same option. If I look at the generated code in Lovelace, where I have a toggle button to open/close the door than it looks like this:
type: button
tap_action:
action: toggle
entity: cover.garagedeur_msg100_main_channel
How do I translate the code of the lovelace dashboard into the action button on my iphone? Any help would be appreciated.
Regards,
Jaap