input_boolean:
  guest_mode:
    name: Guest mode
    icon: mdi:human-greeting
  guest_bedroom:
    name: Guest Bedroom
    icon: mdi:cogs

automation:
  - alias: Guest mode · Change
    trigger:
      platform: state
      entity_id: input_boolean.guest_mode
    action:
      choose:
        - conditions: "{{ trigger.to_state == 'on' }}"
          sequence:
            - service: automation.turn_off
              entity_id:
                - automation.presence_leaving_home
                - automation.presence_coming_home
            - service: input_boolean.turn_off
              entity_id: input_boolean.speech_notifications
        - conditions: "{{ trigger.to_state == 'off' }}"
          sequence:
            - service: automation.turn_on
              entity_id:
                - automation.presence_leaving_home
                - automation.presence_coming_home
            - service: input_boolean.turn_on
              entity_id: input_boolean.speech_notifications
