mickey50
mickey50
我买了一套5个 sea801 和 sea801-app的组合,参考您的代码,我得到了与司南通讯的各种控制api,现在我通过http api可以控制我这套设备,理论上已经可以通过这种方式接入ha了,但是和上面的外国朋友提到的一样,我也想能够通过本地控制的方式来实现接入ha,我用tcpdump抓取了通讯包,但是只发现了网关到司南的mqtt协议,是publish 温度状态的,没有发现司南到网关的控制协议是怎么通讯的,请教如何才能抓取到这部分协议呢,谢谢! I bought a set of 5 sea801 and sea801-app. Referring to your code, I got various control APIs with Sinan. Now I can control...
用笔记本做热点,已经可以抓到双向的mqtt包,只是让人无语的是,所有的信息都是在mqtt的topic里面,居然不用payload。。。 Using a notebook as a hotspot, I can already capture the mqtt contr package, but I found all the message is in the mqtt topic, not in the payload
查了下miot-spec的本身就没有数据,需要使用/v2/user/statistics 这个接口获得数据
> 请提供`/v2/user/statistics`接口的具体请求参数 参数参考这里面描述:https://miecosystem.github.io/miot-plugin-sdk/module-miot_service_smarthome.html 接口对应这个 api的调用 getUserStatistics 示例: micli.py /v2/user/statistics '{"did": "745638077", "time_start": 1706716800, "time_end": 1709222400, "limit": 0, "accessKey": "IOS00026747c5acafc2", "key": "3.1", "data_type": "stat_day_v3"}'
> 尝试master分支 在传感器中没有出现相关的传感器
> > 尝试master分支 > > 在传感器中没有出现相关的传感器 看了代码,明白了,数据是放在switch的属性里面,已经有数据了,Power cost today Power cost month
> > > 尝试master分支 > > > > > > 在传感器中没有出现相关的传感器 > > 看了代码,明白了,数据是放在switch的属性里面,已经有数据了,Power cost today Power cost month 建议还是一个sensor好一些,能源的页面就可以直接加入了
电压、功率、电流的数据无法更新了 2024-03-14 02:55:49.347 ERROR (MainThread) [homeassistant.helpers.entity] Update for switch.iot_padw2p_3856_switch fails Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 945, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1262, in async_device_update await...
> ```yaml > current_temperature: 29 > environment.temperature: 29 > ``` > > 当前温度值来着设备,插件没有处理。 那很奇怪了,小米中枢极客版里面得到的数据都是0.1精度的
> ```yaml > current_temperature: 29 > environment.temperature: 29 > ``` > > 当前温度值来着设备,插件没有处理。  我使用micli.py工具来查询设备温度,返回的是有小数点后面位数的