Automation condition based on Google Calandar

Hi All,

Trying to create an automation to start a certain time. So added a time platform trigger.
The action is also not the issue. In the end it should do a script.turn_on.

The part where i am stuck is at the condition part.

It should only fire when it is a workday. But also only when there is not a google calendar event. (bonus with a specific text, i now created a separate calendar so i can also make it work with a state on/state off).

below is the automation in yaml which i think should work. But when i manually trigger the automation my lights get toggled even do there is a calandar item and therefor the state is “on”.

alias: test calendar
description: ''
trigger: []
condition:
  - condition: not
    conditions:
      - condition: state
        entity_id: calendar.vakantie_vrij
        state: 'on'
  - condition: state
    entity_id: binary_sensor.workday_sensor
    state: 'on'
action:
  - type: toggle
    device_id: 40d5ea83137711eb8d54b7cf5125e9ed
    entity_id: light.studio_rgbw_light
    domain: light
mode: single


image

most likely i am making a mistake in think how the condition part works but can not find where i am going wrong by reading the documentation.

Thanks in advanced!