-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: introduce blueprint for warm outside automation
- Loading branch information
Showing
5 changed files
with
73 additions
and
26 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
blueprint: | ||
name: Warmer outside | ||
description: Send notification if warmer outside | ||
domain: automation | ||
input: | ||
out_vs_in: | ||
name: out_vs_in | ||
description: The sensor calulating the diff betwenn a specific room and outdoor temperature | ||
selector: | ||
entity: | ||
domain: sensor | ||
input_group_windows: | ||
name: Open Windows | ||
description: The group of windows in the room | ||
selector: | ||
entity: | ||
domain: binary_sensor | ||
device_class: opening | ||
|
||
variables: | ||
group_windows: !input input_group_windows | ||
|
||
trigger: | ||
platform: numeric_state | ||
entity_id: !input out_vs_in | ||
above: 0 | ||
condition: | ||
condition: and | ||
conditions: | ||
- condition: state | ||
entity_id: group.personen | ||
state: "home" | ||
- condition: numeric_state | ||
entity_id: "sensor.outdoor_temperature" | ||
above: "20" | ||
- condition: state | ||
entity_id: !input input_group_windows | ||
state: "on" | ||
action: | ||
- service: notify.devices_user_1 | ||
data: | ||
title: "Doors" | ||
message: > | ||
Close the follwing doors, since it is {{states('sensor.livingroom_out_vs_in')}}°C warmer outside: | ||
{%- for entity_id in states.{{ group_windows }}.attributes.entity_id if states(entity_id) == 'on' -%} | ||
{%- if loop.first %}Open Doors: {% endif -%} | ||
{{state_attr(entity_id, 'friendly_name') }} | ||
{%- if not loop.last %}, {% endif -%} | ||
{%- endfor -%} | ||
message: "Close the {{ room_name }} doors, since it is {{states('sensor.livingroom_out_vs_in')}}°C warmer outside." |
This file contains 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
This file contains 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
This file contains 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