Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 108664

De-activate helper when other helper is active through buttons

$
0
0

Hello :slight_smile:

I have three buttons (home office, office and vacation). These decide when (or if) my morning routine should run. Each button toggles the state of three different helpers (one for each mode)

Obviously I can only have one of these buttons active at once as it would crash if both office routine should go off, but vacation is also ticked…

I think this can be done within the automation, but I think it would be more clean if I did it so when you click one button, the ‘on’ state also switches the two other buttons to off.

This is what I have so far:

type: custom:button-card
entity: input_boolean.helper_toggle_vacation
show_state: false
size: null
show_name: false
show_entity_picture: true
state:
  - value: 'on'
    entity_picture: /local/custom_icons/vacation1.png
  - value: 'off'
    entity_picture: /local/custom_icons/vacation0.png

I would guess I need to add some code after - value: ‘on’ but I am not sure what as I don’t know what to google…

Thanks for all help

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 108664

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>