Blueprint based automation giving error!

I need help with this blueprint:

blueprint:
  name: Alert
  description: Triggers notification
  domain: automation
  author: Sayam
  input:
    sensor_entity:
      name: Sensor
      selector:
        target:
          entity:
            domain: binary_sensor
    switch_entity:
      name: Switch
      selector:
        target:
          entity:
            domain: input_boolean
    timer_entity:
      name: timer
      selector:
        target:
          entity:
            domain: timer
    notify_device:
      name: Device to notify
      selector:
        device:
          filter:
            integration: mobile_app
    trigger_id_1:
      name: Trigger ID 1
      selector:
        text:
          multiline: false
    trigger_id_2:
      name: Trigger ID 2
      selector:
        text:
          multiline: false
  
trigger:
  - platform: state
    entity_id: !input sensor_entity
    from: "off"
    to: "on"
    id: !input trigger_id_1
  - platform: event
    event_type: timer.finished
    event_data:
      entity_id: !input timer_entity
    id: !input trigger_id_2
action:
  - choose:
    - conditions:
        - condition: and
          conditions:
            - condition: trigger
              id: !input trigger_id_1
            - condition: state
              entity_id: !input switch_entity
              state: "off"
      sequence:
        - service: timer.start
          target:
            entity_id: !input timer_entity
          data: {}
    - conditions:
        - condition: and
          conditions:
            - condition: trigger
              id: !input trigger_id_2
            - condition: state
              entity_id: !input sensor_entity
              state: "on"
            - condition: state
              entity_id: !input switch_entity
              state: "off"
      sequence:
        - service: !input notify_device
          data:
            message: “Alert!"
          metadata: {}
mode: single

I am getting this error while saving any automation with the above blueprint:

Message malformed: Entity entity_id is neither a valid entity ID nor a valid UUID for dictionary value @ data['action'][0]['choose'][0]['conditions'][0]['conditions'][1]['entity_id']

Kindly help!

Target Selector & Entity Selector Errors.

There’s your problem…

Hi,

I am new to this. Infact, this is my first blueprint. Could you kindly tell me exactly what to change to get the desired result?

Also, I’d like to ask that the way I am using trigger id, is it fine?

Thanks!
Sayam

So when you read that post I gave you, what did you understand out of it.

I am asking seriously because I wrote that, and I want it to be useful. I would like to see if that WIKI post for the Cookbook is helpful.

Also posting here then within minutes posting it on the HA forum is not cool. You should give it an hour between at least. You just may be asking the same person twice…
It’s called cross-posting and some people when they see that will just refuse to answer.

well, I though I need to change the below:

  input:
    sensor_entity:
      name: Sensor
      selector:
        target:
          entity:
            domain: binary_sensor

to

  input:
    sensor_entity:
      name: Sensor
      selector:
        entity:
          domain: binary_sensor

This makes sense?

OK, good. That’s the idea and will work fine.
There is a difference in the format that you should do to add the filter key in there.
Here’s a link:
Selectors - Home Assistant.

What you have should work but without the filter: tag, it’s deprecated meaning some time in the future it won’t work without that key.

Thanks for helping me today!

  input:
    sensor_entity:
      name: Sensor
      selector:
        entity:
          filter:
            domain: binary_sensor

Is the above okay?

Give it a try. I believe so.

Thanks for the help!