binary_sensor:
- platform: command_line
name: Status
scan_interval: 60
command: "/Users/server/scripts/status.sh"
value_template: "{{ value }}"
The script returns True or False (tested with on and off). The status is alway unknown.
But it worked like this:
sensor:
- platform: command_line
name: Status
scan_interval: 60
command: "/Users/server/scripts/status.sh"
value_template: "{{ value }}"
What is wrong here?
1 post - 1 participant