defaules in substitutions now V1.2
This commit is contained in:
24
packages/health_checks.yaml
Normal file
24
packages/health_checks.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
binary_sensor:
|
||||
- platform: rest
|
||||
name: Node-RED Panda Up
|
||||
resource: http://192.168.3.200:1880/healthz
|
||||
method: GET
|
||||
device_class: connectivity
|
||||
value_template: "{{ value_json.status == 'ok' }}"
|
||||
scan_interval: 30
|
||||
|
||||
mqtt:
|
||||
binary_sensor:
|
||||
- name: "Node-RED Panda Up"
|
||||
unique_id: "nodered_myhost_up"
|
||||
state_topic: "nodered/panda/status"
|
||||
payload_on: "online"
|
||||
payload_off: "offline"
|
||||
device_class: connectivity
|
||||
qos: 1
|
||||
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://127.0.0.1:1880/healthz"]
|
||||
interval: 30s
|
||||
timeout: 3s
|
||||
retries: 3
|
Reference in New Issue
Block a user