(solved) Google agenda change person home or not_home

Hello, I started with home assistant.

I created a calendar to find the presence of my children. It works, but I wish that when this calendar is on, the two people go from no_home to home and vice versa. The calendar works well but I can not update the state.

configuration.yaml

google:
client_id: !secret ******
client_secret: !secret ******

google_calendars.yaml

  • cal_id: [email protected]
    entities:
    • device_id: presences_enfants
      name: Présences Enfants
      track: true
      search: Présences Enfants

person.children1 (not_home) if search: Présences Enfants = true so = home
person.children2 (not_home) if search: Présences Enfants = true so = home

I created an input_boolean. Damage no home or not_home.