|
本帖最后由 TizzyRay 于 2019-5-25 23:39 编辑
小米最近出了一款不带网关的空调伴侣——空调伴侣2(79元),请问这款可以接入 HA 吗?
尝试用 https://github.com/syssi/xiaomi_airconditioningcompanion 这个组件,可是设置不成功。
configuration
climate:
- platform: xiaomi_miio_airconditioningcompanion
name: Xiaomi Air Conditioning Companion
host: 192.168.8.164
token: xxxxxxxxxxxxxxxxxxxxxxx
target_sensor: sensor.temperature_158d0001f53706
scan_interval: 60
log
Initializing with host 192.168.8.164 (token bd7f6...)
lumi.acpartner.mcn02 1.3.2_108 ESP32 detected
Got exception while fetching the state: {'code': -5000, 'message': 'Resp general error.'}
other cmd test
miiocli airconditioningcompanion --ip 192.168.8.164 --token xxxxxxxxxxxxxxxxxxxxxxxxxxxxx info
Model: lumi.acpartner.mcn02
Hardware version: ESP32
Firmware version: 1.3.2_108
Network: {'mask': '255.255.255.0', 'gw': '192.168.8.1', 'localIp': '192.168.8.164'}
AP: {'primary': 11, 'rssi': -37, 'ssid': 'Matrix', 'bssid': 'XX:XX:XX:XX:XX:XX'}
miiocli airconditioningcompanion --ip 192.168.8.164 --token xxxxxxxxxxxxxxxxxxxxxxxxxxxxx status
Error: {'message': 'Resp general error.', 'code': -5000}
miiocli airconditioningcompanion --ip 192.168.8.164 --token xxxxxxxxxxxxxxxxxxxxxxxxxxxxx raw_command get_prop "['power']"
Running command raw_command
['on']
miiocli airconditioningcompanion --ip 192.168.8.164 --token xxxxxxxxxxxxxxxxxxxxxxxxxxxxx raw_command get_prop "['mode']"
Running command raw_command
['cool']
|
|