本帖最后由 fung1006 于 2022-7-22 14:29 编辑
我建基這個之上,創建了4個esp32,以確保了4個之中其中一個有問題也不會影響掃描結果,100平的也是無死角
可以用ha的 sensor group把全部結合成一個sensor使用
binary_sensor:
- platform: mqtt
name: "fung_v1"
state_topic: "v1/trackeri/state"
value_template: "{{value_json.fung.currentState}}"
unique_id: presence_fung_v1
device_class: presence
payload_on: "1"
payload_off: "0"
- platform: mqtt
name: "fung_v2"
state_topic: "v2/trackeri/state"
value_template: "{{value_json.fung.currentState}}"
unique_id: presence_fung_v2
device_class: presence
payload_on: "1"
payload_off: "0"
- platform: mqtt
name: "fung_v3"
state_topic: "v3/trackeri/state"
value_template: "{{value_json.fung.currentState}}"
unique_id: presence_fung_v3
device_class: presence
payload_on: "1"
payload_off: "0"
- platform: mqtt
name: "fung_v4"
state_topic: "v4/trackeri/state"
value_template: "{{value_json.fung.currentState}}"
unique_id: presence_fung_v4
device_class: presence
payload_on: "1"
payload_off: "0"
|