techblog

Hass-SpeedTest-automation

Jan 2nd, 2018
909
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.48 KB | None | 0 0
  1. # Example configuration.yaml entry
  2. automation:
  3.  - alias: 'Internet Speed Glow Connect Great'
  4.     trigger:
  5.       platform: template
  6.       value_template: '{{ states.sensor.speedtest_download.state|float > 10}}'
  7.     action:    
  8.       service: shell_command.green
  9.   - alias: 'Internet Speed Glow Connect Poor'
  10.     trigger:
  11.       platform: template
  12.       value_template: '{{ states.sensor.speedtest_download.state| float < 10 }}'
  13.     action:    
  14.       service: shell_command.red
Advertisement
Add Comment
Please, Sign In to add comment