Error in Blueprint boolean

Hi everybody,
I’m working on a Blueprint since yesterday and it is driving me nuts. Maybe it’s something ovious but I just don’t get it.

The Blueprint is for an automation which turns on a smoke alarm (an input_boolean helper) when a smoke detector detacts smoke and if nobody is present it also turns off the power in that certain area. There is also an option to have the smoke detector ‘silent’, so the automation only triggers if nobody is present (according to the state of an input_select helper).

The option to have the smoke detector silent can be checked through a boolean selector in the blueprint, which, according to the documentation, reports as true if checked or false if unchecked. So I used the boolean !input silent as the enabled: state of a condition, so the condition is only in effect when the boolean is checked.

The Blueprint works fine when I check the silent boolean, but if I have it unchecked I get the Error: Message malformed: Missing input silent_boolean

I do not understand why this is not working, the selector boolean apperently has no other options and the state false is a valid state for enabled: in a condition, what am I missing?

You can find the code of the Blueprint here:

blueprint:
  name: Rauchmelder
  description: Zuordnung der Rauchmelder zu Alarm und Abschaltung
  domain: automation
  author: gorgor_gonzales
  input:
    rauchmelder_input:
      name: Rauchmelder
      selector:
        entity:
          domain:
            - binary_sensor
          device_class: smoke
    rauchmelder_ort:
      name: Ort des Rauchmelder
      selector:
        text:
          multiple: false
          type: text
    unterverteilung_output:
      name: Unterverteilung
      description: Die Unterverteilung die bei Feuer automatisch abgeschaltete werden soll
      selector:
        entity:
          domain:
            - switch
          integration: shelly
          multiple: true
    silent_boolean:
      name: Stumm wenn geöffnet?
      description: Wenn ausgewählt alarmiert der Rauchmelder nur wenn der Laden geschlossen ist.
      selector:
        boolean:

mode: single

triggers:
  - trigger: state
    entity_id: !input rauchmelder_input
    to: "on"
    id: Rauch Erkannt
  - trigger: event
    event_type: mobile_app_notification_action
    event_data:
      action: verstanden
    id: Rauchalarm gelesen
  - trigger: state
    entity_id: !input rauchmelder_input
    to: "off"
    id: Kein Rauch mehr Erkannt
conditions: []
actions:
  - choose:
      - conditions:
          - condition: trigger
            id:
              - Rauch Erkannt
            enabled: true
          - condition: state
            entity_id: input_select.klunkerkranich
            state: geschlossen
            enabled: !input silent_boolean
        sequence:
          - action: input_boolean.turn_on
            metadata: {}
            data: {}
            target:
              entity_id: input_boolean.rauchalarm
          - action: input_text.set_value
            metadata: {}
            data:
              value: !input rauchmelder_ort
            target:
              entity_id: input_text.rauchmelder_alarm
          - if:
              - condition: state
                entity_id: input_select.klunkerkranich
                state: geschlossen
            then:
              - action: switch.turn_off
                target:
                  entity_id: !input unterverteilung_output
                metadata: {}
                data: {}
      - conditions:
          - condition: trigger
            id:
              - Rauchalarm gelesen
              - Kein Rauch mehr Erkannt
        sequence:
          - action: input_boolean.turn_off
            metadata: {}
            data: {}
            target:
              entity_id: input_boolean.rauchalarm
            enabled: true

Thank you for your help!

Have you tried setting a default value for silent_boolean?

    silent_boolean:
      name: Stumm wenn geöffnet?
      description: Wenn ausgewählt alarmiert der Rauchmelder nur wenn der Laden geschlossen ist.
      default: false
      selector:
        boolean: {}

I had something similar happen last week, and adding defaults for boolean and number selectors solved the issue.

1 Like