Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions source/_components/binary_sensor.command_line.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ Configuration variables:
- **payload_on** (*Optional*): The payload that represents enabled state. Default is "ON".
- **payload_off** (*Optional*): The payload that represents disabled state. Default is "OFF".
- **value_template** (*Optional*): Defines a [template](/docs/configuration/templating/#processing-incoming-data) to extract a value from the payload.
- **scan_interval** (*Optional*): Defines number of seconds for polling interval (defaults to 60 seconds).
- **scan_interval** (*Optional*): Defines number of seconds for polling interval (defaults to 60 seconds).
- **command_timeout** (*Optional*): Defines number of seconds for command timeout (defaults to 15 seconds).

## {% linkable_title Examples %}

Expand Down Expand Up @@ -87,10 +88,10 @@ Consider to use the [`ping` sensor ](/components/binary_sensor.ping/) as an alte
The services running is listed in `/etc/systemd/system` and can be checked with the `systemctl` command:

```
$ systemctl is-active home-assistant@rock64.service
$ systemctl is-active home-assistant@rock64.service
active
$ sudo service home-assistant@rock64.service stop
$ systemctl is-active home-assistant@rock64.service
$ systemctl is-active home-assistant@rock64.service
inactive
```

Expand All @@ -104,4 +105,4 @@ binary_sensor:
payload_off: 'inactive'
```

Note: Use single quotes!
Note: Use single quotes!
1 change: 1 addition & 0 deletions source/_components/sensor.command_line.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Configuration variables:
- **unit_of_measurement** (*Optional*): Defines the unit of measurement of the sensor, if any.
- **value_template** (*Optional*): Defines a [template](/docs/configuration/templating/#processing-incoming-data) to extract a value from the payload.
- **scan_interval** (*Optional*): Defines number of seconds for polling interval (defaults to 60 seconds).
- **command_timeout** (*Optional*): Defines number of seconds for command timeout (defaults to 15 seconds).

## {% linkable_title Examples %}

Expand Down