diff --git a/nspanel_blueprint.yaml b/nspanel_blueprint.yaml index 0a98b6f3..94eb39c2 100644 --- a/nspanel_blueprint.yaml +++ b/nspanel_blueprint.yaml @@ -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 ##### @@ -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 @@ -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 ##### #############################################################