Hue Smart Plug Light to Switch

I tried a switch from a Philips Hue plug that displays the light. Unfortunately it doesn’t work

switch:

  • platform: template
    switches:
    skylight:
    value_template: “{{ is_state(‘sensor.skylight’, ‘on’) }}”
    turn_on:
    service: light.turn_on
    target:
    entity_id: light.tv_schlafzimmer_open
    turn_off:
    service: light.turn_off
    target:
    entity_id: light.tv_schlafzimmer_close

Unfortunately I can’t figure out what I’m doing wrong
I want to make a switch out of a Philips Hue smart plug that displays the light

light.tv_schlafzimmer
to
Switch

Using the Hue bridge, or ZHA or Zigbee2MQTT ?