TV does not switch input HDMI_CEC

Hey,

So I have setup HDMI_CEC and it works fine. The only thing that does not really work is controlling my TV.
I have my raspi with hassio connected to my TV, to my TV I have an amp connected, to that amp I have a Chromecast, an Xbox, a receiver(Horizon) and a Steamlink connected (the latter three do not support CEC). My config:

hdmi_cec:
  devices:
    TV: 0.0.0.0
    Raspi: 1.0.0.0
    Onkyo: 4.0.0.0
    Xbox: 4.1.0.0
    Horizon: 4.2.0.0
    Steamlink: 4.3.0.0
    Chromecast: 4.4.0.0
  types:
    hdmi_cec.Xbox: media_player
    hdmi_cec.Horizon: media_player
    hdmi_cec.Chromecast: media_player

I can switch inputs to every single device. What I cannot do though is switch the input on my TV. E.g. if I restart my raspi, my TV changes input to it. And I have to manually change it back. Also, if I want to pause the stream on my chromecast (which I can do with my TV remote through CEC) (if I try to simulate the button press for a broadcast). It only works if I select the chromecast as the destination. Interestingly my TV is recognized as a VIZIO, but it’s actually a Hisense. No clue if this makes any difference though…
Any ideas?

Regards,
ciB

No, I gave up with hdmi cec ages ago for similar reasons. The TV was always the problem. I searched and searched and went round in circles and never got anywhere.

Maybe if someone gets yours to work I’ll give it another go.

It’s so weird, since my chromecast e.g. can turn on/off my TV and switch the inputs. And doesn’t it use the same cec commands as the HA?

That’s the mystery that I could never solve. If I linked the TV and AV and bluray and everything it all seemed perfect, ask ha to do it, TV wouldn’t respond, or would do something different, and then it would be out of sync with other controls and I just couldn’t suss it out.

I ended up de-linking everything and doing it all via dumb IR with a broadlink.

Yeah, it just stopped working now all together… I at least hoped it would continue to work for my amp - but no, it just stops working :-/