Guest leave house

Hello,
I would like the final step to change the input_boolean.guest_mode to off
error : extra keys not allowed @ data[‘off’]

alias: Guest leave house
description: ""
triggers:
  - trigger: state
    entity_id:
      - input_boolean.guest_mode
    to: "off"
    enabled: false
  - trigger: numeric_state
    entity_id:
      - zone.home
    above: 0
conditions:
  - condition: state
    entity_id: input_boolean.guest_mode
    state: "on"
actions:
  - action: automation.turn_on
    metadata: {}
    target:
      entity_id:
        - automation.synology_home_mode_on
        - automation.synology_home_mode_off
        - automation.vedo_alarm_activeren
        - automation.vedo_alarm_de_activeren
    data: {}
  - action: switch.toggle
    metadata:
      input_boolean.guest_mode: null
    data:
      "off": null
mode: single

Is there a reason you’re not just using the ‘input_boolean.turn_off’ action or using the very easy to use UI to set this up? Your syntax makes no sense.

  - action: input_boolean.turn_off
    metadata: {}
    data: {}
    target:
      entity_id: input_boolean.guest_mode

Hello,
Thx for the reply.
With the UI I can select an entity as a Condition.

With a then do action I cannot:

So my problem is that I can’t change my Guest mode Boolean to off:


Because I can’t select it.

entity:

Search for “input Boolean” when you add an action and “input boolean turn off” will show up. You have to use that specific action to be able to change that type of helper.

1 Like

Hero Thx!