Triggers using Toon eneco thermostat

can anybody explain to me why this isn’t working with the toon thermostat?

I wan’t to turn my light off when the toon thermostat gets his state SLEEP.
The Toon is using api.

here is my automation

  • alias: ‘zet huis in slaap’
    trigger:
    platform: state
    entity_id: climate.toon_van_eneco
    to: ‘sleep’
    action:
    service: switch.turn_off
    entity_id: group.all_switches