Sony Bravia integration ability to manually trigger data update

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.

I’ve put together a TV remote card using GitHub - Nerwyn/universal-remote-card: A completely customizable universal remote card for Home Assistant. Supports multiple platforms out of the box., and long story short, I can choose what TV channel i want to watch. After I go to a certain channel, I know the data needs an update.
The TV remote card can act based on what channel you’re currently on, so it’s inconvenient that the data might take up to 15s before updating.

The problem would be nonexistent if i could request an update after i’ve changed the channel.

Hi

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 ?

Vincèn

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.

What do you think?

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

Thank you, update entity is what I needed. The state updates are not instantenous, but are practiaclly good enough.

For the record though in my case the API requests dont take more than 100ms although my TV doesn’t have that good of a processor.