first, you should be sending to the entity, not the device.
i presume you did hit the physical remote hardware button? and you did so after the services button went green, but before 8 seconds elapsed from that point?
i have a few sony bravia’s as well and i can attest that at least the bravia’s i have do respond to the learn_sendevent command.
I think you need press call service button first.
Then press desired button.
Then wait until call service button turns green.
Then go to states menu and adb_response under your tv entity.
i’ve not seen that error before. smells almost like the auth token is expired.
do any other commands to it work? if none are working, i’d try removing and re-establishing a fresh pairing to the tv.
ADB is deprecated… it says to use built-in Python implementation…
Can someone please show how to do this? i dont know what to put in configuration.yaml