change short_press trigger
This commit is contained in:
@@ -1050,12 +1050,10 @@ trigger:
|
|||||||
##### Trigger - Button General #################################################################################################################
|
##### Trigger - Button General #################################################################################################################
|
||||||
|
|
||||||
##### Page Button - Trigger "short_press" - SHORT Press via "last_click" #####
|
##### Page Button - Trigger "short_press" - SHORT Press via "last_click" #####
|
||||||
- platform: event
|
- platform: template
|
||||||
event_type: state_changed
|
value_template: '{{ states(last_click) is match "releasebutton" }}'
|
||||||
event_data:
|
|
||||||
entity_id: "{{ last_click }}"
|
|
||||||
id: short_press
|
id: short_press
|
||||||
|
|
||||||
##### Page Button - Trigger "long_press" - LONG Press via "last_click" - Button LONG Press for jump to Lightsetting or Coversetting Page #####
|
##### Page Button - Trigger "long_press" - LONG Press via "last_click" - Button LONG Press for jump to Lightsetting or Coversetting Page #####
|
||||||
- platform: template
|
- platform: template
|
||||||
value_template: '{{ states(last_click) is match "press" }}'
|
value_template: '{{ states(last_click) is match "press" }}'
|
||||||
|
|||||||
Reference in New Issue
Block a user