2016-10-11 20:51:10 +00:00
|
|
|
#Todo List
|
|
|
|
|
2016-10-12 00:45:09 +00:00
|
|
|
* AUTOMATE LAMP UPSTAIRS using Nest thermostat.
|
2016-10-11 22:15:08 +00:00
|
|
|
* Put Dash Buttons out there.
|
|
|
|
* Put door sensor on garage door
|
|
|
|
|
2016-10-11 20:51:10 +00:00
|
|
|
|
2016-10-11 22:15:08 +00:00
|
|
|
### Future Ideas
|
|
|
|
|
|
|
|
- alias: 'Get Random Time'
|
|
|
|
trigger:
|
|
|
|
platform: time
|
|
|
|
after: '21:00:00'
|
|
|
|
action:
|
|
|
|
- service: input_slider.select_value
|
|
|
|
data_template:
|
|
|
|
entity_id: input_slider.hour
|
|
|
|
value: '{{ (range(22, 23) | random) }}'
|
|
|
|
- service: input_slider.select_value
|
|
|
|
data_template:
|
|
|
|
entity_id: input_slider.random_minute
|
|
|
|
value: '{{ (range(30, 45) | random) }}'
|
2016-10-11 20:51:10 +00:00
|
|
|
|
2016-10-11 22:15:08 +00:00
|
|
|
Then simply use that in your light turn off automation:
|
2016-10-11 20:51:10 +00:00
|
|
|
|
2016-10-11 22:15:08 +00:00
|
|
|
- alias: 'Turn lights off'
|
|
|
|
trigger:
|
|
|
|
platform: template
|
|
|
|
value_template: '{{ now.hour == (states.input_slider.random_hour.state | int) and now.minute == (states.input_slider.random_minute.state | int) }}'
|
|
|
|
action:
|
|
|
|
- service: light.turn_off
|
|
|
|
data:
|
|
|
|
entity_id: light.hue_color_lamp_1
|
2016-10-12 00:45:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
- automation:
|
|
|
|
alias: Random GLeft
|
|
|
|
initial_state: False
|
|
|
|
hide_entity: False
|
|
|
|
trigger:
|
|
|
|
platform: time
|
|
|
|
seconds: '/5'
|
|
|
|
action:
|
|
|
|
service: homeassistant.turn_on
|
|
|
|
entity_id:
|
|
|
|
- light.gright
|
|
|
|
data:
|
|
|
|
effect: random
|
|
|
|
transition: 1
|
|
|
|
brightness: 255`
|