lovelace-home-feed-card icon indicating copy to clipboard operation
lovelace-home-feed-card copied to clipboard

Breaking change in HA 2023.6

Open ercsey opened this issue 1 year ago • 3 comments

After upgrading to HA 2023.6 the persistent_notifications entities are no more included in state machine so they can not be listed in the card any more. Could you please modify the code so that the id_filter accepts sensor entities and we who are fan of your work could use the card further? Basically in place of persistent notification we could create mqtt sensors on the fly (example: sensor.persistent notification_1 ) then these sensors could be listed in your card. Sounds crazy?

Thank you

ercsey avatar Jun 08 '23 11:06 ercsey

This is working for me on the 2023.6 beta, but won't be able to try against the release version until later.

Can you please share your config for the card?

This card doesn't actually rely on the state machine for persistent notifications, it gets them via a WebSocket call and subscribes to the persistent_notifications_updated event.

gadgetchnnel avatar Jun 08 '23 12:06 gadgetchnnel

Thank you for your fast response. Here is my card config: type: custom:home-feed-card show_empty: false show_notification_title: true exact_durations: true state_color: true max_height: 36em id_filter: ^home_feed_.*|^persistent_notification.*|^notification debug_cardmod: true

Until 2023.6 we had entities created in HA with persistent_notification.create. With 2023.6 these entities are gone, they are no more present in the state machine so the id_filter cannot find them anymore. On the other side is the persistent_notifications_updated still available? I do not see it in the developer tools event watchers.

ercsey avatar Jun 08 '23 14:06 ercsey

I've pushed a new version (0.6.4) which uses an alternative method of subscribing to perisistent notification updates, which works in 2023.6.

This version now refreshes as expected for me when notifications are created or dismissed (and the filtering on notification id is also working).

Can you please update to this and let me know if it works for you?

gadgetchnnel avatar Jun 13 '23 18:06 gadgetchnnel