home-assistant.github.io/source
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
..
_components Fix binary_sensor.command_line example (#1501) 2016-11-28 21:42:24 +01:00
_cookbook jupyter_notebooks_introduction typo: emtpy => empty (#1499) 2016-11-26 18:00:53 +01:00
_details New Details category (#1347) 2016-10-28 08:19:07 +02:00
_ecosystem Update content_extensions.markdown 2016-10-31 23:51:57 -04:00
_includes Enable link to binary sensor overview (#1401) 2016-11-10 23:43:19 +01:00
_layouts
_posts Release 0.33.4 2016-11-24 15:54:03 -08:00
_topics Wrap up blog post 2016-11-19 15:55:39 -08:00
assets/jwplayer
blog Upgrade ruby/jekyll/style 2016-08-22 01:01:17 -07:00
components Group components by version released 2016-10-24 02:33:26 -07:00
cookbook Update repo name 2016-08-22 15:32:38 +02:00
demo update demo 2016-08-02 23:16:50 -07:00
details New Details category (#1347) 2016-10-28 08:19:07 +02:00
developers Merge branch 'current' into next 2016-11-19 09:55:51 -08:00
ecosystem Checkpoint 2 2016-10-26 18:01:44 -07:00
font remove executable mode (#931) 2016-09-13 13:09:19 +02:00
getting-started Change condition example to use the lowercase 'on' state (#1500) 2016-11-26 18:01:43 +01:00
help No sidebar 2016-10-21 10:15:38 +02:00
images Add social image 2016-11-19 16:24:36 -08:00
javascripts
static update demo 2016-08-02 23:16:50 -07:00
topics
atom.xml
CNAME
favicon.png
googlef4f3693c209fe788.html
index.html Hack for the 'Released' date issue for minor releases 2016-11-15 22:47:58 +01:00
robots.txt
service_worker.js