Hi there, (first post!)
I was wondering whether it’s possible to trigger the starting, stopping, and status identification of a hass.io addon (RPy3) via a switch / automation. Use case here is I’ve got a USB webcam powered by the motion addon in hass.io that I’d like to be able to have turn on when I’m out… Initially happy to make this a manual switch something like below for now, any clues what I need to replace ‘–reference to addon–’ with / if it’s possible? Thanks!
switch:
- platform: template
switches:
skylight:
value_template: "{{ is_state('--reference to addon--', 'on') }}"
turn_on:
service: hassio.addon_start
data:
addon: 657d34ca_motion
turn_off:
service: hassio.addon_stop
data:
addon: 657d34ca_motion