Input boolean not working as condition

automation nixie_clock:
  - alias: "Nixie clock"
    trigger:
      - platform: device
        type: turned_on
        device_id: 1dbb489f4d2eda53e71998d9c2c561ec
        entity_id: remote.living_room_harmony
        domain: remote
    condition:
      - condition: state
        entity_id: input_boolean.nixie_clock
        state: "off"
    action:
      - service: remote.send_command
        data:
          device: Nixie IN-8-2
          command: PowerToggle
        target:
          device_id: 1dbb489f4d2eda53e71998d9c2c561ec
      - service: input_boolean.turn_on
        target:
          entity_id: input_boolean.nixie_clock

If input_boolean.nixie.clock is on

Screen Shot 2021-09-22 at 3.33.59 PM

the actions in this automation still fire. What am I missing?

I have tried it as a trigger and that works so I know the input_boolean itself is working.

What does the automation trace show?

How are you testing the automation?

If you are executing the automation manually (either by clicking the Run Actions button or by via the automation.trigger service) it skips the automation’s trigger and condition and simply executes the action.

Nothing regarding the condition. It just never hits on the condition.

That might be it let me try creating simpler automation/test and see what happens.

You should review this section of the documentation: Testing Your Automation

If you want to execute automation.nixie_clock manually and test its condition then you can do it like this:

  1. Go to Developer Tools > Services
  2. Select Automation: Trigger
  3. Click Pick Entity and select your automation.
  4. Enable the Skip Conditions checkbox and then disable the toggle button.
  5. Click the Call Service button.

1 Like

Thanks for the tip.

Seems to be working now so I guess that was it.

Glad to hear it works now.

Please consider marking my post above with the Solution tag. It will automatically place a check-mark next to the topic’s title which signals to other users that this topic has been resolved. This helps users find answers to similar questions.