Advertisement
noam76

automations.yaml

Feb 9th, 2019
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.73 KB | None | 0 0
  1. ############################  
  2. ##    boiler on  clock    ##                                        
  3. ############################  
  4. - alias: 'notify when the boiler clock on start'
  5.   initial_state: 'on'
  6.   trigger:
  7.    platform: template
  8.    value_template: '{{ states.sensor.time.state == states.sensor.boiler_on_clock_time_long.state }}'
  9.   condition:
  10.    condition: state
  11.    entity_id: input_boolean.boiler_on_clock_status
  12.    state: 'on'
  13.   action:
  14.    - service: homeassistant.turn_on
  15.      entity_id: switch.neo_coolcam_wall_switch_1_channel_switch
  16.    - service: telegram_bot.send_message
  17.      data:
  18.       title: 'דוד'
  19.       message: 'הדוד נדלק לפי השעון שהוגדר'  #the boiler is on
  20.                
  21. ##############################################################################  
  22. #
  23. # boiler off  clock
  24. #
  25. ##############################################################################  
  26. - alias: 'notify when the boiler clock off ended'
  27.   initial_state: 'on'
  28.   hide_entity: False
  29.   trigger:
  30.     platform: template
  31.     value_template: '{{ states.sensor.time.state == states.sensor.boiler_off_clock_time_long.state }}'
  32.   condition:
  33.     condition: state
  34.     entity_id: input_boolean.boiler_off_clock_status
  35.     state: 'on'
  36.   action:
  37.     - service: homeassistant.turn_off
  38.       entity_id: switch.neo_coolcam_wall_switch_1_channel_switch
  39.     - delay: 0:00:03
  40.     - service: homeassistant.turn_off
  41.       entity_id: input_boolean.boiler_off_clock_status
  42.     - service: homeassistant.turn_off
  43.       entity_id: input_boolean.boiler_on_clock_status
  44.     - service: telegram_bot.send_message
  45.       data:
  46.         title: 'דוד'
  47.         message: 'הדוד נכבה לפי השעון שהוגדר'  #the boiler is off
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement