Not sure if the TV won’t accept the commands. Given it occasionally works with the magic packet you could try sending multiple packets a second apart and see if that works. Its a hack but…
Being honest I am an idiot. When you go in to Network settings on the TV, with wireless turned off and Ethernet connected, it tells you the IP and Mac address.
However it turns out the mac address is for the wireless adapter.
When you go in Settings, Contact Us, there is another mac address under "Wire " when using this mac address it worked.
I can only assume it worked occasionally as the wireless was enabled.
Thank you all for you help.
The only issue I have now is the Wake On Lan packet needs to be sent twice so I need to work out how to send it twice with a short delay between each one.
I never could setup this with wifi. Check for developer options on your tv. I set up it with developer options. I use wake on lan and wifi is disabled.
And you have to ping your tv because it will go into deep sleep regardless.
There is no need for that at least not in my config. Disable wifi, enable wake on lan and ping tv. That is it.
If you can turn it on/off in media card it should work without any problems.
There is no need for that at least not in my config. Disable wifi, enable wake on lan and ping tv. That is it.
If you can turn it on/off in media card it should work without any problems.
I can’t turn it on in a card on the dashboard, once it is off, there is no power button on the dashboard any more.
However running an automation to turn it on works, but I have to run it twice.
When I run it the first time, I see the standy light go out as though the TV is going to turn on, but then it comes back on again. Then I run the automation again and it comes on.
This is the same when I just run the code in Developer Tools > Services
That means that tv went into deep sleep. Thats why I told you to ping it. I wrote in my thread how to do it. I have that setup and it is working. I can switch tv on whenever by home assistant or alexa.
This is working on wake on lan. I dont know what is your problem but something is wrong with your setup.
Failed to execute an ADB command. ADB connection re-establishing attempt in the next update. Error: Reading from 192.168.69.115:5555 timed out (9.0 seconds)
18:10:10 – (ERROR) Android TV
I really dont understand what is happening. The Wake On Lan is working, but seems to need to be run twice each time.
The script above was meant to run it, wait 10 seconds then run it again to work round the issue, but it doesnt work
Its up on your tv. I had some cheap android tv that always had problems with android tv integrations. I gave it to my dad. Everything is oke with that tv but it is not suitable for automation. Now I have xiaomi tv with build in chromecast and this is working without issues.
You can live with it for some time. When you figure things out little bit more with home assistant buy new tv.