- condition: not
conditions:
- condition: state
entity_id: persistent_notification.mailbox_flag
state: notifying
If a specific persistent notification wasn’t “notifying” it would pass this test.
Now I know this was probably a “feature” as if the notification isn’t active the entity doesn’t exist - thus this test is invalid. But it used to work - so probably the way automations handle non-existent entities has changed - now the whole automation just fails of this condition is left in.
So - any ideas how I can test if a specific notification is displaying that won’t crash the automations?
- condition: state
entity_id: input_select.mail_notification_active
state: 'False'
The uppercase F is not a typo - that appears to be something the input_select integration does - but apart from that glitch this works as I need and will only run my automation if the notification is not active.
If you have a more elegant solution please post it.