homeassistant-ssh icon indicating copy to clipboard operation
homeassistant-ssh copied to clipboard

Services binary switch does not work

Open viktorp75 opened this issue 9 months ago • 1 comments

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

viktorp75 avatar May 16 '24 03:05 viktorp75