Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 70 additions & 12 deletions keypad_blueprint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,30 @@ blueprint:
default: []
selector:
action:
volume_normal:
name: Volume
description: Volume level for announcements on the keypad
default: 7
selector:
number:
min: 0
max: 10
step: 1
unit_of_measurement: ""
volume_night:
name: Night Mode Arm/Disarm Volume
description: Volume level for the keypad in Armed Night mode
default: 0
selector:
number:
min: 0
max: 10
step: 1
unit_of_measurement: ""
variables:
alarm: !input alarm
volume_night: !input volume_night
volume_normal: !input volume_normal
mode: parallel
max: 10
trace:
Expand Down Expand Up @@ -113,10 +135,18 @@ trigger:
entity_id: !input alarm
to: armed_away
id: alarm_armed_away
- platform: state
entity_id: !input alarm
to: armed_vacation
id: alarm_armed_away
- platform: state
entity_id: !input alarm
to: armed_home
id: alarm_armed_home
- platform: state
entity_id: !input alarm
to: armed_night
id: alarm_armed_home
- platform: state
entity_id: !input alarm
to: pending
Expand All @@ -138,7 +168,7 @@ action:
- code_entered
- keypad_disarm
sequence:
- service: alarmo.disarm
- action: alarmo.disarm
data:
entity_id: !input alarm
code: >
Expand All @@ -158,7 +188,7 @@ action:
entity_id: !input alarm
state: disarmed
sequence:
- service: alarmo.arm
- action: alarmo.arm
data:
entity_id: !input alarm
mode: '{{ trigger.id.split("_")[2] }}'
Expand All @@ -177,7 +207,7 @@ action:
event_data: null
timeout: '5'
continue_on_timeout: false
- service: alarmo.arm
- action: alarmo.arm
data:
entity_id: !input alarm
mode: '{{ trigger.id.split("_")[2] }}'
Expand All @@ -191,7 +221,7 @@ action:
id:
- invalid_code
sequence:
- service: zwave_js.set_value
- action: zwave_js.set_value
target:
device_id: !input keypad
data:
Expand All @@ -204,7 +234,7 @@ action:
- condition: trigger
id: need_bypass
sequence:
- service: zwave_js.set_value
- action: zwave_js.set_value
target:
device_id: !input keypad
data:
Expand All @@ -217,7 +247,14 @@ action:
- condition: trigger
id: alarm_disarmed
sequence:
- service: zwave_js.set_value
- action: zwave_js.set_config_parameter
target:
device_id: !input keypad
data:
endpoint: "0"
parameter: "4"
value: "{{ volume_normal if trigger.from_state.state != 'armed_night' else volume_night }}"
- action: zwave_js.set_value
target:
device_id: !input keypad
data:
Expand All @@ -226,11 +263,18 @@ action:
property: "2"
property_key: "1"
value: 99
- action: zwave_js.set_config_parameter
target:
device_id: !input keypad
data:
endpoint: "0"
parameter: "4"
value: "{{ volume_normal }}"
- conditions:
- condition: trigger
id: alarm_armed_away
sequence:
- service: zwave_js.set_value
- action: zwave_js.set_value
target:
device_id: !input keypad
data:
Expand All @@ -243,20 +287,34 @@ action:
- condition: trigger
id: alarm_armed_home
sequence:
- service: zwave_js.set_value
- action: zwave_js.set_config_parameter
target:
device_id: !input keypad
data:
endpoint: "0"
parameter: "4"
value: "{{ volume_normal if trigger.to_state.state != 'armed_night' else volume_night }}"
- action: zwave_js.set_value
target:
device_id: !input keypad
data:
command_class: "135"
endpoint: "0"
property: "10"
property_key: "1"
value: 99
value: 100
- action: zwave_js.set_config_parameter
target:
device_id: !input keypad
data:
endpoint: "0"
parameter: "4"
value: "{{ volume_normal }}"
- conditions:
- condition: trigger
id: alarm_arming
sequence:
- service: zwave_js.set_value
- action: zwave_js.set_value
target:
device_id: !input keypad
data:
Expand All @@ -269,7 +327,7 @@ action:
- condition: trigger
id: alarm_pending
sequence:
- service: zwave_js.set_value
- action: zwave_js.set_value
target:
device_id: !input keypad
data:
Expand All @@ -282,7 +340,7 @@ action:
- condition: trigger
id: alarm_triggered
sequence:
- service: zwave_js.set_value
- action: zwave_js.set_value
target:
device_id: !input keypad
data:
Expand Down