Création d'un bouton à 2 états pour absent présent avec fonction derrière pour couper les caméras

bonjour

merci pour votre aide !! ca marche maintenant je partage le bouton de automation

alias: bouton de commutation absent
description: ""
triggers:
  - trigger: state
    entity_id:
      - input_boolean.absent_present
    from: "off"
    to: "on"
conditions: []
actions:
  - action: script.turn_on
    metadata: {}
    data: {}
    target:
      entity_id: script.active_script_je_suis_absent
mode: single

merci à tous pour votre patience !!

Mike