homeassistant-ssh
homeassistant-ssh copied to clipboard
Services binary switch does not work
I configured binary sensor switch to control services on my OpenWrt router, but I get only status of the service. Command "service @{id} stop/start" does not work.
My code in the sensor commands section is this ``
- command: service | awk '/cron|samba4/ {print $1 "," $3}'
scan_interval: 300
sensors:
- type: binary key: service dynamic: true separator: "," command_on: service @{id} start command_off: service @{id} stop payload_on: running