HASS.Agent-Integration icon indicating copy to clipboard operation
HASS.Agent-Integration copied to clipboard

Bug: too many updates in paused state

Open aksyonov opened this issue 3 years ago • 2 comments

The media_player entity has unnecessary updates every 2 seconds when in paused state. The only attribute being updated is media_position_updated_at (current timestamp). This results in a lot of database writes (in my setup the entity with the most updates is a HASS.Agent media_player - more than 100K records for the last 10 days).

Also, as I understand, even in playing state, the media_position_updated_at attribute shouldn't update every 2 seconds - only when media_position is changed (user skipped to a different position in a track), but when playing normally, there should't be any attribute changes.

aksyonov avatar Jan 30 '23 16:01 aksyonov

Very sharp, thank you for this @aksyonov, will fix ❤️

LAB02-Admin avatar Feb 02 '23 08:02 LAB02-Admin

I'm seeing the same thing. Aside from the database spam, it also increases load on the MQTT server needlessly. It's very annoying. Please fix soon.

Otherwise a great piece of software.

heyitsyang avatar Oct 25 '23 13:10 heyitsyang