|
59 | 59 | variables: |
60 | 60 | kid: "{{ 'mats' if (trigger.to_state.entity_id == 'climate.bedroom_mats') else 'hannah' }}" |
61 | 61 | action: |
62 | | - - service: notify.notify |
| 62 | + - service: script.notify_family |
63 | 63 | data: |
64 | 64 | message: > |
65 | 65 | It's getting warm in {{kid}}'s room. |
66 | 66 | Bedroom Hannah: {{ state_attr("climate.bedroom_hannah", "current_temperature") }}C |
67 | 67 | Bedroom Mats: {{ state_attr("climate.bedroom_mats", "current_temperature") }}C |
68 | 68 | Master Bedroom: {{ state_attr("climate.master_bedroom", "current_temperature") }}C |
69 | | - data: |
70 | | - tag: bedroom-kids-warm |
| 69 | + expire: "00:30:00" |
71 | 70 | - condition: template |
72 | 71 | value_template: "{{ is_state('input_boolean.heat_bedroom_' + kid, 'on') }}" |
73 | 72 | - service: script.notify_joris |
74 | 73 | data: |
75 | 74 | message: Seems like it's {{kid}} room which has the input boolean on. |
76 | | - expire: "00:05:00" |
| 75 | + expire: "00:01:00" |
77 | 76 | - service: input_boolean.turn_off |
78 | 77 | data: |
79 | 78 | entity_id: "{{ 'input_boolean.heat_bedroom_' + kid }}" |
|
107 | 106 | to: "off" |
108 | 107 | for: "48:00:00" |
109 | 108 | action: |
110 | | - - service: notify.notify |
| 109 | + - service: script.notify_family |
111 | 110 | data: |
112 | 111 | message: It's been more than 48hrs since the kids window were last opened. Suggestion to open them :-) |
113 | 112 |
|
|
134 | 133 | variables: |
135 | 134 | action_open: "{{ 'OPEN_' ~ context.id }}" |
136 | 135 | action_close: "{{ 'CLOSE_' ~ context.id }}" |
137 | | - - service: notify.notify |
| 136 | + - service: script.notify_family |
138 | 137 | data: |
139 | 138 | message: > |
140 | 139 | Hannah went to bed, pre-heat bedroom Mats? |
141 | 140 | Bedroom Hannah: {{ state_attr("climate.bedroom_hannah", "current_temperature") }}C |
142 | 141 | Bedroom Mats: {{ state_attr("climate.bedroom_mats", "current_temperature") }}C |
| 142 | + expire: "00:05:00" |
143 | 143 | data: |
144 | 144 | uri: "/lovelace-phone/upstairs" |
0 commit comments