############################ ## boiler on clock ## ############################ - alias: 'notify when the boiler clock on start' initial_state: 'on' trigger: platform: template value_template: '{{ states.sensor.time.state == states.sensor.boiler_on_clock_time_long.state }}' condition: condition: state entity_id: input_boolean.boiler_on_clock_status state: 'on' action: - service: homeassistant.turn_on entity_id: switch.neo_coolcam_wall_switch_1_channel_switch - service: telegram_bot.send_message data: title: 'דוד' message: 'הדוד נדלק לפי השעון שהוגדר' #the boiler is on ############################################################################## # # boiler off clock # ############################################################################## - alias: 'notify when the boiler clock off ended' initial_state: 'on' hide_entity: False trigger: platform: template value_template: '{{ states.sensor.time.state == states.sensor.boiler_off_clock_time_long.state }}' condition: condition: state entity_id: input_boolean.boiler_off_clock_status state: 'on' action: - service: homeassistant.turn_off entity_id: switch.neo_coolcam_wall_switch_1_channel_switch - delay: 0:00:03 - service: homeassistant.turn_off entity_id: input_boolean.boiler_off_clock_status - service: homeassistant.turn_off entity_id: input_boolean.boiler_on_clock_status - service: telegram_bot.send_message data: title: 'דוד' message: 'הדוד נכבה לפי השעון שהוגדר' #the boiler is off