Last active
February 19, 2025 21:06
-
-
Save artipixel/2f834cb3779e6814ede414eb836af979 to your computer and use it in GitHub Desktop.
Homeassistant Blueprint - Automatically heats the room when the temperature drops.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: Room AC Auto Heat | |
description: "Automatically heats the room when the temperature drops." | |
domain: automation | |
input: | |
temperature_sensor: | |
name: Temperature Sensor | |
selector: | |
entity: | |
domain: sensor | |
light_entity: | |
name: Light Entity | |
selector: | |
entity: | |
domain: light | |
ac_entity: | |
name: Air Conditioner Entity | |
selector: | |
entity: | |
domain: climate | |
display_switch: | |
name: AC Display Switch | |
selector: | |
entity: | |
domain: switch | |
time_from: | |
name: Start Time | |
description: "Automation will activate after this time." | |
selector: | |
time: | |
time_to: | |
name: End Time | |
description: "Automation will activate before this time." | |
selector: | |
time: | |
delay_duration: | |
name: Delay Duration | |
description: "How long the AC should run before turning off." | |
default: "00:15:00" | |
selector: | |
duration: | |
send_telegram: | |
name: Send Telegram Message | |
description: "Enable or disable Telegram notifications." | |
default: true | |
selector: | |
boolean: | |
trigger: | |
- platform: numeric_state | |
entity_id: !input temperature_sensor | |
below: 22 | |
condition: | |
- condition: state | |
entity_id: !input light_entity | |
state: "off" | |
- condition: or | |
conditions: | |
- condition: time | |
after: !input time_from | |
- condition: time | |
before: !input time_to | |
action: | |
- service: climate.set_temperature | |
target: | |
entity_id: !input ac_entity | |
data: | |
temperature: 26 | |
hvac_mode: heat | |
- choose: | |
- conditions: | |
- condition: template | |
value_template: "{{ !input send_telegram }}" | |
sequence: | |
- service: telegram_bot.send_message | |
data: | |
message: "Heat turned on" | |
- service: switch.turn_off | |
target: | |
entity_id: !input display_switch | |
- delay: !input delay_duration | |
- service: climate.turn_off | |
target: | |
entity_id: !input ac_entity | |
- choose: | |
- conditions: | |
- condition: template | |
value_template: "{{ !input send_telegram }}" | |
sequence: | |
- service: telegram_bot.send_message | |
data: | |
message: "Heat turned off" | |
mode: single |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment