#How to check if an attribute is defined?

1 messages · Page 1 of 1 (latest)

slim arch
#

I am using this as a trigger and I want to check that the return source exists.

platform: state
entity_id:
  - sensor.signal_message_received
attribute: source
condition: template
value_template: "{{ trigger.to_state.attributes.source != none }}"