Skip to content

Commit

Permalink
Update philips_929002398602.yaml
Browse files Browse the repository at this point in the history
Including PR577 for double press of Philips hue dimmer remote v2

EPMatt#577
  • Loading branch information
knirps99 authored Jan 17, 2024
1 parent 9ee5920 commit 1e99529
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ action:
{%- elif integration_id == "zha" -%}
{{ trigger.event.data.command }}
{%- endif -%}
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 }}'
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\":\s*?\".*\"|\"t\":\s*?\d+\.\d+)(,\s*?)?){2}\}$")) else as_timestamp("1970-01-01 00:00:00"))) * 1000 }}'
# update helper
- service: input_text.set_value
data:
Expand Down

0 comments on commit 1e99529

Please sign in to comment.