How to change a helper in automation

I have a beginner question. I have created 3 helpers. sit1, sit2, sit3.
I want to achieve that when I turn sit1 on, sit2 and sit3 automatically turn off.
This is not possible with automations. Can this be done in another way?

Why do you think it is not possible?
Is it ONLY sit1 turning on that will turn off sit2 and sit3? Or are you wanting that when any of sit1, sit2, sit3 is turned on - the other 2 will be turned off?

Yes it is.

I assume you are using input booleans (you did not say what sort of helper), in which case trigger the automation using a state trigger when sit1 turns on then use this service to turn off the others:

homeassistant.turn_off
entity_id: input_boolean.sit2

Yes Tom I use input booleans but i can’t fix it Yaml. I’am a newbee.

Witch action type should I use to change sit2?

use a service as the action. not a type.

the service to turn off an input_boolean is input_boolean.turn_off

or you can use homeassistant.turn_off as tom suggested above.

Solved.
Thankx for helping me. Now it works.

Although this really sounds like you would have been easier off by using a single input_select with three options (sit1, sit2 and sit3) instead of trying to keep 3 booleans mutually exclusive.

1 Like

I’m adding to this because of the difference in use between input_boolean and input_select to help anyone like myself who comes along later.

As Timo pointed out you can use an input_select for this and as a script it would look like:

alias: situation
sequence:
  - service: input_select.set_options
    data:
      options: sit1
    target:
      entity_id: input_select.situation
mode: single

The input_select helper would contain [sit1, sit2 & sit3]. I’m using this in a situation where I am calling the script on Android using Tasker. Using ‘Call Service’ with ‘script.situation’ changes the helper to ‘sit1’.