Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 106736

Template sensor fails when using as binary_sensor

$
0
0
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

Read full topic


Viewing all articles
Browse latest Browse all 106736

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>