|
aqara空调伴侣升级版,通过用xiaomi_airconditioningcompanion,差不多很完美的添加到HA和HomeKit,美中不足的是,空调的稳定变化不能自动映射到HomeKit的UI上,aqara P3和HomeKit正规产品是可以的,然后我通过安装独立的homebridge,在homebridge上安装Homebridge Xiaomi Aqara Ac Cooler,把aqara空调伴侣升级版也添加到HomeKit上,能完美映射稳定变化。
但是两种方法都有优缺点,方法1,功能基本差不多和小米上的非常解决了,但唯独稳定不能自动映射到HomeKit上,ha温度可以映射,方法2,功能缺失验证,只会基本功能,唯独温度能自动映射是优点,有没有办法把两个设备的优点集合呢?
两个设备的代码如下:
1:xiaomi_airconditioningcompanion
xiaomi_aqara:
gateways:
- mac: xx:xx:xx:xx:E2:F9
key: xxxxxxxxxxxxxxxxx
switch:
- platform: xiaomi_miio
host: 10.0.0.34
token: xxxxxxxxxxxxxxxxxxxxxxxxxxxx
climate:
- platform: xiaomi_miio_airconditioningcompanion
name: Aqara Air Conditioning Companion
host: 10.0.0.34
token: xxxxxxxxxxxxxxxxxxxxxxxxxxxx
target_sensor: sensor.temperature_158d0001f53706
scan_interval: 60
2: Homebridge Xiaomi Aqara Ac Cooler
"accessories": [
{
"accessory": "MiHeaterCooler",
"name": "AC Partner",
"address": "192.168.1.154",
"Manufacturer": "Aqara",
"Model": "KTBL11LM",
"token": "71b4e85d8527aab32c8f9175124c0d59",
"sensorId": "158d0001a4c582",
"enableLED": false,
"ratedPower": 735
}
]
2是官网的代码方式,实质操作Homebridge上是webui方式
|
|