I want to trigger to switch on lights when when sensor value daylight goes from true to false. But it's not working. what am i missing? Some details: Virrual sensor comes with installation of ConBee II.
alias: voorkamer "description: '' trigger: - platform: state entity_id: sensor.daylight attribute: daylight from: 'true' to: 'false' condition:  action: - type: turn_on device_id: 2538dddee83e38f1a9d4c4fb30851cab entity_id: switch.shelly1_e09806a9da55 domain: switch mode: restart