jcallaghan / home-assistant-config

My Home Assistant configuration & documentation.
https://www.jcallaghan.com/
MIT License
175 stars 8 forks source link

Apple Watch actions ⌚😎🚀 #239

Open jcallaghan opened 4 years ago

jcallaghan commented 4 years ago

Create actions in Home Assistant mobile app to allow automations and scripts to be triggered via Apple Watch.

Related: #232

jcallaghan commented 4 years ago

HomeAssistant Mobile App documentation - https://companion.home-assistant.io/docs/core/core

jcallaghan commented 4 years ago

HomeAssistant Mobile App Apple Watch documentation - https://companion.home-assistant.io/docs/apple-watch/apple-watch

jcallaghan commented 4 years ago

HomeAssistant Mobile App Apple Watch Actions documentation - https://companion.home-assistant.io/docs/apple-watch/watch-actions/

jcallaghan commented 4 years ago

Once the action has been created in the mobile app, you can listen for the event being called via Developer Tools > Events > Listen to events ios.action_fired. You can see more examples in the Watch Actions reference above.

Here is an example of a trigger I've added to an automation.

  # Apple Watch action
  - platform: event
    event_type: ios.action_fired
    event_data:
      actionName: FRESH_ALL