gadgetchnnel / lovelace-home-feed-card

A custom Lovelace card for displaying a combination of persistent notifications, calendar events, and entities in the style of a feed.
275 stars 24 forks source link

Breaking change in HA 2023.6 #104

Open ercsey opened 1 year ago

ercsey commented 1 year ago

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

gadgetchnnel commented 1 year ago

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.

ercsey commented 1 year ago

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.

gadgetchnnel commented 1 year ago

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?