You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Controller automation for executing any kind of action triggered by the provided Philips 8718699693985 Hue Smart Button. Allows to optionally loop an action on a button long press.
8
-
Supports deCONZ, ZHA.
8
+
Supports deCONZ, ZHA, Zigbee2MQTT.
9
9
10
10
Automations created with this blueprint can be connected with one or more [Hooks](https://epmatt.github.io/awesome-ha-blueprints/docs/blueprints/hooks) supported by this controller.
11
11
Hooks allow to easily create controller-based automations for interacting with media players, lights, covers and more.
@@ -15,9 +15,11 @@ blueprint:
15
15
16
16
🚀 This blueprint is part of the **[Awesome HA Blueprints](https://epmatt.github.io/awesome-ha-blueprints) project**.
description: The controller device to use for the automation. Choose a value only if the remote is integrated with deCONZ, ZHA.
33
36
default: ''
34
37
selector:
35
38
device:
39
+
controller_entity:
40
+
name: (Zigbee2MQTT) Controller Entity
41
+
description: The action sensor of the controller to use for the automation. Choose a value only if the remote is integrated with Zigbee2MQTT.
42
+
default: ''
43
+
selector:
44
+
entity:
45
+
domain: sensor
36
46
helper_last_controller_event:
37
47
name: (Required) Helper - Last Controller Event
38
48
description: Input Text used to store the last event fired by the controller. You will need to manually create a text input entity for this, please read the blueprint Additional Notes for more info.
controller_id: '{% if integration_id=="zigbee2mqtt" %}{{controller_entity}}{% else %}{{controller_device}}{% endif %}'
152
168
mode: restart
153
169
max_exceeded: silent
154
170
trigger:
171
+
# trigger for zigbee2mqtt
172
+
- platform: event
173
+
event_type: state_changed
174
+
event_data:
175
+
entity_id: !input controller_entity
155
176
# trigger for other integrations
156
177
- platform: event
157
178
event_type:
@@ -172,6 +193,10 @@ condition:
172
193
{%- endif -%}
173
194
{%- endset -%}
174
195
{{ trigger_action not in ["","None"] }}
196
+
# only for zigbee2mqtt, check if the event is relative to a real state change, and not only some minor changes in the sensor attributes
197
+
# this is required since multiple state_changed events are fired for a single button press, with the result of the automation being triggered multiple times
198
+
- '{{ integration_id != "zigbee2mqtt" or trigger.event.data.new_state.state != trigger.event.data.old_state.state }}'
199
+
175
200
action:
176
201
# debouncing - when automation is triggered multiple times, the last automation run is the one which completes execution, due to mode restart
177
202
# therefore previous runs must wait for the debounce delay before executing any other action
@@ -189,7 +214,7 @@ action:
189
214
{%- elif integration_id == "zha" -%}
190
215
{{ trigger.event.data.command }}
191
216
{%- endif -%}
192
-
trigger_delta: '{{ (as_timestamp(now()) - ((states(helper_last_controller_event) | from_json).t if helper_last_controller_event is not none and (states(helper_last_controller_event) | regex_match("^\{((\"a\":\".*\"|\"t\":\d+\.\d+)(,)?){2}\}$")) else as_timestamp("1970-01-01 00:00:00"))) * 1000 }}'
217
+
trigger_delta: '{{ (as_timestamp(now()) - ((states(helper_last_controller_event) | from_json).t if helper_last_controller_event is not none and (states(helper_last_controller_event) | regex_match("^\{((\"a\":\".*\"|\"t\":\d+\.\d+)(,)?){2}\}$")) else as_timestamp("1970-01-01 00:00:00"))) * 1000 }}'
Copy file name to clipboardExpand all lines: website/docs/blueprints/controllers/osram_ac025xx00nj.mdx
+3
Original file line number
Diff line number
Diff line change
@@ -240,3 +240,6 @@ This blueprint supports any variant of the Osram SMART+ Switch Mini controller (
240
240
-**2021-08-02**: Improve inputs documentation and organization
241
241
-**2021-10-26**: Standardize blueprints structure and inputs naming across the whole collection. Improve blueprint documentation. No functionality change.
242
242
-**2022-08-08**: Optimize characters usage for the `helper_last_controller_event` text input.
243
+
-**2025-01-05**:
244
+
- Updated Actions Mapping as per Z2M [docs](https://www.zigbee2mqtt.io/devices/AC0251100NJ_AC0251600NJ_AC0251700NJ.html#actions) for the device. ([@alexdelprete](https://github.com/alexdelprete))
245
+
- Fix regex for updated helper JSON serialization starting from Home Assistant 2023.5.0.
Copy file name to clipboardExpand all lines: website/docs/blueprints/controllers/philips_8718699693985.mdx
+10
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,7 @@ Hooks allow to easily create controller-based automations for interacting with m
30
30
31
31
<Requirementid='deconz'/>
32
32
<Requirementid='zha'/>
33
+
<Requirementid='zigbee2mqtt'/>
33
34
<Requirementname='Input Text Integration'required>
34
35
35
36
This integration provides the entity which must be provided to the blueprint in the **Helper - Last Controller Event** input. Learn more about this helper by reading the dedicated section in the [Additional Notes](#helper---last-controller-event).
@@ -52,6 +53,12 @@ This integration provides the entity which must be provided to the blueprint in
52
53
selector='device'
53
54
required='deCONZ, ZHA'
54
55
/>
56
+
<Input
57
+
name='Controller Entity'
58
+
description='The action sensor of the controller to use for the automation. Choose a value only if the remote is integrated with Zigbee2MQTT.'
59
+
selector='entity'
60
+
required='Zigbee2MQTT'
61
+
/>
55
62
<Input
56
63
name='Helper - Last Controller Event'
57
64
description='Input Text used to store the last event fired by the controller. You will need to manually create a text input entity for this, please read the blueprint Additional Notes for more info.'
@@ -148,3 +155,6 @@ It's also important to note that the controller doesn't natively support double
148
155
-**2021-08-02**: Improve inputs documentation and organization
149
156
-**2021-10-26**: Standardize blueprints structure and inputs naming across the whole collection. Improve blueprint documentation. No functionality change.
150
157
-**2022-08-08**: Optimize characters usage for the `helper_last_controller_event` text input.
158
+
-**2025-01-05**:
159
+
- Added support for Zigbee2MQTT. ([@alexdelprete](https://github.com/alexdelprete))
160
+
- Fix regex for updated helper JSON serialization starting from Home Assistant 2023.5.0.
0 commit comments