I’m using the Sony Bravia integration and it appears it only updates the states every 10s by calling /sony/system, /sony/audio and /sony/avContent endpoints of the TV.
I’d like to be able to programmatically trigger this “data update” whenever i know there has likely been a change.
There might be some good reasons for the 10s delay. Lot of devices don’t like to be polled too often. Did you try to duplicate the existing integration to do a custom one with it with a shorter poll time and see how it goes ?
I already assumed that’s true. That’s why I proposed the ability to manually trigger the updates. a shorter poll time is probably not worth the energy waste and all, and eventually will still be worse than a manual trigger.
Even if the poll time is 5s or 3s, the manual polling will be better in my case because i literally know when i need an update and i can instantly request an update (or with a 0.5 delay) and have the update within 1 seconds.
Well don’t forget that the device needs also time updating and often with TV processor in it are not really powerful so I would not expect an instant update answer ! Did you try the force update command ? homeassistant.update_entity