Closed jvmahon closed 2 months ago
Hey there @home-assistant/matter, mind taking a look at this issue as it has been labeled with an integration (matter
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
matter documentation matter source (message by IssueLinks)
I also wonder if there could be a connection to this other issue I entered in the "frontend" repository regarding use of Labels as references: https://github.com/home-assistant/frontend/issues/21744
In both this "conditional template" issue, and frontend "labels as references" issue 21744, there seems to be problem accessing information relating to an entity created by the Matter integration.
Possibly solved - may be a quoting error. Closing for now while I check further.
The problem
Problem: I believe there is an issue with the Matter button press Event entity not being recognized in a conditional template.
Note: This problem has been tested using the Inovelli VTM31-SN dimmer.
Background:
I have pasted sample YAML for a simplified version of what I am trying to do. In the "Choose" block, Options 1 - 4 are various attempts to use condition templates to recognize a double tap.
Options 5 and 6 test if the entity is known (using has_value and not has_value). Only Option 6 gets executed on a double tap.
I have also pasted below the trace data for a sample triggering using double-tap. As I read the trace data, trigger.to_state_entity_id does have a value (and correctly identifies the triggering entity), but "{{ not has_value ('trigger.to_state.entity__id') }}" still evaluates to true.
So, am I doing something wrong? Or is this a bug in the Event entity code?
What version of Home Assistant Core has the issue?
2024.8.2
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Matter
Link to integration documentation on our website
https://www.home-assistant.io/integrations/matter/
Diagnostics information
trace automation.backyard_lights_on_and_off 2024-08-24T12_57_40.604780+00_00.json
Example YAML snippet
Anything in the logs that might be useful for us?
No response
Additional information
No response