I’m getting odd results from a calendar automation…
The calendar (not under my control) consists of bin collection entries. These are always set to midnight. My automation attempts to send a message 7 hours before the start of any entry in the calendar.
When only one calendar entry is present for a day then my automation works perfectly. When two bin entries (green bin and brown bin) are set for the same date then I get two messages, both for ‘green bin’. My wife gets four messages, all for ‘green bin’! We never see any messages for ‘brown bin’, which is the second entry on the list for that day.
I’ve set the automation mode to ‘queued’.
Can anyone please help me understand what I’m doing wrong, and how I might fix it?
alias: Bin Collection Notification
description: ""
triggers:
- trigger: calendar
entity_id: calendar.xxxx_metropolitan_borough_council
event: start
offset: "-7:0:0"
conditions: []
actions:
- choose:
- conditions:
- condition: state
entity_id: calendar.xxxx_metropolitan_borough_council
attribute: message
state: Green bin
sequence:
- parallel:
- data:
message: Green Bin Tomorrow
action: notify.mobile_me
- action: notify.mobile_wife
data:
message: Green Bin Tomorrow
- conditions:
- condition: state
entity_id: calendar.xxxx_metropolitan_borough_council
attribute: message
state: Pink lid bin
sequence:
- parallel:
- data:
message: Pink Lid Bin Tomorrow
action: notify.mobile_me
- action: notify.mobile_wife
data:
message: Pink Lid Bin Tomorrow
- conditions:
- condition: state
entity_id: calendar.xxxx_metropolitan_borough_council
attribute: message
state: Black bin
sequence:
- parallel:
- data:
message: Black Bin Tomorrow
action: notify.mobile_me
- action: notify.mobile_wife
data:
message: Black Bin Tomorrow
- conditions:
- condition: state
entity_id: calendar.xxxx_metropolitan_borough_council
attribute: message
state: Brown bin
sequence:
- parallel:
- data:
message: Brown Bin Tomorrow
action: notify.mobile_me
- action: notify.mobile_wife
data:
message: Brown Bin Tomorrow
mode: queued
max: 10