mirror of
https://github.com/HASwitchPlate/HASPone.git
synced 2025-07-29 14:16:39 +00:00
Update alarm blueprint for new MQTT number platform
This commit is contained in:
parent
c28eb4572f
commit
33e85c1174
@ -318,6 +318,8 @@ action:
|
||||
"availability":{"topic":"hasp/{{haspname}}/alwayson","payload_available":"ON"},
|
||||
"retain":true,
|
||||
"optimistic":true,
|
||||
"min":-1,
|
||||
"max":9,
|
||||
"icon":"mdi:bell-plus-outline",
|
||||
"unique_id":"{{haspClientId}}-alarmcode_{{repeat.index}}",
|
||||
"device":{
|
||||
@ -414,7 +416,7 @@ action:
|
||||
- condition: template
|
||||
value_template: '{{ (trigger.payload_json.event is defined) and (trigger.payload_json.event == "p[7].b[13]") and (trigger.payload_json.value == "ON") and (states(alarmpanel) == "disarmed")}}'
|
||||
sequence:
|
||||
- service_template: "{{'alarm_control_panel.' ~ b13armservice}}"
|
||||
- service: "{{'alarm_control_panel.' ~ b13armservice}}"
|
||||
data:
|
||||
entity_id: !input alarmpanel
|
||||
code: >-
|
||||
@ -438,7 +440,7 @@ action:
|
||||
- condition: template
|
||||
value_template: '{{ (trigger.payload_json.event is defined) and (trigger.payload_json.event == "p[7].b[15]") and (trigger.payload_json.value == "ON") and (states(alarmpanel) == "disarmed")}}'
|
||||
sequence:
|
||||
- service_template: "{{'alarm_control_panel.' ~ b15armservice}}"
|
||||
- service: "{{'alarm_control_panel.' ~ b15armservice}}"
|
||||
data:
|
||||
entity_id: !input alarmpanel
|
||||
code: >-
|
||||
|
Loading…
x
Reference in New Issue
Block a user