Michaël Arnauts
|
d33fbaef7d
|
Fix binary_sensor.command_line example (#1501)
The example to check if an IP is alive didn't work. It seems that the `&> /dev/null` redirector didn't work. `> /dev/null 2>&1` works fine however.
This can be verified with the following config:
```yaml
- platform: command_line
name: "testtrue1"
command: "true &> /dev/null && echo success || echo fail"
scan_interval: 5
payload_on: "success"
payload_off: "fail"
- platform: command_line
name: "testfalse1"
command: "false &> /dev/null && echo success || echo fail"
scan_interval: 5
payload_on: "success"
payload_off: "fail"
- platform: command_line
name: "testtrue2"
command: "true > /dev/null 2>&1 && echo success || echo fail"
scan_interval: 5
payload_on: "success"
payload_off: "fail"
- platform: command_line
name: "testfalse2"
command: "false > /dev/null 2>&1 && echo success || echo fail"
scan_interval: 5
payload_on: "success"
payload_off: "fail"
```
Also a `-W 1` lowers the timeout to one second.
|
2016-11-28 21:42:24 +01:00 |
|
Fabian Affolter
|
de7c1d5ac9
|
Minimizing of the configuration sample (#1008)
|
2016-09-30 20:48:56 +02:00 |
|
Fabian Affolter
|
f6524bbc52
|
Add IoT class
|
2016-09-01 17:20:19 +02:00 |
|
Fabian Affolter
|
b72a905c97
|
Add sensor_class
|
2016-05-05 10:00:44 +02:00 |
|
Fabian Affolter
|
d8681f5333
|
Add HA release
|
2016-04-30 16:39:56 +02:00 |
|
Paulus Schoutsen
|
6dc004875c
|
Move templates to new topics section
|
2016-03-12 16:03:57 -08:00 |
|
Fabian Affolter
|
44fee36ab0
|
Add another ping example
|
2016-03-04 13:29:48 +01:00 |
|
Paulus Schoutsen
|
05f2ad1f5b
|
Release 0.14 blogpost
|
2016-02-27 16:30:16 -08:00 |
|