stair light control + pther fixes

This commit is contained in:
root
2025-08-25 23:31:54 +12:00
parent 40e289e99a
commit 8adb0a63ba
9 changed files with 883 additions and 112 deletions

View File

@@ -20,17 +20,17 @@ mqtt:
device_class: connectivity
qos: 1
# Optional: avoid stale 'online' if no updates arrive
expire_after: 300
expire_after: 180
# ---- Combine them (true if either is up) ----
template:
- binary_sensor:
- name: "Node-RED Panda Up"
- name: "Node-RED Panda Up (HTTP/MQTT)"
unique_id: "nodered_panda_up_combined"
device_class: connectivity
state: >
{{ is_state('binary_sensor.node_red_panda_up_http','on')
or is_state('binary_sensor.node_red_panda_up_mqtt','on') }}
or is_state('binary_sensor.node_red_panda_up_mqtt','on') }}
availability: >
{{ states('binary_sensor.node_red_panda_up_http') not in ['unknown','unavailable']
or states('binary_sensor.node_red_panda_up_mqtt') not in ['unknown','unavailable'] }}
or states('binary_sensor.node_red_panda_up_mqtt') not in ['unknown','unavailable'] }}