How do I prevent my Raspberry with HA (previously Hassio / HassOS) from turning on my tv on reboot?
You’re going to need to elaborate. Is that an HDMI CEC issue? An automation that’s kicking off on restart?
Correct. It is an HDMI CEC issue. On Rasbian it is solved by adding hdmi_ignore_cec_init=1
in the config.txt, but I don’t know how to solve this in HA?
(I have not set up any HDMI CEC automations in HA, and the issue was there from the beginning, even before configuring hdmi cec in the config)
Turn off cec in TV menu
EDIT
If TV cec control desired I’m not sure this is possible.
Some TV have ability to OFF power ON by cec in service menu or other detailed control. Maybe just let turn on an automated TV to back OFF
I need to maintain HDMI CEC control. I just don’t want HA to send an “on” command to the tv on reboot. This was no issue on Raspbian.
Raspbian you probably reboot container not RasPi so never notice. I forget result of reboot.
Power signal from source device always result power ON with CEC. To disable must do in Display settings but in this case you may lose Power ON/OFF TV control
Post TV make /model
my TV is a Samsung UE75JU7005
Samsung calls it “anynet”
Try looking for and adjusting those related setting.
Unfortunately that is not an option. I need to maintain HDMI CEC control.
Also, my Denon receiver does not send a “turn on tv” command when I turn it on, unless sends a video signal, and on Raspbian it did not turn on the TV even when disconnecting the power supply and connecting again, so it should be possible…
CEC function OFF and CEC TV power OFF are separate function.
Check in system menu of TV for options. This may improve function for you
For raspbian I think setting is under RasPi config command…
Then do exactly the same.
This happened when I added my Apple TV to Home Assistant. Maybe disable your TV and Smart TV Box integrations, reboot, and see if it stops happening. Because it might be an integration causing the issue, then you know what to troubleshoot.
Where should I add this? In the configuration.yaml?
in config.txt.
Sorry if I seem a bit slow, but how do I find and that file in HA? I don’t see it in the configurator…
I was looking for solution to similar problem (in my case there were blinds opening on reboot) and found solution just few days ago…
So do you have, by chance, any automation that powers on TV on state state change with only to: condition?
In my case for opening blinds in TV room I was checking state change of harmony remote to: PowerOff. I did not included from: condition, since it could be many of them (Apple_TV, Game, Smart_TV, Cable_TV). It turned out that on reboot harmony integration is not fully initiated and a while after reboot HA automation was reacting to state change from: Unknown to: PowerOff…
It is dealt with quite recently on the forum.
Apologies, but had a hard time finding the config.txt in HA (Hassio), so now I just have HA (Hassio) running in a docker container on Raspbian. Now the issue is solved as initially stated (in config.txt on Raspbian).
Yeah sorry I just can’t remember where hassio puts config.txt. It will be in the FAT partition that it boots from, but how to access it, well I forgot.
Anyway problem solved.