Help with input boolean Automation

I am trying to play with some automations and having an issue. I have an automation that I believe is watching the state of an input_boolean and if it changes then change the state of a different boolean. However it doesnt seem to do anything?

  • alias: ‘Change to ON Mode’
    trigger:
    platform: state
    entity_id: input_boolean.vacation_mode
    from: ‘on’
    to: ‘off’
    action:
    • service: input_boolean.turn_on
      entity_id: input_boolean.normal_mode
  • alias: ‘Change to OFF Mode’
    trigger:
    platform: state
    entity_id: input_boolean.vacation_mode
    from: ‘off’
    to: ‘on’
    action:
    • service: input_boolean.turn_off
      entity_id: input_boolean.normal_mode
1 Like

restarted for a different reason and now it seems to be working…

In the future, it’s a big help if you can paste your code with the formatting preserved so we can see if there are any spacing or indent errors.

To do that, simply highlight your code block in the editor and press the preformatted text button as indicated below:

Just for future reference! :slight_smile:

1 Like