HDMI_CEC controlls

I have hass os on my raspberry pi 3 and i have connected it to my tv and thanks to hdmi cec it turned on directly on reboot.
now i have added this to my configuration.yaml file

hdmi_cec:
  devices:
    TV: 0.0.0.0
    Raspberry Pi 3: 1.0.0.0
    Fire TV Stick: 2.0.0.0

according to the hdmi_cec documentation this should be fine

but when i added the script for later automation

tv_power_on:
  alias: "TV on"
  sequence:
    - service: hdmi_cec.power_on
      data:
        device: "TV"

tv_power_off:
  alias: "TV off"
  sequence:
    - service: hdmi_cec.power_off
      data:
        device: "TV"

but now it won’t react to it and i am confused
when i look into the ssh and type anything related to cec-client the autodetect will fail or it will end up in an error.
If it helps on my tv the pi is on hdmi 2 and the tv stick is on hdmi 1

any help is appreaciated