本帖最后由 involute 于 2021-8-11 02:17 编辑
老大,尝试用你的代码改了改,试图解析设备同步的消息,比如用美居操作,其他连接的认证过的客户端就会收到这条同步。
Decoded: aa20ac00000000000204a10000000000000000000000006a74000000010010237b
Decoded: aa20ac00000000000204a10000000000000000000000006a7400000031001bdd86
Decoded: aa20ac00000000000204a10000000000000000000000006a7400000041002671d7
Decoded: aa20ac00000000000204a10000000000000000000000006a7400000051002c45ed
可是a1开始的10来个字节内容全是0,按你代码看,几乎所有设备信息都包含在这10来个字节中,但是却没有。
power_state: False
imode_resume: False
timer_mode: False
appliance_error: False
target_temperature: 16.0
operational_mode: 0
fan_speed: 0
on_timer: {'status': False, 'hour': 0, 'minutes': 0}
off_timer: {'status': False, 'hour': 0, 'minutes': 0}
swing_mode: 0
cozy_sleep: 0
save: False
low_frequency_fan: False
super_fan: False
feel_own: False
child_sleep_mode: False
exchange_air: False
dry_clean: False
aux_heat: False
eco_mode: False
clean_up: False
temp_unit: False
sleep_function: False
turbo_mode: False
catch_cold: False
night_light: False
peak_elec: False
natural_fan: False
indoor_temperature: 28.2
outdoor_temperature: -25.0
humidity: 106
除了室内温度,其它所有信息都是空的或者错误的,是同步消息另有解析格式还是什么情况呢? |