Hi community, can anyone see where I’m going wrong? Hass.io installed on a RP3 here, trying to make a sensor to detect the current state of one of my addons and express it as a binary sensor. (Primarily to run HerrHofrat’s motion addon with a USB webcam, but to turn it on / off via a switch I can run automations against for when I get home / leave for work)
binary_sensor:
- platform: command_line
command: '/usr/bin/hassio addons info 657d34cb_motion --raw-json'
name: Addon State
value_template: "{{value_json['data']['state']}}"
payload_on: 'started'
payload_off: 'stopped'
Problem is I get this back:
Command failed: /usr/bin/hassio addons info core_duckdns --raw-json