Configuring scene to turn off tv via hdmi_cec

Hi,

configured cec on raspberry pi. I’m trying to make a scene that turns off the TV and the lights. I can call hdmi_cec/standby in services and it works with that

Heres what I have

scene:

  • name: Livingroom normal
    entities:
    light.LivingRoom:
    state: on
    transition: 2
    brightness: 255

  • name: Livingroom dim
    entities:
    light.LivingRoom:
    state: on
    transition: 2
    brightness: 75

  • name: Power off Tv and Lights
    entities:
    light.LivingRoom:
    state: off
    service:
    hdmi_cec.standby

When I activate the scene the light turns off as expected but the TV does nothing

Any help would be appreciated, quite new to this

Thanks

Wayne.

Scenes expect a state or a state attribute, not a service. HA will call the appropriate service if there is one defined for the state or state attribute in the source code to transition to the state of the scene.

The hdmi_cec component does not seem to define states only services.