stair light control + pther fixes
This commit is contained in:
@@ -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'] }}
|
||||
|
@@ -1,5 +1,5 @@
|
||||
mqtt:
|
||||
switch:
|
||||
switch:
|
||||
- unique_id: "Garage_Entry_Switch_1"
|
||||
name: "Garage Entry Switch 1"
|
||||
state_topic: "obk/obk-ks811t-006D-garageentry/1/get"
|
||||
@@ -30,33 +30,33 @@ mqtt:
|
||||
retain: true
|
||||
availability:
|
||||
- topic: "obk/obk-ks811t-006D-garageentry/connected"
|
||||
- unique_id: "Main_Bathroom_Light_Switch_1"
|
||||
name: "Main Bathroom Light Switch 1"
|
||||
state_topic: "obk/obk-ks811t-B1C4-mainbath1/1/get"
|
||||
command_topic: "obk/obk-ks811t-B1C4-mainbath1/1/set"
|
||||
qos: 1
|
||||
payload_on: 1
|
||||
payload_off: 0
|
||||
retain: true
|
||||
availability:
|
||||
- topic: "obk/obk-ks811t-B1C4-mainbath1/connected"
|
||||
- unique_id: "Main_Bathroom_Light_Switch_2"
|
||||
name: "Main Bathroom Light Switch 2"
|
||||
state_topic: "obk/obk-ks811t-B1C4-mainbath1/2/get"
|
||||
command_topic: "obk/obk-ks811t-B1C4-mainbath1/2/set"
|
||||
qos: 1
|
||||
payload_on: 1
|
||||
payload_off: 0
|
||||
retain: true
|
||||
availability:
|
||||
- topic: "obk/obk-ks811t-B1C4-mainbath1/connected"
|
||||
- unique_id: "Main_Bathroom_Light_Switch_3"
|
||||
name: "Main Bathroom Light Switch 3"
|
||||
state_topic: "obk/obk-ks811t-B1C4-mainbath1/3/get"
|
||||
command_topic: "obk/obk-ks811t-B1C4-mainbath1/3/set"
|
||||
qos: 1
|
||||
payload_on: 1
|
||||
payload_off: 0
|
||||
retain: true
|
||||
availability:
|
||||
- topic: "obk/obk-ks811t-B1C4-mainbath1/connected"
|
||||
# - unique_id: "Main_Bathroom_Light_Switch_1"
|
||||
# name: "Main Bathroom Light Switch 1"
|
||||
# state_topic: "obk/obk-ks811t-B1C4-mainbath1/1/get"
|
||||
# command_topic: "obk/obk-ks811t-B1C4-mainbath1/1/set"
|
||||
# qos: 1
|
||||
# payload_on: 1
|
||||
# payload_off: 0
|
||||
# retain: true
|
||||
# availability:
|
||||
# - topic: "obk/obk-ks811t-B1C4-mainbath1/connected"
|
||||
# - unique_id: "Main_Bathroom_Light_Switch_2"
|
||||
# name: "Main Bathroom Light Switch 2"
|
||||
# state_topic: "obk/obk-ks811t-B1C4-mainbath1/2/get"
|
||||
# command_topic: "obk/obk-ks811t-B1C4-mainbath1/2/set"
|
||||
# qos: 1
|
||||
# payload_on: 1
|
||||
# payload_off: 0
|
||||
# retain: true
|
||||
# availability:
|
||||
# - topic: "obk/obk-ks811t-B1C4-mainbath1/connected"
|
||||
# - unique_id: "Main_Bathroom_Light_Switch_3"
|
||||
# name: "Main Bathroom Light Switch 3"
|
||||
# state_topic: "obk/obk-ks811t-B1C4-mainbath1/3/get"
|
||||
# command_topic: "obk/obk-ks811t-B1C4-mainbath1/3/set"
|
||||
# qos: 1
|
||||
# payload_on: 1
|
||||
# payload_off: 0
|
||||
# retain: true
|
||||
# availability:
|
||||
# - topic: "obk/obk-ks811t-B1C4-mainbath1/connected"
|
||||
|
@@ -3,7 +3,6 @@ group:
|
||||
name: Simulation Lights (All)
|
||||
entities:
|
||||
- switch.tasmo_ks811d_1242_entrance_a
|
||||
- switch.tasmo_ks811d_0302_entrybath_a
|
||||
- switch.tasmo_ks811d_6110_kitchen_a
|
||||
- switch.tasmo_ks811d_6110_kitchen_b
|
||||
- switch.main_hallway_lightswitch_tasmo_ks811s_2940_hallway_1a
|
||||
@@ -11,4 +10,5 @@ group:
|
||||
- switch.tasmo_ks811t_0702_lounge_3a
|
||||
- switch.tasmo_ks811t_0702_lounge_3b
|
||||
- switch.tasmo_ks811t_0702_lounge_3c
|
||||
- switch.esp_entrancebathrmlights_relay_1_main_lights
|
||||
- group.downstairs_flat_lights # ← now valid here
|
||||
|
Reference in New Issue
Block a user