Skip to content

Commit

Permalink
Wake-up sensors
Browse files Browse the repository at this point in the history
Solves #1687
  • Loading branch information
edwardtfn committed Jan 20, 2024
1 parent 922caf3 commit eb9ddcc
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions nspanel_blueprint.yaml
Expand Up @@ -3927,6 +3927,26 @@ blueprint:
value: "toggle"
- label: "Trigger"
value: "trigger"
##### Wake-up sensors #####
wake_up_sensors:
name: Wake-up sensors
description: >
*SYSTEM settings*

*Select a sensors to wake-up the panel when the sensor turns **ON**.*

default: []
selector:
entity:
multiple: true
filter:
domain:
- binary_sensor
device_class:
- motion
- occupancy
- door

# yamllint enable rule:indentation rule:comments-indentation
#############################################################
##### CLOSE - INPUT #####
Expand Down Expand Up @@ -6709,6 +6729,12 @@ trigger:
event: start
id: ha_started

##### Wake-up sensor
- platform: state
entity_id: !input wake_up_sensors
to: "on"
id: wake_up_sensors

##### Trigger - Buttons - State change #################################################################################################################
##### Button01 Sync - Trigger 'current_state_entity01' #####
- platform: state
Expand Down Expand Up @@ -10782,6 +10808,17 @@ action:
url: "default"
continue_on_error: true

#### TFT Upload Automation #####
- alias: Wake-up
conditions:
- condition: trigger
id: wake_up_sensors
sequence:
- service: '{{ nextion.command.wake_up }}'
data:
reset_timer: true
continue_on_error: true

#############################################################
##### CLOSE - Action #####
#############################################################
Expand Down

0 comments on commit eb9ddcc

Please sign in to comment.