Skip to content

Commit

Permalink
Update for HA 2024.6 changes to notify service
Browse files Browse the repository at this point in the history
  • Loading branch information
kloggy committed Jun 8, 2024
1 parent d8f8667 commit 61d4f8c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Garden Irrigation/irrigation_logging_remote.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ script:
value_template: >
{{ log_event == 'REMOTE_CANCEL' }}
sequence:
- service: notify.log_irrigation
- service: notify.send_message
entity_id: notify.log_irrigation
data:
message: >
{{ as_timestamp(now()) | timestamp_custom('%X') }} - REMOTE CONTROL - {{ reason }}
Expand All @@ -33,7 +34,8 @@ script:
value_template: >
{{ log_event == 'REMOTE_BUTTON_PRESS' }}
sequence:
- service: notify.log_irrigation
- service: notify.send_message
entity_id: notify.log_irrigation
data:
message: >
{{ as_timestamp(now()) | timestamp_custom('%X') }} - REMOTE CONTROL - {{ button }} pressed
Expand All @@ -60,7 +62,8 @@ automation:
state: 'on'

action:
- service: notify.log_irrigation
- service: notify.send_message
entity_id: notify.log_irrigation
data:
message: >
{{ as_timestamp(now()) | timestamp_custom('%X') }} - REMOTE CONTROL - Button AB pressed (Cancel Irrigation)
Expand All @@ -82,7 +85,8 @@ automation:
state: 'on'

action:
- service: notify.log_irrigation
- service: notify.send_message
entity_id: notify.log_irrigation
data:
message: >
{{ as_timestamp(now()) | timestamp_custom('%X') }} - REMOTE CONTROL - Button {{ trigger.event.data.button | upper }} pressed
Expand Down

0 comments on commit 61d4f8c

Please sign in to comment.