Refactor camp event condition to use 'm365_family_events' and update notification targets for improved functionality
This commit is contained in:
@@ -1253,7 +1253,7 @@
|
|||||||
- condition: template
|
- condition: template
|
||||||
value_template: >
|
value_template: >
|
||||||
{{ 'no camp' in (
|
{{ 'no camp' in (
|
||||||
state_attr('calendar.family_events', 'data')
|
(state_attr('calendar.m365_family_events', 'data') or [])
|
||||||
| selectattr('summary', 'defined')
|
| selectattr('summary', 'defined')
|
||||||
| map(attribute='summary')
|
| map(attribute='summary')
|
||||||
| map('lower')
|
| map('lower')
|
||||||
@@ -1277,11 +1277,12 @@
|
|||||||
- service: notify.alexa_media
|
- service: notify.alexa_media
|
||||||
data:
|
data:
|
||||||
target:
|
target:
|
||||||
- media_player.living_room
|
# - media_player.living_room
|
||||||
- media_player.jordyn_s_room
|
# - media_player.jordyn_s_room
|
||||||
- media_player.chloe_s_room
|
# - media_player.chloe_s_room
|
||||||
- media_player.declan_s_room
|
# - media_player.declan_s_room
|
||||||
- media_player.kitchen
|
# - media_player.kitchen
|
||||||
|
- media_player.parents_room
|
||||||
message: "{{ messages[now().strftime('%H:%M:%S')] }}"
|
message: "{{ messages[now().strftime('%H:%M:%S')] }}"
|
||||||
data:
|
data:
|
||||||
type: announce
|
type: announce
|
||||||
|
|||||||
Reference in New Issue
Block a user