智能浴霸會支援開放局域網控制嗎

智能浴霸會支援開放局域網控制嗎

不支持

將來有計畫支持嗎

不会支持,模组方案限制。

謝謝~

实测 智能浴霸 Pro 可以使用局域网控制灯的开关和亮度, 智能浴霸 Pro 是否可以开放局域网控制呢?

通过对米家APP进行抓包,发现开启暖风等功能时,也只是由米家APP发送UDP包而已。由此可见,智能浴霸Pro是可以局域网控制的,就看官方是否愿意开启了。

浴霸智能模块是由Wi-Fi+MCU组成的,所有和浴霸以及灯相关的操作都是在MCU上完成的。WIFI相关模块使用的是小米模组,固件我们不做维护,而局域网模式需要在Wi-Fi模块上实现,所以除非小米开放了本地控制协议,不然我们无能为力。

通过降级米家APP获取token后,已经可以使用miio协议实现局域网控制。

你好!大佬能否提供下详细的方法,感谢!

获取token的方法可参考 这里
miio项目在这里
最后附上我通过抓包得到的控制命令。

{"id":7843,"method":"get_prop","params":["power","bright","ct","delayoff","nl_br","nighttime","bh_mode","swing_action","swing_angle","temperature","bh_delayoff","humidity","light_mode","fan_speed_idx","aim_temp"]}
{"id":7843,"result":["off",100,6500,0,45,"disable|230000|060000|0","bh_off","swing",0,30,0,51,"daylight",11290,34]}
{"id":7844,"method":"bath_4modes_cron_get","params":[0]}
{"id":7844,"result":[15,15,15,30,30]}
{"id":7845,"method":"set_bh_mode","params":["warmwind"]}
{"id":7845,"result":["ok"]}
{"id":7846,"method":"set_gears_idx","params":[1]}
{"id":7846,"result":["ok"]}
{"id":7847,"method":"get_prop","params":["power","bright","ct","delayoff","nl_br","nighttime","bh_mode","swing_action","swing_angle","temperature","bh_delayoff","humidity","light_mode","fan_speed_idx","aim_temp"]}
{"id":7847,"result":["off",100,6500,0,45,"disable|230000|060000|0","warmwind","swing",85,29,0,51,"daylight",11291,34]}
{"id":7848,"method":"bath_4modes_cron_get","params":[0]}
{"id":7848,"result":[15,15,15,30,30]}
{"id":7849,"method":"set_gears_idx","params":[2]}
{"id":7849,"result":["ok"]}
{"id":7850,"method":"set_gears_idx","params":[1]}
{"id":7850,"result":["ok"]}
{"id":7851,"method":"set_gears_idx","params":[0]}
{"id":7851,"result":["ok"]}
{"id":7852,"method":"set_swing","params":["stop",0]}
{"id":7852,"result":["ok"]}
{"id":7853,"method":"set_swing","params":["angle",82]}
{"id":7853,"result":["ok"]}
{"id":7854,"method":"get_prop","params":["power","bright","ct","delayoff","nl_br","nighttime","bh_mode","swing_action","swing_angle","temperature","bh_delayoff","humidity","light_mode","fan_speed_idx","aim_temp"]}
{"id":7854,"result":["off",100,6500,0,45,"disable|230000|060000|0","warmwind","angle",82,28,0,53,"daylight",11290,34]}
{"id":7855,"method":"bath_4modes_cron_get","params":[0]}
{"id":7855,"result":[15,15,15,30,30]}
{"id":7856,"method":"set_swing","params":["angle",115]}
{"id":7856,"result":["ok"]}
{"id":7857,"method":"set_swing","params":["swing",0]}
{"id":7857,"result":["ok"]}
{"id":7858,"method":"set_bh_mode","params":["venting"]}
{"id":7858,"result":["ok"]}
{"id":7859,"method":"get_prop","params":["power","bright","ct","delayoff","nl_br","nighttime","bh_mode","swing_action","swing_angle","temperature","bh_delayoff","humidity","light_mode","fan_speed_idx","aim_temp"]}
{"id":7859,"result":["off",100,6500,0,45,"disable|230000|060000|0","venting","swing",0,26,0,57,"daylight",11290,34]}
{"id":7860,"method":"bath_4modes_cron_get","params":[0]}
{"id":7860,"result":[15,15,15,30,30]}
{"id":7861,"method":"set_gears_idx","params":[2]}
{"id":7861,"result":["ok"]}
{"id":7862,"method":"set_gears_idx","params":[1]}
{"id":7862,"result":["ok"]}
{"id":7863,"method":"set_gears_idx","params":[0]}
{"id":7863,"result":["ok"]}
{"id":7864,"method":"set_gears_idx","params":[1]}
{"id":7864,"result":["ok"]}
{"id":7865,"method":"set_gears_idx","params":[2]}
{"id":7865,"result":["ok"]}
{"id":7866,"method":"set_gears_idx","params":[9]}
{"id":7866,"result":["ok"]}
{"id":7867,"method":"get_prop","params":["power","bright","ct","delayoff","nl_br","nighttime","bh_mode","swing_action","swing_angle","temperature","bh_delayoff","humidity","light_mode","fan_speed_idx","aim_temp"]}
{"id":7867,"result":["off",100,6500,0,45,"disable|230000|060000|0","venting","swing",0,26,0,59,"daylight",11290,34]}
{"id":7868,"method":"bath_4modes_cron_get","params":[0]}
{"id":7868,"result":[15,15,15,30,30]}
{"id":7869,"method":"set_bh_mode","params":["drying_cloth"]}
{"id":7869,"result":["ok"]}
{"id":7870,"method":"set_gears_idx","params":[0]}
{"id":7870,"result":["ok"]}
{"id":7871,"method":"set_gears_idx","params":[1]}
{"id":7871,"result":["ok"]}
{"id":7872,"method":"set_gears_idx","params":[2]}
{"id":7872,"result":["ok"]}
{"id":7873,"method":"get_prop","params":["power","bright","ct","delayoff","nl_br","nighttime","bh_mode","swing_action","swing_angle","temperature","bh_delayoff","humidity","light_mode","fan_speed_idx","aim_temp"]}
{"id":7873,"result":["off",100,6500,0,45,"disable|230000|060000|0","drying_cloth","angle",90,26,0,61,"daylight",21290,34]}
{"id":7874,"method":"bath_4modes_cron_get","params":[0]}
{"id":7874,"result":[15,15,15,30,30]}
{"id":7875,"method":"set_swing","params":["stop",0]}
{"id":7875,"result":["ok"]}
{"id":7876,"method":"set_swing","params":["angle",63]}
{"id":7876,"result":["ok"]}
{"id":7877,"method":"set_swing","params":["angle",115]}
{"id":7877,"result":["ok"]}
{"id":7878,"method":"set_swing","params":["swing",0]}
{"id":7878,"result":["ok"]}
{"id":7879,"method":"get_prop","params":["power","bright","ct","delayoff","nl_br","nighttime","bh_mode","swing_action","swing_angle","temperature","bh_delayoff","humidity","light_mode","fan_speed_idx","aim_temp"]}
{"id":7879,"result":["off",100,6500,0,45,"disable|230000|060000|0","drying_cloth","swing",115,25,0,61,"daylight",21290,34]}
{"id":7880,"method":"bath_4modes_cron_get","params":[0]}
{"id":7880,"result":[15,15,15,30,30]}
{"id":7881,"method":"set_bh_mode","params":["drying"]}
{"id":7881,"result":["ok"]}
{"id":7882,"method":"set_bh_mode","params":["coolwind"]}
{"id":7882,"result":["ok"]}
{"id":7883,"method":"set_gears_idx","params":[2]}
{"id":7883,"result":["ok"]}
{"id":7884,"method":"set_gears_idx","params":[1]}
{"id":7884,"result":["ok"]}
{"id":7885,"method":"set_gears_idx","params":[0]}
{"id":7885,"result":["ok"]}
{"id":7886,"method":"get_prop","params":["power","bright","ct","delayoff","nl_br","nighttime","bh_mode","swing_action","swing_angle","temperature","bh_delayoff","humidity","light_mode","fan_speed_idx","aim_temp"]}
{"id":7886,"result":["off",100,6500,0,45,"disable|230000|060000|0","coolwind","swing",90,25,0,63,"daylight",20290,34]}
1 Like

非常感谢帮助!我过两天尝试看看!