Sony tv on off

I have an integration with Sony TV
I use it to automate my tv lift
TV on lift goes up
TV off lift goes down
So far all good. Problem is even though the TV is on at a random times it will give the signal of being off then on again within seconds. TV does not actually go off but HA receives single as if it is.
I set my TV down with a delay to wait 30 seconds before it goes down.
My problem is every time it goes back on it sends a signal to my wifi switch to turn on or go up. Nothing really happens since tv lift is already up and TV down is offset with timer but worried long term the relay switch won’t like getting repetitive useless signals.
Thought of using source so if hdmi1 is used to send the signals but same thing as everytime the tv sends an off signal hdmi is also perceived as off.
thought of using a state to state so if already on it won’t send signal but that won’t work since it thinks it is off when off signal is sent.
Any solutions? anyone with Sony tv having same issues?

Other solution is to use a current sensing on the tv but never used before, are they quick in sending signal so as when tv is on tv lift actuator goes up right away…

Thanks

Have you tried using the ‘Events’ to listen for anything particular in the messages that it’s turned off?

Also, how does your TV turn on?
You could try alerting your automation to listen for the on command twice in succession?

I had a similar issue with my Philips Hue Dimmer switch. I used the ‘Events’ and pressed each button, I then knew exactly what command was being sent.

Hope this helps.

Hi have no clue on using events.Never used before. tried reading up and found nothing I could understand

what would I use in event type?
Event Data?
event to subscribe to?

the entity Id is media_player.sony_tv

Tv turns on when I say to google home turn on Sony tv

Events in a nutshell…

Your ‘Available Events’ are your ‘listeners’ - These basically listen to any command that is processed by the listener.

For example, Subscribe to ‘state_changed’ - This will show you the data each time an entity state is updated
(alternatively, you can Subscribe to ‘*’ to see everything)

This helps to identify what states are being sent.

The other option I’m now thinking of, is connecting your Home Assistant to Google Home and opening the ‘TV UP/DOWN’ switch to Google.
This way, you could create an automation within Google Home to turn on the TV & turn on the ‘lift’ switch.

Ok finally all works well
I noticed my gym tv was also continuously showing up on my HA logs, much more than the Sony TV.
I had both TV’s setup with ADB but gym TV had no allow ADB in developer options(Option not available in TCL tv’s). So decided to remove ADB from HA removed from configuration file but tv’s were still giving me on off triggers in HA. So reset Gym Tv and all was gone.
Sony Tv had same problem as before so I reset completely Sony Tv also and Bam no more on off triggers when Tv was on.
I get a on Tv when Tv is turned On and Off when I actually turn it off zero on off’s in between
So for some reason when TV’s developer options were activated even though ADB was removed with HA and removed from configuration file, something was still sending a signal to HA as false triggering On Off.
So just wanted to post this in case someone else goes through same thing.

Thanks for your help

1 Like

Sounds like a “turn it off and on again” scenario.
Glad you got it working