fix: correct is_zha conditions (#19)
This commit is contained in:
1 parent
90b668aff7
commit
c336a88dbf
2 files changed
+2
-2
No files matched your search
@@ -222,7 +222,7 @@ variables:
|
||||
light: !input light
|
||||
remote_devices: !input remote_devices
|
||||
remote_device: >-
|
||||
{% set is_zha = trigger.platform == "zha_event" %}
|
||||
{% set is_zha = trigger.platform == "event" and trigger.event.event_type == "zha_event" %}
|
||||
{% set is_mqtt = trigger.platform == "mqtt" %}
|
||||
{% set device_name = trigger.topic.split("/")[1] if is_mqtt else none %}
|
||||
{{
|
||||
|
||||
Reference in new issue
Block a user