stevenjoezhang / hass-iotbull

公牛智家 | Bull IoT for Home Assistant
https://zhangshuqiao.org/2023-02/将公牛智家设备接入Home%20Assistant/
16 stars 3 forks source link

相关问题咨询 #1

Closed liqingrui666 closed 1 year ago

liqingrui666 commented 1 year ago

请问需要把获取的API参数添加到文件变量吗?我在HA里添加你的插件后,输入账号密码后,就不能进行任何操作了。

stevenjoezhang commented 1 year ago

不需要,输入账号密码之后会自动登录。你可以检查一下 Home Assistant 的日志,看看有没有报错。因为我只用我自己的账号测试过,可能有一些逻辑没有处理。

liqingrui666 commented 1 year ago

Logger: root Source: custom_components/bull/api.py:157 Integration: Bull IoT (documentation, issues) First occurred: 19:41:56 (2 occurrences) Last logged: 19:45:25

Uncaught thread exception Traceback (most recent call last): File "/usr/local/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/usr/local/lib/python3.10/threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 3591, in _thread_main self.loop_forever(retry_first_connection=True) File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 1756, in loop_forever rc = self._loop(timeout) File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 1164, in _loop rc = self.loop_read() File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 1556, in loop_read rc = self._packet_read() File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 2439, in _packet_read rc = self._packet_handle() File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 3033, in _packet_handle return self._handle_publish() File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 3327, in _handle_publish self._handle_on_message(message) File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 3570, in _handle_on_message on_message(self, self._userdata, message) File "/config/custom_components/bull/api.py", line 157, in on_message if db["method"] == "thing.properties": KeyError: 'method'

stevenjoezhang commented 1 year ago

好的,我发现我的日志里面也有这个报错,应该是 mqtt 发的消息格式被调整了……我再抓包研究一下

liqingrui666 commented 1 year ago

好的,麻烦你了!不过你的报错了都能用吗?我的就是一个图标,然后没有任何设备。

stevenjoezhang commented 1 year ago

可能和设备类型也有关系?我目前是适配了 G27 单火的开关,因为家里装修用的全是这款……早知道公牛的协议这么坑,就买小米这种开放协议的了

liqingrui666 commented 1 year ago

难怪,我是用的智能wifi插座。你那个单火开关好像可以直接添加到米家里。

stevenjoezhang commented 1 year ago

那个好像是给小爱音箱控制,但不是直接走米家的协议。你要改代码的话是改这里: https://github.com/stevenjoezhang/hass-iotbull/blob/c23566de4d2ff1a40a58b63ca32b2f5085a2fb0e/custom_components/bull/api.py#L141 不同设备的 devType 是不一样的,得抓包看看。我这里写的 devType 为 2 就是这个开关

liqingrui666 commented 1 year ago

我抓包看到我的是0,但是我觉得应该不止一个参数不一样,就懒得试了,不过还是谢谢的分享了!

Arthurvermouth commented 1 year ago

你好,请问下我可以正常添加开关到home assistant中,可以通过Ha关闭或者开启灯泡,但是使用物理开关关闭或开启却并不改变状态,是我哪里没有设置好吗

stevenjoezhang commented 1 year ago

改变状态是靠订阅 MQTT 消息,如果握手失败的话,就会出现状态不同步的问题。你可以看看 Home assistant 日志里面有没有报错。我自己这段时间不在家,所以还没法拿自家的设备 debug……

Arthurvermouth commented 1 year ago

感谢!没事我的设备也不在手边,之后再再发日志来请教

jerryye0 commented 1 year ago

此错误来自自定义集成。

Logger: homeassistant.config_entries Source: custom_components/bull/api.py:21 Integration: Bull IoT (documentation, issues) First occurred: 09:05:35 (4 occurrences) Last logged: 10:41:08

Error setting up entry XXXX for bull Traceback (most recent call last): File "/var/packages/HomeAssistant/target/lib/python3.11/site-packages/homeassistant/config_entries.py", line 390, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/var/packages/HomeAssistant/home/.homeassistant/custom_components/bull/init.py", line 20, in async_setup_entry await bull_api.async_get_devices_list() File "/var/packages/HomeAssistant/home/.homeassistant/custom_components/bull/api.py", line 137, in async_get_devices_list self.parse_devices(res) File "/var/packages/HomeAssistant/home/.homeassistant/custom_components/bull/api.py", line 142, in parse_devices device = BullDevice(self, info) ^^^^^^^^^^^^^^^^^^^^^^ File "/var/packages/HomeAssistant/home/.homeassistant/custom_components/bull/api.py", line 21, in init self._value: int = info["property"][self._identifier]["value"]


KeyError: 'PowerSwitch_1'
jerryye0 commented 1 year ago

我全都是单火的开关 同样操作不了

stevenjoezhang commented 1 year ago

我自己的账号复现不了这个问题(property 里面的键名和 elementIdentifier 都是对应的,不报错) 你可以试试按这个 commit 更新,然后检查 debug 日志里面请求到的 json 格式设备列表,也可以贴上来我分析一下 https://github.com/stevenjoezhang/hass-iotbull/commit/1b82ee3e59f8e48dd75ecef371bd5e30a6d64a46

jerryye0 commented 1 year ago

2023-07-20 08:00:31.370 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-07-20 08:00:31.371 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration bull which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-07-20 08:00:36.129 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry 13586632094 for bull Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 390, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/bull/init.py", line 20, in async_setup_entry await bull_api.async_get_devices_list() File "/config/custom_components/bull/api.py", line 137, in async_get_devices_list self.parse_devices(res) File "/config/custom_components/bull/api.py", line 142, in parse_devices device = BullDevice(self, info) ^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/bull/api.py", line 21, in init self._value: int = info["property"][self._identifier]["value"]


KeyError: 'PowerSwitch_1'
2023-07-20 08:01:03.953 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry  for bull
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 390, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/bull/__init__.py", line 20, in async_setup_entry
    await bull_api.async_get_devices_list()
  File "/config/custom_components/bull/api.py", line 137, in async_get_devices_list
    self.parse_devices(res)
  File "/config/custom_components/bull/api.py", line 142, in parse_devices
    device = BullDevice(self, info)
             ^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/bull/api.py", line 21, in __init__
    self._value: int = info["property"][self._identifier]["value"]
                       ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
KeyError: 'PowerSwitch_1'
2023-07-20 08:14:01.135 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry XXXX for bull
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 390, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/bull/__init__.py", line 20, in async_setup_entry
    await bull_api.async_get_devices_list()
  File "/config/custom_components/bull/api.py", line 137, in async_get_devices_list
    self.parse_devices(res)
  File "/config/custom_components/bull/api.py", line 142, in parse_devices
    device = BullDevice(self, info)
             ^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/bull/api.py", line 21, in __init__
    self._value: int = info["property"][self._identifier]["value"]
                       ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
KeyError: 'PowerSwitch_1'
2023-07-20 08:16:17.020 DEBUG (MainThread) [custom_components.bull.api] Request: /v2/home/devices b'{"code":200,"message":"\xe6\x93\x8d\xe4\xbd\x9c\xe6\x88\x90\xe5\x8a\x9f","result":[{"iotId":"dd7HxQd7kSRGuG01EKWM000000","deviceName":"C411E0FFFE1EF35E","nickName":"\xe7\x8e\x84\xe5\x85\xb3\xe5\x85\xa5\xe6\x88\xb7\xe7\x81\xaf","status":"ONLINE","property":{"LoadStatus_2":{"identifier":"LoadStatus_2","time":1689841077846,"value":1},"LoadStatus_1":{"identifier":"LoadStatus_1","time":1689841077846,"value":1},"LoadStatus_3":{"identifier":"LoadStatus_3","time":1689841077846,"value":2},"light":{"identifier":"light","time":1689841077846,"value":1},"PowerSwitch_1":{"identifier":"PowerSwitch_1","time":1689841077846,"value":0},"PowerSwitch_2":{"identifier":"PowerSwitch_2","time":1689841077846,"value":0},"PowerSwitch_3":{"identifier":"PowerSwitch_3","time":1689841077846,"value":0},"status":{"identifier":"status","time":1689841077846,"value":"ONLINE"}},"newFlag":0,"product":{"devType":2,"detailTemplateId":0,"configTemplateId":0,"mainTemplateId":0,"mainButtonShowEnable":1,"mainReceiveNoticeEnable":0,"globalProductId":6,"productKey":"a1utgIxvCwV","elementControls":null,"skipConfig":"G55SingleFire","netType":5,"productType":-1},"elementIdentifier":"PowerSwitch_3","elementIdentifierType":3,"elementName":"\xe5\xbc\x80\xe5\x85\xb3(\xe4\xb8\x8b)","loadStatus":"LoadStatus_3","purposeId":2,"purposeName":"\xe7\x8e\x84\xe5\x85\xb3\xe5\x85\xa5\xe6\x88\xb7\xe7\x81\xaf","openIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/6_2_open.png","closeIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/6_2_close.png","offlineIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/6_2_offline.png","roomName":"\xe7\x8e\x84\xe5\x85\xb3","roomId":123900,"bleDeviceName":null,"isOwner":1,"shareStatus":null,"updateTime":1689002126000,"positionLabel":"Position_3","loadDevice":null,"showFlag":true,"setting":["selectRoom"],"createTime":null,"deviceInfoVo":{"openIconUrl":"https://saas-product-image.oss-cn-shanghai.aliyuncs.com/app2_0/%E4%BA%A7%E5%93%81%E5%9B%BE%E7%89%87/%E6%99%BA%E8%83%BD%E4%B8%89%E4%BD%8D%E5%BC%80%E5%85%B3%28%E5%8D%95%E7%81%AB%29.png","nickName":"G27\xe6\x99\xba\xe8\x83\xbd\xe4\xb8\x89\xe4\xbd\x8d\xe5\xbc\x80\xe5\x85\xb3(\xe5\x8d\x95\xe7\x81\xab/zigbee)"}},{"iotId":"3KtTzPc66UbK8jiXCptq000000","deviceName":"C411E0FFFE18AEDC","nickName":"\xe7\x8e\x84\xe5\x85\xb3\xe5\x85\xa5\xe6\x88\xb7\xe7\x81\xaf","status":"ONLINE","property":{"LoadStatus_2":{"identifier":"LoadStatus_2","time":1689841077846,"value":1},"LoadStatus_1":{"identifier":"LoadStatus_1","time":1689841077846,"value":1},"light":{"identifier":"light","time":1689841077846,"value":1},"PowerSwitch_1":{"identifier":"PowerSwitch_1","time":1689841077846,"value":0},"PowerSwitch_2":{"identifier":"PowerSwitch_2","time":1689841077846,"value":0},"status":{"identifier":"status","time":1689841077846,"value":"ONLINE"}},"newFlag":0,"product":{"devType":2,"detailTemplateId":0,"configTemplateId":0,"mainTemplateId":0,"mainButtonShowEnable":1,"mainReceiveNoticeEnable":0,"globalProductId":5,"productKey":"a1CV04bhLmH","elementControls":null,"skipConfig":"G55SingleFire","netType":5,"productType":-1},"elementIdentifier":"PowerSwitch_1","elementIdentifierType":1,"elementName":"\xe5\xbc\x80\xe5\x85\xb3(\xe4\xb8\x8a)","loadStatus":"LoadStatus_1","purposeId":2,"purposeName":"\xe7\x8e\x84\xe5\x85\xb3\xe5\x85\xa5\xe6\x88\xb7\xe7\x81\xaf","openIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/5_2_open.png","closeIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/5_2_close.png","offlineIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/5_2_offline.png","roomName":"\xe7\x8e\x84\xe5\x85\xb3","roomId":123900,"bleDeviceName":null,"isOwner":1,"shareStatus":null,"updateTime":1689002113000,"positionLabel":"Position_1","loadDevice":null,"showFlag":true,"setting":["selectRoom"],"createTime":null,"deviceInfoVo":{"openIconUrl":"https://saas-product-image.oss-cn-shanghai.aliyuncs.com/app2_0/%E4%BA%A7%E5%93%81%E5%9B%BE%E7%89%87/%E6%99%BA%E8%83%BD%E4%BA%8C%E4%BD%8D%E5%BC%80%E5%85%B3%28%E5%8D%95%E7%81%AB%29.png","nickName":"G27\xe6\x99\xba\xe8\x83\xbd\xe4\xba\x8c\xe4\xbd\x8d\xe5\xbc\x80\xe5\x85\xb3(\xe5\x8d\x95\xe7\x81\xab/zigbee)"}},{"iotId":"0FTQ803T8RaMim4lfO86000000","deviceName":"C411E0FFFE1AB8BB","nickName":"\xe8\xa1\xa3\xe5\xb8\xbd\xe9\x97\xb4\xe7\x85\xa7\xe6\x98\x8e\xe7\x81\xaf","status":"ONLINE","property":{"LoadStatus_2":{"identifier":"LoadStatus_2","time":1689841077839,"value":1},"LoadStatus_1":{"identifier":"LoadStatus_1","time":1689841077839,"value":1},"light":{"identifier":"light","time":1689841077839,"value":1},"LoadStatus_3":{"identifier":"LoadStatus_3","time":1689841077839,"value":1},"PowerSwitch_1":{"identifier":"PowerSwitch_1","time":1689841077839,"value":0},"PowerSwitch_2":{"identifier":"PowerSwitch_2","time":1689841077839,"value":0},"PowerSwitch_3":{"identifier":"PowerSwitch_3","time":1689841077839,"value":0},"status":{"identifier":"status","time":1689841077839,"value":"ONLINE"}},"newFlag":0,"product":{"devType":2,"detailTemplateId":0,"configTemplateId":0,"mainTemplateId":0,"mainButtonShowEnable":1,"mainReceiveNoticeEnable":0,"globalProductId":6,"productKey":"a1utgIxvCwV","elementControls":null,"skipConfig":"G55SingleFire","netType":5,"productType":-1},"elementIdentifier":"PowerSwitch_2","elementIdentifierType":2,"elementName":"\xe5\xbc\x80\xe5\x85\xb3(\xe4\xb8\xad)","loadStatus":"LoadStatus_2","purposeId":4,"purposeName":"\xe8\xa1\xa3\xe5\xb8\xbd\xe9\x97\xb4\xe7\x85\xa7\xe6\x98\x8e\xe7\x81\xaf","openIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/6_4_open.png","closeIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/6_4_close.png","offlineIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/6_4_offline.png","roomName":"\xe4\xb9\xa6\xe6\x88\xbf","roomId":6199718,"bleDeviceName":null,"isOwner":1,"shareStatus":null,"updateTime":1689001031000,"positionLabel":"Position_2","loadDevice":null,"showFlag":true,"setting":["selectRoom"],"createTime":null,"deviceInfoVo":{"openIconUrl":"https://saas-product-image.oss-cn-shanghai.aliyuncs.com/app2_0/%E4%BA%A7%E5%93%81%E5%9B%BE%E7%89%87/%E6%99%BA%E8%83%BD%E4%B8%89%E4%BD%8D%E5%BC%80%E5%85%B3%28%E5%8D%95%E7%81%AB%29.png","nickName":"G27\xe6\x99\xba\xe8\x83\xbd\xe4\xb8\x89\xe4\xbd\x8d\xe5\xbc\x80\xe5\x85\xb3(\xe5\x8d\x95\xe7\x81\xab/zigbee)"}},{"iotId":"0FTQ803T8RaMim4lfO86000000","deviceName":"C411E0FFFE1AB8BB","nickName":"\xe4\xb9\xa6\xe6\x88\xbf\xe7\x85\xa7\xe6\x98\x8e\xe7\x81\xaf","status":"ONLINE","property":{"LoadStatus_2":{"identifier":"LoadStatus_2","time":1689841077839,"value":1},"LoadStatus_1":{"identifier":"LoadStatus_1","time":1689841077839,"value":1},"light":{"identifier":"light","time":1689841077839,"value":1},"LoadStatus_3":{"identifier":"LoadStatus_3","time":1689841077839,"value":1},"PowerSwitch_1":{"identifier":"PowerSwitch_1","time":1689841077839,"value":0},"PowerSwitch_2":{"identifier":"PowerSwitch_2","time":1689841077839,"value":0},"PowerSwitch_3":{"identifier":"PowerSwitch_3","time":1689841077839,"value":0},"status":{"identifier":"status","time":1689841077839,"value":"ONLINE"}},"newFlag":0,"product":{"devType":2,"detailTemplateId":0,"configTemplateId":0,"mainTemplateId":0,"mainButtonShowEnable":1,"mainReceiveNoticeEnable":0,"globalProductId":6,"productKey":"a1utgIxvCwV","elementControls":null,"skipConfig":"G55SingleFire","netType":5,"productType":-1},"elementIdentifier":"PowerSwitch_1","elementIdentifierType":1,"elementName":"\xe5\xbc\x80\xe5\x85\xb3(\xe4\xb8\x8a)","loadStatus":"LoadStatus_1","purposeId":4,"purposeName":"\xe4\xb9\xa6\xe6\x88\xbf\xe7\x85\xa7\xe6\x98\x8e\xe7\x81\xaf","openIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/6_4_open.png","closeIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/6_4_close.png","offlineIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/6_4_offline.png","roomName":"\xe4\xb9\xa6\xe6\x88\xbf","roomId":6199718,"bleDeviceName":null,"isOwner":1,"shareStatus":null,"updateTime":1689001017000,"positionLabel":"Position_1","loadDevice":null,"showFlag":true,"setting":["selectRoom"],"createTime":null,"deviceInfoVo":{"openIconUrl":"https://saas-product-image.oss-cn-shanghai.aliyuncs.com/app2_0/%E4%BA%A7%E5%93%81%E5%9B%BE%E7%89%87/%E6%99%BA%E8%83%BD%E4%B8%89%E4%BD%8D%E5%BC%80%E5%85%B3%28%E5%8D%95%E7%81%AB%29.png","nickName":"G27\xe6\x99\xba\xe8\x83\xbd\xe4\xb8\x89\xe4\xbd\x8d\xe5\xbc\x80\xe5\x85\xb3(\xe5\x8d\x95\xe7\x81\xab/zigbee)"}},{"iotId":"0FTQ803T8RaMim4lfO86000000","deviceName":"C411E0FFFE1AB8BB","nickName":"\xe4\xb9\xa6\xe6\x88\xbf\xe8\xb5\xb0\xe5\xbb\x8a\xe7\x81\xaf","status":"ONLINE","property":{"LoadStatus_2":{"identifier":"LoadStatus_2","time":1689841077839,"value":1},"LoadStatus_1":{"identifier":"LoadStatus_1","time":1689841077839,"value":1},"light":{"identifier":"light","time":1689841077839,"value":1},"LoadStatus_3":{"identifier":"LoadStatus_3","time":1689841077839,"value":1},"PowerSwitch_1":{"identifier":"PowerSwitch_1","time":1689841077839,"value":0},"PowerSwitch_2":{"identifier":"PowerSwitch_2","time":1689841077839,"value":0},"PowerSwitch_3":{"identifier":"PowerSwitch_3","time":1689841077839,"value":0},"status":{"identifier":"status","time":1689841077839,"value":"ONLINE"}},"newFlag":0,"product":{"devType":2,"detailTemplateId":0,"configTemplateId":0,"mainTemplateId":0,"mainButtonShowEnable":1,"mainReceiveNoticeEnable":0,"globalProductId":6,"productKey":"a1utgIxvCwV","elementControls":null,"skipConfig":"G55SingleFire","netType":5,"productType":-1},"elementIdentifier":"PowerSwitch_3","elementIdentifierType":3,"elementName":"\xe5\xbc\x80\xe5\x85\xb3(\xe4\xb8\x8b)","loadStatus":"LoadStatus_3","purposeId":4,"purposeName":"\xe4\xb9\xa6\xe6\x88\xbf\xe8\xb5\xb0\xe5\xbb\x8a\xe7\x81\xaf","openIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/6_4_open.png","closeIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/6_4_close.png","offlineIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/6_4_offline.png","roomName":"\xe4\xb9\xa6\xe6\x88\xbf","roomId":6199718,"bleDeviceName":null,"isOwner":1,"shareStatus":null,"updateTime":1689000981000,"positionLabel":"Position_3","loadDevice":null,"showFlag":true,"setting":["selectRoom"],"createTime":null,"deviceInfoVo":{"openIconUrl":"https://saas-product-image.oss-cn-shanghai.aliyuncs.com/app2_0/%E4%BA%A7%E5%93%81%E5%9B%BE%E7%89%87/%E6%99%BA%E8%83%BD%E4%B8%89%E4%BD%8D%E5%BC%80%E5%85%B3%28%E5%8D%95%E7%81%AB%29.png","nickName":"G27\xe6\x99\xba\xe8\x83\xbd\xe4\xb8\x89\xe4\xbd\x8d\xe5\xbc\x80\xe5\x85\xb3(\xe5\x8d\x95\xe7\x81\xab/zigbee)"}},{"iotId":"3KtTzPc66UbK8jiXCptq000000","deviceName":"C411E0FFFE18AEDC","nickName":"\xe7\x8e\x84\xe5\x85\xb3\xe8\xb5\xb0\xe5\xbb\x8a\xe7\x81\xaf","status":"ONLINE","property":{"LoadStatus_2":{"identifier":"LoadStatus_2","time":1689841077846,"value":1},"LoadStatus_1":{"identifier":"LoadStatus_1","time":1689841077846,"value":1},"light":{"identifier":"light","time":1689841077846,"value":1},"PowerSwitch_1":{"identifier":"PowerSwitch_1","time":1689841077846,"value":0},"PowerSwitch_2":{"identifier":"PowerSwitch_2","time":1689841077846,"value":0},"status":{"identifier":"status","time":1689841077846,"value":"ONLINE"}},"newFlag":0,"product":{"devType":2,"detailTemplateId":0,"configTemplateId":0,"mainTemplateId":0,"mainButtonShowEnable":1,"mainReceiveNoticeEnable":0,"globalProductId":5,"productKey":"a1CV04bhLmH","elementControls":null,"skipConfig":"G55SingleFire","netType":5,"productType":-1},"elementIdentifier":"PowerSwitch_2","elementIdentifierType":3,"elementName":"\xe5\xbc\x80\xe5\x85\xb3(\xe4\xb8\x8b)","loadStatus":"LoadStatus_2","purposeId":4,"purposeName":"\xe7\x8e\x84\xe5\x85\xb3\xe8\xb5\xb0\xe5\xbb\x8a\xe7\x81\xaf","openIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/5_4_open.png","closeIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/5_4_close.png","offlineIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/5_4_offline.png","roomName":"\xe7\x8e\x84\xe5\x85\xb3","roomId":123900,"bleDeviceName":null,"isOwner":1,"shareStatus":null,"updateTime":1689000958000,"positionLabel":"Position_2","loadDevice":null,"showFlag":true,"setting":["selectRoom"],"createTime":null,"deviceInfoVo":{"openIconUrl":"https://saas-product-image.oss-cn-shanghai.aliyuncs.com/app2_0/%E4%BA%A7%E5%93%81%E5%9B%BE%E7%89%87/%E6%99%BA%E8%83%BD%E4%BA%8C%E4%BD%8D%E5%BC%80%E5%85%B3%28%E5%8D%95%E7%81%AB%29.png","nickName":"G27\xe6\x99\xba\xe8\x83\xbd\xe4\xba\x8c\xe4\xbd\x8d\xe5\xbc\x80\xe5\x85\xb3(\xe5\x8d\x95\xe7\x81\xab/zigbee)"}},{"iotId":"CeCEI2kFE5ByDMRnvfjp000000","deviceName":"C411E0FFFE16AAE1","nickName":"\xe6\xac\xa1\xe5\x8d\xa7\xe5\xba\x8a\xe5\xa4\xb4\xe7\x81\xaf","status":"ONLINE","property":{"LoadStatus_2":{"identifier":"LoadStatus_2","time":1689841077846,"value":1},"LoadStatus_1":{"identifier":"LoadStatus_1","time":1689841077846,"value":1},"light":{"identifier":"light","time":1689841077846,"value":1},"LoadStatus_3":{"identifier":"LoadStatus_3","time":1689841077846,"value":1},"PowerSwitch_1":{"identifier":"PowerSwitch_1","time":1689841077846,"value":0},"PowerSwitch_2":{"identifier":"PowerSwitch_2","time":1689841077846,"value":0},"PowerSwitch_3":{"identifier":"PowerSwitch_3","time":1689841077846,"value":0},"status":{"identifier":"status","time":1689841077846,"value":"ONLINE"}},"newFlag":0,"product":{"devType":2,"detailTemplateId":0,"configTemplateId":0,"mainTemplateId":0,"mainButtonShowEnable":1,"mainReceiveNoticeEnable":0,"globalProductId":6,"productKey":"a1utgIxvCwV","elementControls":null,"skipConfig":"G55SingleFire","netType":5,"productType":-1},"elementIdentifier":"PowerSwitch_3","elementIdentifierType":3,"elementName":"\xe5\xbc\x80\xe5\x85\xb3(\xe4\xb8\x8b)","loadStatus":"LoadStatus_3","purposeId":4,"purposeName":"\xe6\xac\xa1\xe5\x8d\xa7\xe5\xba\x8a\xe5\xa4\xb4\xe7\x81\xaf","openIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/6_4_open.png","closeIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/6_4_close.png","offlineIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/6_4_offline.png","roomName":"\xe6\xac\xa1\xe5\x8d\xa7","roomId":123899,"bleDeviceName":null,"isOwner":1,"shareStatus":null,"updateTime":1689000893000,"positionLabel":"Position_3","loadDevice":null,"showFlag":true,"setting":["selectRoom"],"createTime":null,"deviceInfoVo":{"openIconUrl":"https://saas-product-image.oss-cn-shanghai.aliyuncs.com/app2_0/%E4%BA%A7%E5%93%81%E5%9B%BE%E7%89%87/%E6%99%BA%E8%83%BD%E4%B8%89%E4%BD%8D%E5%BC%80%E5%85%B3%28%E5%8D%95%E7%81%AB%29.png","nickName":"G27\xe6\x99\xba\xe8\x83\xbd\xe4\xb8\x89\xe4\xbd\x8d\xe5\xbc\x80\xe5\x85\xb3(\xe5\x8d\x95\xe7\x81\xab/zigbee)"}},{"iotId":"CeCEI2kFE5ByDMRnvfjp000000","deviceName":"C411E0FFFE16AAE1","nickName":"\xe6\xac\xa1\xe5\x8d\xa7\xe5\x90\xb8\xe9\xa1\xb6\xe7\x81\xaf","status":"ONLINE","property":{"LoadStatus_2":{"identifier":"LoadStatus_2","time":1689841077846,"value":1},"LoadStatus_1":{"identifier":"LoadStatus_1","time":1689841077846,"value":1},"light":{"identifier":"light","time":1689841077846,"value":1},"LoadStatus_3":{"identifier":"LoadStatus_3","time":1689841077846,"value":1},"PowerSwitch_1":{"identifier":"PowerSwitch_1","time":1689841077846,"value":0},"PowerSwitch_2":{"identifier":"PowerSwitch_2","time":1689841077846,"value":0},"PowerSwitch_3":{"identifier":"PowerSwitch_3","time":1689841077846,"value":0},"status":{"identifier":"status","time":1689841077846,"value":"ONLINE"}},"newFlag":0,"product":{"devType":2,"detailTemplateId":0,"configTemplateId":0,"mainTemplateId":0,"mainButtonShowEnable":1,"mainReceiveNoticeEnable":0,"globalProductId":6,"productKey":"a1utgIxvCwV","elementControls":null,"skipConfig":"G55SingleFire","netType":5,"productType":-1},"elementIdentifier":"PowerSwitch_2","elementIdentifierType":2,"elementName":"\xe5\xbc\x80\xe5\x85\xb3(\xe4\xb8\xad)","loadStatus":"LoadStatus_2","purposeId":2,"purposeName":"\xe6\xac\xa1\xe5\x8d\xa7\xe5\x90\xb8\xe9\xa1\xb6\xe7\x81\xaf","openIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/6_2_open.png","closeIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/6_2_close.png","offlineIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/6_2_offline.png","roomName":"\xe6\xac\xa1\xe5\x8d\xa7","roomId":123899,"bleDeviceName":null,"isOwner":1,"shareStatus":null,"updateTime":1689000881000,"positionLabel":"Position_2","loadDevice":null,"showFlag":true,"setting":["selectRoom"],"createTime":null,"deviceInfoVo":{"openIconUrl":"https://saas-product-image.oss-cn-shanghai.aliyuncs.com/app2_0/%E4%BA%A7%E5%93%81%E5%9B%BE%E7%89%87/%E6%99%BA%E8%83%BD%E4%B8%89%E4%BD%8D%E5%BC%80%E5%85%B3%28%E5%8D%95%E7%81%AB%29.png","nickName":"G27\xe6\x99\xba\xe8\x83\xbd\xe4\xb8\x89\xe4\xbd\x8d\xe5\xbc\x80\xe5\x85\xb3(\xe5\x8d\x95\xe7\x81\xab/zigbee)"}},{"iotId":"CeCEI2kFE5ByDMRnvfjp000000","deviceName":"C411E0FFFE16AAE1","nickName":"\xe6\xac\xa1\xe5\x8d\xa7\xe4\xbe\xa7\xe7\x81\xaf","status":"ONLINE","property":{"LoadStatus_2":{"identifier":"LoadStatus_2","time":1689841077846,"value":1},"LoadStatus_1":{"identifier":"LoadStatus_1","time":1689841077846,"value":1},"light":{"identifier":"light","time":1689841077846,"value":1},"LoadStatus_3":{"identifier":"LoadStatus_3","time":1689841077846,"value":1},"PowerSwitch_1":{"identifier":"PowerSwitch_1","time":1689841077846,"value":0},"PowerSwitch_2":{"identifier":"PowerSwitch_2","time":1689841077846,"value":0},"PowerSwitch_3":{"identifier":"PowerSwitch_3","time":1689841077846,"value":0},"status":{"identifier":"status","time":1689841077846,"value":"ONLINE"}},"newFlag":0,"product":{"devType":2,"detailTemplateId":0,"configTemplateId":0,"mainTemplateId":0,"mainButtonShowEnable":1,"mainReceiveNoticeEnable":0,"globalProductId":6,"productKey":"a1utgIxvCwV","elementControls":null,"skipConfig":"G55SingleFire","netType":5,"productType":-1},"elementIdentifier":"PowerSwitch_1","elementIdentifierType":1,"elementName":"\xe5\xbc\x80\xe5\x85\xb3(\xe4\xb8\x8a)","loadStatus":"LoadStatus_1","purposeId":4,"purposeName":"\xe6\xac\xa1\xe5\x8d\xa7\xe4\xbe\xa7\xe7\x81\xaf","openIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/6_4_open.png","closeIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/6_4_close.png","offlineIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/6_4_offline.png","roomName":"\xe6\xac\xa1\xe5\x8d\xa7","roomId":123899,"bleDeviceName":null,"isOwner":1,"shareStatus":null,"updateTime":1689000870000,"positionLabel":"Position_1","loadDevice":null,"showFlag":true,"setting":["selectRoom"],"createTime":null,"deviceInfoVo":{"openIconUrl":"https://saas-product-image.oss-cn-shanghai.aliyuncs.com/app2_0/%E4%BA%A7%E5%93%81%E5%9B%BE%E7%89%87/%E6%99%BA%E8%83%BD%E4%B8%89%E4%BD%8D%E5%BC%80%E5%85%B3%28%E5%8D%95%E7%81%AB%29.png","nickName":"G27\xe6\x99\xba\xe8\x83\xbd\xe4\xb8\x89\xe4\xbd\x8d\xe5\xbc\x80\xe5\x85\xb3(\xe5\x8d\x95\xe7\x81\xab/zigbee)"}},{"iotId":"lgk6IJeg1JXXUwxnHCdA000000","deviceName":"C411E0FFFE14133B","nickName":"\xe6\xac\xa1\xe5\x8d\xa7\xe9\x98\xb3\xe5\x8f\xb0\xe7\x81\xaf","status":"ONLINE","property":{"LoadStatus_1":{"identifier":"LoadStatus_1","time":1689841077846,"value":1},"light":{"identifier":"light","time":1689841077846,"value":1},"PowerSwitch_1":{"identifier":"PowerSwitch_1","time":1689841077846,"value":0},"status":{"identifier":"status","time":1689841077846,"value":"ONLINE"}},"newFlag":0,"product":{"devType":2,"detailTemplateId":0,"configTemplateId":0,"mainTemplateId":0,"mainButtonShowEnable":1,"mainReceiveNoticeEnable":0,"globalProductId":4,"productKey":"a1P8UzlxfMx","elementControls":null,"skipConfig":"G55SingleFire","netType":5,"productType":-1},"elementIdentifier":"PowerSwitch_1","elementIdentifierType":0,"elementName":"\xe5\xbc\x80\xe5\x85\xb3","loadStatus":"LoadStatus_1","purposeId":4,"purposeName":"\xe6\xac\xa1\xe5\x8d\xa7\xe9\x98\xb3\xe5\x8f\xb0\xe7\x81\xaf","openIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/4_4_open.png","closeIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/4_4_close.png","offlineIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/4_4_offline.png","roomName":"\xe6\xac\xa1\xe5\x8d\xa7","roomId":123899,"bleDeviceName":null,"isOwner":1,"shareStatus":null,"updateTime":1689000850000,"positionLabel":"Position_1","loadDevice":null,"showFlag":true,"setting":["selectRoom"],"createTime":null,"deviceInfoVo":{"openIconUrl":"https://saas-product-image.oss-cn-shanghai.aliyuncs.com/app2_0/%E4%BA%A7%E5%93%81%E5%9B%BE%E7%89%87/%E6%99%BA%E8%83%BD%E4%B8%80%E4%BD%8D%E5%BC%80%E5%85%B3%28%E5%8D%95%E7%81%AB%29.png","nickName":"G27\xe6\x99\xba\xe8\x83\xbd\xe4\xb8\x80\xe4\xbd\x8d\xe5\xbc\x80\xe5\x85\xb3(\xe5\x8d\x95\xe7\x81\xab/zigbee)"}},{"iotId":"xXEqrBG9KFUIV4wJqpz3000000","deviceName":"C411E0FFFE18AEB5","nickName":"\xe4\xb8\xbb\xe5\x8d\xa7\xe5\x90\xb8\xe9\xa1\xb6\xe7\x81\xaf","status":"ONLINE","property":{"LoadStatus_2":{"identifier":"LoadStatus_2","time":1689841077839,"value":2},"LoadStatus_1":{"identifier":"LoadStatus_1","time":1689841077839,"value":1},"light":{"identifier":"light","time":1689841077839,"value":1},"PowerSwitch_1":{"identifier":"PowerSwitch_1","time":1689841077839,"value":0},"PowerSwitch_2":{"identifier":"PowerSwitch_2","time":1689841077839,"value":0},"status":{"identifier":"status","time":1689841077839,"value":"ONLINE"}},"newFlag":0,"product":{"devType":2,"detailTemplateId":0,"configTemplateId":0,"mainTemplateId":0,"mainButtonShowEnable":1,"mainReceiveNoticeEnable":0,"globalProductId":5,"productKey":"a1CV04bhLmH","elementControls":null,"skipConfig":"G55SingleFire","netType":5,"productType":-1},"elementIdentifier":"PowerSwitch_2","elementIdentifierType":3,"elementName":"\xe5\xbc\x80\xe5\x85\xb3(\xe4\xb8\x8b)","loadStatus":"LoadStatus_2","purposeId":2,"purposeName":"\xe4\xb8\xbb\xe5\x8d\xa7\xe5\x90\xb8\xe9\xa1\xb6\xe7\x81\xaf","openIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/5_2_open.png","closeIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/5_2_close.png","offlineIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/5_2_offline.png","roomName":"\xe4\xb8\xbb\xe5\x8d\xa7","roomId":123898,"bleDeviceName":null,"isOwner":1,"shareStatus":null,"updateTime":1689000772000,"positionLabel":"Position_2","loadDevice":null,"showFlag":true,"setting":["selectRoom"],"createTime":null,"deviceInfoVo":{"openIconUrl":"https://saas-product-image.oss-cn-shanghai.aliyuncs.com/app2_0/%E4%BA%A7%E5%93%81%E5%9B%BE%E7%89%87/%E6%99%BA%E8%83%BD%E4%BA%8C%E4%BD%8D%E5%BC%80%E5%85%B3%28%E5%8D%95%E7%81%AB%29.png","nickName":"G27\xe6\x99\xba\xe8\x83\xbd\xe4\xba\x8c\xe4\xbd\x8d\xe5\xbc\x80\xe5\x85\xb3(\xe5\x8d\x95\xe7\x81\xab/zigbee)"}},{"iotId":"ROxwoK2fLTFMwBFmAgKI000000","deviceName":"C411E0FFFE14F385","nickName":"\xe4\xb8\xbb\xe5\x8d\xa7\xe5\x90\xb8\xe9\xa1\xb6\xe7\x81\xaf","status":"ONLINE","property":{"LoadStatus_1":{"identifier":"LoadStatus_1","time":1689841077846,"value":1},"light":{"identifier":"light","time":1689841077846,"value":0},"PowerSwitch_1":{"identifier":"PowerSwitch_1","time":1689841077846,"value":0},"status":{"identifier":"status","time":1689841077846,"value":"ONLINE"}},"newFlag":0,"product":{"devType":2,"detailTemplateId":0,"configTemplateId":0,"mainTemplateId":0,"mainButtonShowEnable":1,"mainReceiveNoticeEnable":0,"globalProductId":4,"productKey":"a1P8UzlxfMx","elementControls":null,"skipConfig":"G55SingleFire","netType":5,"productType":-1},"elementIdentifier":"PowerSwitch_1","elementIdentifierType":0,"elementName":"\xe5\xbc\x80\xe5\x85\xb3","loadStatus":"LoadStatus_1","purposeId":2,"purposeName":"\xe4\xb8\xbb\xe5\x8d\xa7\xe5\x90\xb8\xe9\xa1\xb6\xe7\x81\xaf","openIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/4_2_open.png","closeIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/4_2_close.png","offlineIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/4_2_offline.png","roomName":"\xe4\xb8\xbb\xe5\x8d\xa7","roomId":123898,"bleDeviceName":null,"isOwner":1,"shareStatus":null,"updateTime":1689000721000,"positionLabel":"Position_1","loadDevice":null,"showFlag":true,"setting":["selectRoom"],"createTime":null,"deviceInfoVo":{"openIconUrl":"https://saas-product-image.oss-cn-shanghai.aliyuncs.com/app2_0/%E4%BA%A7%E5%93%81%E5%9B%BE%E7%89%87/%E6%99%BA%E8%83%BD%E4%B8%80%E4%BD%8D%E5%BC%80%E5%85%B3%28%E5%8D%95%E7%81%AB%29.png","nickName":"G27\xe6\x99\xba\xe8\x83\xbd\xe4\xb8\x80\xe4\xbd\x8d\xe5\xbc\x80\xe5\x85\xb3(\xe5\x8d\x95\xe7\x81\xab/zigbee)"}},{"iotId":"b2gRAsuvnOtkUsXjPNYo000000","deviceName":"C411E0FFFE18AEDE","nickName":"\xe4\xb8\xbb\xe5\x8d\xa7\xe4\xbe\xa7\xe7\x81\xaf","status":"ONLINE","property":{"LoadStatus_2":{"identifier":"LoadStatus_2","time":1689841077846,"value":1},"LoadStatus_1":{"identifier":"LoadStatus_1","time":1689841077846,"value":1},"light":{"identifier":"light","time":1689841077846,"value":1},"PowerSwitch_1":{"identifier":"PowerSwitch_1","time":1689841077846,"value":0},"PowerSwitch_2":{"identifier":"PowerSwitch_2","time":1689841077846,"value":0},"status":{"identifier":"status","time":1689841077846,"value":"ONLINE"}},"newFlag":0,"product":{"devType":2,"detailTemplateId":0,"configTemplateId":0,"mainTemplateId":0,"mainButtonShowEnable":1,"mainReceiveNoticeEnable":0,"globalProductId":5,"productKey":"a1CV04bhLmH","elementControls":null,"skipConfig":"G55SingleFire","netType":5,"productType":-1},"elementIdentifier":"PowerSwitch_1","elementIdentifierType":1,"elementName":"\xe5\xbc\x80\xe5\x85\xb3(\xe4\xb8\x8a)","loadStatus":"LoadStatus_1","purposeId":4,"purposeName":"\xe4\xb8\xbb\xe5\x8d\xa7\xe4\xbe\xa7\xe7\x81\xaf","openIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/5_4_open.png","closeIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/5_4_close.png","offlineIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/5_4_offline.png","roomName":"\xe4\xb8\xbb\xe5\x8d\xa7","roomId":123898,"bleDeviceName":null,"isOwner":1,"shareStatus":null,"updateTime":1689000695000,"positionLabel":"Position_1","loadDevice":null,"showFlag":true,"setting":["selectRoom"],"createTime":null,"deviceInfoVo":{"openIconUrl":"https://saas-product-image.oss-cn-shanghai.aliyuncs.com/app2_0/%E4%BA%A7%E5%93%81%E5%9B%BE%E7%89%87/%E6%99%BA%E8%83%BD%E4%BA%8C%E4%BD%8D%E5%BC%80%E5%85%B3%28%E5%8D%95%E7%81%AB%29.png","nickName":"G27\xe6\x99\xba\xe8\x83\xbd\xe4\xba\x8c\xe4\xbd\x8d\xe5\xbc\x80\xe5\x85\xb3(\xe5\x8d\x95\xe7\x81\xab/zigbee)"}},{"iotId":"b2gRAsuvnOtkUsXjPNYo000000","deviceName":"C411E0FFFE18AEDE","nickName":"\xe4\xb8\xbb\xe5\x8d\xa7\xe5\xba\x8a\xe5\xa4\xb4\xe7\x81\xaf","status":"ONLINE","property":{"LoadStatus_2":{"identifier":"LoadStatus_2","time":1689841077846,"value":1},"LoadStatus_1":{"identifier":"LoadStatus_1","time":1689841077846,"value":1},"light":{"identifier":"light","time":1689841077846,"value":1},"PowerSwitch_1":{"identifier":"PowerSwitch_1","time":1689841077846,"value":0},"PowerSwitch_2":{"identifier":"PowerSwitch_2","time":1689841077846,"value":0},"status":{"identifier":"status","time":1689841077846,"value":"ONLINE"}},"newFlag":0,"product":{"devType":2,"detailTemplateId":0,"configTemplateId":0,"mainTemplateId":0,"mainButtonShowEnable":1,"mainReceiveNoticeEnable":0,"globalProductId":5,"productKey":"a1CV04bhLmH","elementControls":null,"skipConfig":"G55SingleFire","netType":5,"productType":-1},"elementIdentifier":"PowerSwitch_2","elementIdentifierType":3,"elementName":"\xe5\xbc\x80\xe5\x85\xb3(\xe4\xb8\x8b)","loadStatus":"LoadStatus_2","purposeId":4,"purposeName":"\xe4\xb8\xbb\xe5\x8d\xa7\xe5\xba\x8a\xe5\xa4\xb4\xe7\x81\xaf","openIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/5_4_open.png","closeIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/5_4_close.png","offlineIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/5_4_offline.png","roomName":"\xe4\xb8\xbb\xe5\x8d\xa7","roomId":123898,"bleDeviceName":null,"isOwner":1,"shareStatus":null,"updateTime":1689000680000,"positionLabel":"Position_2","loadDevice":null,"showFlag":true,"setting":["selectRoom"],"createTime":null,"deviceInfoVo":{"openIconUrl":"https://saas-product-image.oss-cn-shanghai.aliyuncs.com/app2_0/%E4%BA%A7%E5%93%81%E5%9B%BE%E7%89%87/%E6%99%BA%E8%83%BD%E4%BA%8C%E4%BD%8D%E5%BC%80%E5%85%B3%28%E5%8D%95%E7%81%AB%29.png","nickName":"G27\xe6\x99\xba\xe8\x83\xbd\xe4\xba\x8c\xe4\xbd\x8d\xe5\xbc\x80\xe5\x85\xb3(\xe5\x8d\x95\xe7\x81\xab/zigbee)"}},{"iotId":"jFzsst29qVlVAicOjHJQ000000","deviceName":"C411E0FFFE1E2692","nickName":"\xe4\xb8\xbb\xe5\x8d\xa7\xe8\xb5\xb0\xe5\xbb\x8a\xe7\x81\xaf","status":"ONLINE","property":{"LoadStatus_1":{"identifier":"LoadStatus_1","time":1689841077846,"value":1},"light":{"identifier":"light","time":1689841077846,"value":1},"PowerSwitch_1":{"identifier":"PowerSwitch_1","time":1689841077846,"value":0},"status":{"identifier":"status","time":1689841077846,"value":"ONLINE"}},"newFlag":0,"product":{"devType":2,"detailTemplateId":0,"configTemplateId":0,"mainTemplateId":0,"mainButtonShowEnable":1,"mainReceiveNoticeEnable":0,"globalProductId":4,"productKey":"a1P8UzlxfMx","elementControls":null,"skipConfig":"G55SingleFire","netType":5,"productType":-1},"elementIdentifier":"PowerSwitch_1","elementIdentifierType":0,"elementName":"\xe5\xbc\x80\xe5\x85\xb3","loadStatus":"LoadStatus_1","purposeId":4,"purposeName":"\xe4\xb8\xbb\xe5\x8d\xa7\xe8\xb5\xb0\xe5\xbb\x8a\xe7\x81\xaf","openIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/4_4_open.png","closeIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/4_4_close.png","offlineIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/4_4_offline.png","roomName":"\xe4\xb8\xbb\xe5\x8d\xa7","roomId":123898,"bleDeviceName":null,"isOwner":1,"shareStatus":null,"updateTime":1689000657000,"positionLabel":"Position_1","loadDevice":null,"showFlag":true,"setting":["selectRoom"],"createTime":null,"deviceInfoVo":{"openIconUrl":"https://saas-product-image.oss-cn-shanghai.aliyuncs.com/app2_0/%E4%BA%A7%E5%93%81%E5%9B%BE%E7%89%87/%E6%99%BA%E8%83%BD%E4%B8%80%E4%BD%8D%E5%BC%80%E5%85%B3%28%E5%8D%95%E7%81%AB%29.png","nickName":"G27\xe6\x99\xba\xe8\x83\xbd\xe4\xb8\x80\xe4\xbd\x8d\xe5\xbc\x80\xe5\x85\xb3(\xe5\x8d\x95\xe7\x81\xab/zigbee)"}},{"iotId":"xXEqrBG9KFUIV4wJqpz3000000","deviceName":"C411E0FFFE18AEB5","nickName":"\xe5\xae\xa2\xe5\x8e\x85\xe5\x90\xb8\xe9\xa1\xb6\xe7\x81\xaf","status":"ONLINE","property":{"LoadStatus_2":{"identifier":"LoadStatus_2","time":1689841077839,"value":2},"LoadStatus_1":{"identifier":"LoadStatus_1","time":1689841077839,"value":1},"light":{"identifier":"light","time":1689841077839,"value":1},"PowerSwitch_1":{"identifier":"PowerSwitch_1","time":1689841077839,"value":0},"PowerSwitch_2":{"identifier":"PowerSwitch_2","time":1689841077839,"value":0},"status":{"identifier":"status","time":1689841077839,"value":"ONLINE"}},"newFlag":0,"product":{"devType":2,"detailTemplateId":0,"configTemplateId":0,"mainTemplateId":0,"mainButtonShowEnable":1,"mainReceiveNoticeEnable":0,"globalProductId":5,"productKey":"a1CV04bhLmH","elementControls":null,"skipConfig":"G55SingleFire","netType":5,"productType":-1},"elementIdentifier":"PowerSwitch_1","elementIdentifierType":1,"elementName":"\xe5\xbc\x80\xe5\x85\xb3(\xe4\xb8\x8a)","loadStatus":"LoadStatus_1","purposeId":2,"purposeName":"\xe5\xae\xa2\xe5\x8e\x85\xe5\x90\xb8\xe9\xa1\xb6\xe7\x81\xaf","openIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/5_2_open.png","closeIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/5_2_close.png","offlineIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/5_2_offline.png","roomName":"\xe5\xae\xa2\xe9\xa4\x90\xe5\x8e\x85","roomId":123897,"bleDeviceName":null,"isOwner":1,"shareStatus":null,"updateTime":1689000635000,"positionLabel":"Position_1","loadDevice":null,"showFlag":true,"setting":["selectRoom"],"createTime":null,"deviceInfoVo":{"openIconUrl":"https://saas-product-image.oss-cn-shanghai.aliyuncs.com/app2_0/%E4%BA%A7%E5%93%81%E5%9B%BE%E7%89%87/%E6%99%BA%E8%83%BD%E4%BA%8C%E4%BD%8D%E5%BC%80%E5%85%B3%28%E5%8D%95%E7%81%AB%29.png","nickName":"G27\xe6\x99\xba\xe8\x83\xbd\xe4\xba\x8c\xe4\xbd\x8d\xe5\xbc\x80\xe5\x85\xb3(\xe5\x8d\x95\xe7\x81\xab/zigbee)"}},{"iotId":"cDg5E6AdCcVFp4wUc2Vw000000","deviceName":"C411E0FFFE2BD6B3","nickName":"\xe5\xae\xa2\xe5\x8e\x85\xe4\xbe\xa7\xe7\x81\xaf","status":"ONLINE","property":{"LoadStatus_2":{"identifier":"LoadStatus_2","time":1689841077846,"value":1},"LoadStatus_1":{"identifier":"LoadStatus_1","time":1689841077846,"value":1},"light":{"identifier":"light","time":1689841077846,"value":1},"LoadStatus_3":{"identifier":"LoadStatus_3","time":1689841077846,"value":1},"PowerSwitch_1":{"identifier":"PowerSwitch_1","time":1689841077846,"value":0},"PowerSwitch_2":{"identifier":"PowerSwitch_2","time":1689841077846,"value":0},"PowerSwitch_3":{"identifier":"PowerSwitch_3","time":1689841077846,"value":0},"status":{"identifier":"status","time":1689841077846,"value":"ONLINE"}},"newFlag":0,"product":{"devType":2,"detailTemplateId":0,"configTemplateId":0,"mainTemplateId":0,"mainButtonShowEnable":1,"mainReceiveNoticeEnable":0,"globalProductId":6,"productKey":"a1utgIxvCwV","elementControls":null,"skipConfig":"G55SingleFire","netType":5,"productType":-1},"elementIdentifier":"PowerSwitch_1","elementIdentifierType":1,"elementName":"\xe5\xbc\x80\xe5\x85\xb3(\xe4\xb8\x8a)","loadStatus":"LoadStatus_1","purposeId":4,"purposeName":"\xe5\xae\xa2\xe5\x8e\x85\xe4\xbe\xa7\xe7\x81\xaf","openIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/6_4_open.png","closeIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/6_4_close.png","offlineIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/6_4_offline.png","roomName":"\xe5\xae\xa2\xe9\xa4\x90\xe5\x8e\x85","roomId":123897,"bleDeviceName":null,"isOwner":1,"shareStatus":null,"updateTime":1689000603000,"positionLabel":"Position_1","loadDevice":null,"showFlag":true,"setting":["selectRoom"],"createTime":null,"deviceInfoVo":{"openIconUrl":"https://saas-product-image.oss-cn-shanghai.aliyuncs.com/app2_0/%E4%BA%A7%E5%93%81%E5%9B%BE%E7%89%87/%E6%99%BA%E8%83%BD%E4%B8%89%E4%BD%8D%E5%BC%80%E5%85%B3%28%E5%8D%95%E7%81%AB%29.png","nickName":"G27\xe6\x99\xba\xe8\x83\xbd\xe4\xb8\x89\xe4\xbd\x8d\xe5\xbc\x80\xe5\x85\xb3(\xe5\x8d\x95\xe7\x81\xab/zigbee)"}},{"iotId":"cDg5E6AdCcVFp4wUc2Vw000000","deviceName":"C411E0FFFE2BD6B3","nickName":"\xe5\xae\xa2\xe5\x8e\x85\xe5\xa3\x81\xe7\x81\xaf","status":"ONLINE","property":{"LoadStatus_2":{"identifier":"LoadStatus_2","time":1689841077846,"value":1},"LoadStatus_1":{"identifier":"LoadStatus_1","time":1689841077846,"value":1},"light":{"identifier":"light","time":1689841077846,"value":1},"LoadStatus_3":{"identifier":"LoadStatus_3","time":1689841077846,"value":1},"PowerSwitch_1":{"identifier":"PowerSwitch_1","time":1689841077846,"value":0},"PowerSwitch_2":{"identifier":"PowerSwitch_2","time":1689841077846,"value":0},"PowerSwitch_3":{"identifier":"PowerSwitch_3","time":1689841077846,"value":0},"status":{"identifier":"status","time":1689841077846,"value":"ONLINE"}},"newFlag":0,"product":{"devType":2,"detailTemplateId":0,"configTemplateId":0,"mainTemplateId":0,"mainButtonShowEnable":1,"mainReceiveNoticeEnable":0,"globalProductId":6,"productKey":"a1utgIxvCwV","elementControls":null,"skipConfig":"G55SingleFire","netType":5,"productType":-1},"elementIdentifier":"PowerSwitch_3","elementIdentifierType":3,"elementName":"\xe5\xbc\x80\xe5\x85\xb3(\xe4\xb8\x8b)","loadStatus":"LoadStatus_3","purposeId":4,"purposeName":"\xe5\xae\xa2\xe5\x8e\x85\xe5\xa3\x81\xe7\x81\xaf","openIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/6_4_open.png","closeIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/6_4_close.png","offlineIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/6_4_offline.png","roomName":"\xe5\xae\xa2\xe9\xa4\x90\xe5\x8e\x85","roomId":123897,"bleDeviceName":null,"isOwner":1,"shareStatus":null,"updateTime":1689000578000,"positionLabel":"Position_3","loadDevice":null,"showFlag":true,"setting":["selectRoom"],"createTime":null,"deviceInfoVo":{"openIconUrl":"https://saas-product-image.oss-cn-shanghai.aliyuncs.com/app2_0/%E4%BA%A7%E5%93%81%E5%9B%BE%E7%89%87/%E6%99%BA%E8%83%BD%E4%B8%89%E4%BD%8D%E5%BC%80%E5%85%B3%28%E5%8D%95%E7%81%AB%29.png","nickName":"G27\xe6\x99\xba\xe8\x83\xbd\xe4\xb8\x89\xe4\xbd\x8d\xe5\xbc\x80\xe5\x85\xb3(\xe5\x8d\x95\xe7\x81\xab/zigbee)"}},{"iotId":"dd7HxQd7kSRGuG01EKWM000000","deviceName":"C411E0FFFE1EF35E","nickName":"\xe9\xa4\x90\xe5\x8e\x85\xe7\x81\xaf\xe5\xb8\xa6","status":"ONLINE","property":{"LoadStatus_2":{"identifier":"LoadStatus_2","time":1689841077846,"value":1},"LoadStatus_1":{"identifier":"LoadStatus_1","time":1689841077846,"value":1},"LoadStatus_3":{"identifier":"LoadStatus_3","time":1689841077846,"value":2},"light":{"identifier":"light","time":1689841077846,"value":1},"PowerSwitch_1":{"identifier":"PowerSwitch_1","time":1689841077846,"value":0},"PowerSwitch_2":{"identifier":"PowerSwitch_2","time":1689841077846,"value":0},"PowerSwitch_3":{"identifier":"PowerSwitch_3","time":1689841077846,"value":0},"status":{"identifier":"status","time":1689841077846,"value":"ONLINE"}},"newFlag":0,"product":{"devType":2,"detailTemplateId":0,"configTemplateId":0,"mainTemplateId":0,"mainButtonShowEnable":1,"mainReceiveNoticeEnable":0,"globalProductId":6,"productKey":"a1utgIxvCwV","elementControls":null,"skipConfig":"G55SingleFire","netType":5,"productType":-1},"elementIdentifier":"PowerSwitch_1","elementIdentifierType":1,"elementName":"\xe5\xbc\x80\xe5\x85\xb3(\xe4\xb8\x8a)","loadStatus":"LoadStatus_1","purposeId":3,"purposeName":"\xe9\xa4\x90\xe5\x8e\x85\xe7\x81\xaf\xe5\xb8\xa6","openIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/6_3_open.png","closeIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/6_3_close.png","offlineIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/6_3_offline.png","roomName":"\xe5\xae\xa2\xe9\xa4\x90\xe5\x8e\x85","roomId":123897,"bleDeviceName":null,"isOwner":1,"shareStatus":null,"updateTime":1689000555000,"positionLabel":"Position_1","loadDevice":null,"showFlag":true,"setting":["selectRoom"],"createTime":null,"deviceInfoVo":{"openIconUrl":"https://saas-product-image.oss-cn-shanghai.aliyuncs.com/app2_0/%E4%BA%A7%E5%93%81%E5%9B%BE%E7%89%87/%E6%99%BA%E8%83%BD%E4%B8%89%E4%BD%8D%E5%BC%80%E5%85%B3%28%E5%8D%95%E7%81%AB%29.png","nickName":"G27\xe6\x99\xba\xe8\x83\xbd\xe4\xb8\x89\xe4\xbd\x8d\xe5\xbc\x80\xe5\x85\xb3(\xe5\x8d\x95\xe7\x81\xab/zigbee)"}},{"iotId":"dd7HxQd7kSRGuG01EKWM000000","deviceName":"C411E0FFFE1EF35E","nickName":"\xe9\xa4\x90\xe5\x8e\x85\xe4\xbe\xa7\xe7\x81\xaf","status":"ONLINE","property":{"LoadStatus_2":{"identifier":"LoadStatus_2","time":1689841077846,"value":1},"LoadStatus_1":{"identifier":"LoadStatus_1","time":1689841077846,"value":1},"LoadStatus_3":{"identifier":"LoadStatus_3","time":1689841077846,"value":2},"light":{"identifier":"light","time":1689841077846,"value":1},"PowerSwitch_1":{"identifier":"PowerSwitch_1","time":1689841077846,"value":0},"PowerSwitch_2":{"identifier":"PowerSwitch_2","time":1689841077846,"value":0},"PowerSwitch_3":{"identifier":"PowerSwitch_3","time":1689841077846,"value":0},"status":{"identifier":"status","time":1689841077846,"value":"ONLINE"}},"newFlag":0,"product":{"devType":2,"detailTemplateId":0,"configTemplateId":0,"mainTemplateId":0,"mainButtonShowEnable":1,"mainReceiveNoticeEnable":0,"globalProductId":6,"productKey":"a1utgIxvCwV","elementControls":null,"skipConfig":"G55SingleFire","netType":5,"productType":-1},"elementIdentifier":"PowerSwitch_2","elementIdentifierType":2,"elementName":"\xe5\xbc\x80\xe5\x85\xb3(\xe4\xb8\xad)","loadStatus":"LoadStatus_2","purposeId":4,"purposeName":"\xe9\xa4\x90\xe5\x8e\x85\xe4\xbe\xa7\xe7\x81\xaf","openIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/6_4_open.png","closeIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/6_4_close.png","offlineIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/6_4_offline.png","roomName":"\xe5\xae\xa2\xe9\xa4\x90\xe5\x8e\x85","roomId":123897,"bleDeviceName":null,"isOwner":1,"shareStatus":null,"updateTime":1689000541000,"positionLabel":"Position_2","loadDevice":null,"showFlag":true,"setting":["selectRoom"],"createTime":null,"deviceInfoVo":{"openIconUrl":"https://saas-product-image.oss-cn-shanghai.aliyuncs.com/app2_0/%E4%BA%A7%E5%93%81%E5%9B%BE%E7%89%87/%E6%99%BA%E8%83%BD%E4%B8%89%E4%BD%8D%E5%BC%80%E5%85%B3%28%E5%8D%95%E7%81%AB%29.png","nickName":"G27\xe6\x99\xba\xe8\x83\xbd\xe4\xb8\x89\xe4\xbd\x8d\xe5\xbc\x80\xe5\x85\xb3(\xe5\x8d\x95\xe7\x81\xab/zigbee)"}},{"iotId":"cDg5E6AdCcVFp4wUc2Vw000000","deviceName":"C411E0FFFE2BD6B3","nickName":"\xe5\xae\xa2\xe5\x8e\x85\xe7\x81\xaf\xe5\xb8\xa6","status":"ONLINE","property":{"LoadStatus_2":{"identifier":"LoadStatus_2","time":1689841077846,"value":1},"LoadStatus_1":{"identifier":"LoadStatus_1","time":1689841077846,"value":1},"light":{"identifier":"light","time":1689841077846,"value":1},"LoadStatus_3":{"identifier":"LoadStatus_3","time":1689841077846,"value":1},"PowerSwitch_1":{"identifier":"PowerSwitch_1","time":1689841077846,"value":0},"PowerSwitch_2":{"identifier":"PowerSwitch_2","time":1689841077846,"value":0},"PowerSwitch_3":{"identifier":"PowerSwitch_3","time":1689841077846,"value":0},"status":{"identifier":"status","time":1689841077846,"value":"ONLINE"}},"newFlag":0,"product":{"devType":2,"detailTemplateId":0,"configTemplateId":0,"mainTemplateId":0,"mainButtonShowEnable":1,"mainReceiveNoticeEnable":0,"globalProductId":6,"productKey":"a1utgIxvCwV","elementControls":null,"skipConfig":"G55SingleFire","netType":5,"productType":-1},"elementIdentifier":"PowerSwitch_2","elementIdentifierType":2,"elementName":"\xe5\xbc\x80\xe5\x85\xb3(\xe4\xb8\xad)","loadStatus":"LoadStatus_2","purposeId":3,"purposeName":"\xe5\xae\xa2\xe5\x8e\x85\xe7\x81\xaf\xe5\xb8\xa6","openIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/6_3_open.png","closeIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/6_3_close.png","offlineIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/6_3_offline.png","roomName":"\xe5\xae\xa2\xe9\xa4\x90\xe5\x8e\x85","roomId":123897,"bleDeviceName":null,"isOwner":1,"shareStatus":null,"updateTime":1689000524000,"positionLabel":"Position_2","loadDevice":null,"showFlag":true,"setting":["selectRoom"],"createTime":null,"deviceInfoVo":{"openIconUrl":"https://saas-product-image.oss-cn-shanghai.aliyuncs.com/app2_0/%E4%BA%A7%E5%93%81%E5%9B%BE%E7%89%87/%E6%99%BA%E8%83%BD%E4%B8%89%E4%BD%8D%E5%BC%80%E5%85%B3%28%E5%8D%95%E7%81%AB%29.png","nickName":"G27\xe6\x99\xba\xe8\x83\xbd\xe4\xb8\x89\xe4\xbd\x8d\xe5\xbc\x80\xe5\x85\xb3(\xe5\x8d\x95\xe7\x81\xab/zigbee)"}},{"iotId":"n31KkiBWGQ3TNivTQVcu000000","deviceName":"C411E0FFFE14132D","nickName":"\xe9\xa4\x90\xe5\x8e\x85\xe9\xa3\x8e\xe6\x89\x87\xe7\x81\xaf","status":"ONLINE","property":{"LoadStatus_1":{"identifier":"LoadStatus_1","time":1689841077846,"value":1},"light":{"identifier":"light","time":1689841077846,"value":1},"PowerSwitch_1":{"identifier":"PowerSwitch_1","time":1689841077846,"value":0},"status":{"identifier":"status","time":1689841077846,"value":"ONLINE"}},"newFlag":0,"product":{"devType":2,"detailTemplateId":0,"configTemplateId":0,"mainTemplateId":0,"mainButtonShowEnable":1,"mainReceiveNoticeEnable":0,"globalProductId":4,"productKey":"a1P8UzlxfMx","elementControls":null,"skipConfig":"G55SingleFire","netType":5,"productType":-1},"elementIdentifier":"PowerSwitch_1","elementIdentifierType":0,"elementName":"\xe5\xbc\x80\xe5\x85\xb3","loadStatus":"LoadStatus_1","purposeId":1,"purposeName":"\xe9\xa4\x90\xe5\x8e\x85\xe9\xa3\x8e\xe6\x89\x87\xe7\x81\xaf","openIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/4_1_open.png","closeIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/4_1_close.png","offlineIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/4_1_offline.png","roomName":"\xe5\xae\xa2\xe9\xa4\x90\xe5\x8e\x85","roomId":123897,"bleDeviceName":null,"isOwner":1,"shareStatus":null,"updateTime":1689000505000,"positionLabel":"Position_1","loadDevice":null,"showFlag":true,"setting":["selectRoom"],"createTime":null,"deviceInfoVo":{"openIconUrl":"https://saas-product-image.oss-cn-shanghai.aliyuncs.com/app2_0/%E4%BA%A7%E5%93%81%E5%9B%BE%E7%89%87/%E6%99%BA%E8%83%BD%E4%B8%80%E4%BD%8D%E5%BC%80%E5%85%B3%28%E5%8D%95%E7%81%AB%29.png","nickName":"G27\xe6\x99\xba\xe8\x83\xbd\xe4\xb8\x80\xe4\xbd\x8d\xe5\xbc\x80\xe5\x85\xb3(\xe5\x8d\x95\xe7\x81\xab/zigbee)"}},{"iotId":"50AItC23zMi7YQ5n4NwC000000","deviceName":"C411E0FFFE2EEAA4","nickName":"\xe6\x97\xa0\xe7\xba\xbf\xe5\xbc\x80\xe5\x85\xb3","status":"ONLINE","property":{"BatteryStatus":{"identifier":"BatteryStatus","time":1689841077839,"value":0},"Bound_Devices_P1":{"identifier":"Bound_Devices_P1","time":1689841077839,"value":[{"deviceName":"C411E0FFFE1AB8BB","element":"PowerSwitch_1"}]},"status":{"identifier":"status","time":1689841077839,"value":"ONLINE"}},"newFlag":0,"product":{"devType":2,"detailTemplateId":0,"configTemplateId":0,"mainTemplateId":0,"mainButtonShowEnable":0,"mainReceiveNoticeEnable":0,"globalProductId":15,"productKey":"a1gyp8Bh8vp","elementControls":null,"skipConfig":"G27WiFiSwitch","netType":5,"productType":-1},"elementIdentifier":"PowerSwitch_1","elementIdentifierType":0,"elementName":"\xe6\x97\xa0\xe7\xba\xbf\xe5\xbc\x80\xe5\x85\xb3","loadStatus":"LoadStatus_1","purposeId":14,"purposeName":"\xe6\x97\xa0\xe7\xba\xbf\xe5\xbc\x80\xe5\x85\xb3","openIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/15_14_open.png","closeIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/15_14_close.png","offlineIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/15_14_offline.png","roomName":"\xe4\xb9\xa6\xe6\x88\xbf","roomId":6199718,"bleDeviceName":null,"isOwner":1,"shareStatus":null,"updateTime":1688912970000,"positionLabel":"Position_1","loadDevice":null,"showFlag":true,"setting":["selectRoom"],"createTime":null,"deviceInfoVo":{"openIconUrl":"https://saas-product-image.oss-cn-shanghai.aliyuncs.com/app2_0/%E4%BA%A7%E5%93%81%E5%9B%BE%E7%89%87/%E6%99%BA%E8%83%BD%E4%B8%80%E4%BD%8D%E6%97%A0%E7%BA%BF%E5%BC%80%E5%85%B3.png","nickName":"G27\xe6\x99\xba\xe8\x83\xbd\xe4\xb8\x80\xe4\xbd\x8d\xe6\x97\xa0\xe7\xba\xbf\xe5\xbc\x80\xe5\x85\xb3(zigbee)"}},{"iotId":"vGMMrhucHxaLzAgBZLPT000000","deviceName":"C411E01B27272021","nickName":"\xe7\xbd\x91\xe5\x85\xb3","status":"ONLINE","property":{"BluetoothMac":{"identifier":"BluetoothMac","time":1689841077846,"value":"C4:11:E0:1B:27:28"},"WIFI_AP_BSSID":{"identifier":"WIFI_AP_BSSID","time":1689841077846,"value":"TP-LINK_CF72"},"light":{"identifier":"light","time":1689841077846,"value":1},"status":{"identifier":"status","time":1689841077846,"value":"ONLINE"}},"newFlag":0,"product":{"devType":1,"detailTemplateId":0,"configTemplateId":0,"mainTemplateId":0,"mainButtonShowEnable":0,"mainReceiveNoticeEnable":0,"globalProductId":3,"productKey":"a18aMBCQ96n","elementControls":null,"skipConfig":"G27GateWay","netType":4,"productType":-1},"elementIdentifier":"PowerSwitch","elementIdentifierType":0,"elementName":"\xe7\xbd\x91\xe5\x85\xb3","loadStatus":null,"purposeId":11,"purposeName":"\xe7\xbd\x91\xe5\x85\xb3","openIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/3_11_open.png","closeIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/3_11_close.png","offlineIconUrl":"https://saas-purpose-icon.oss-cn-shanghai.aliyuncs.com/homepage/v2/3_11_offline.png","roomName":"\xe7\x8e\x84\xe5\x85\xb3","roomId":123900,"bleDeviceName":"C4:11:E0:1B:27:28","isOwner":1,"shareStatus":null,"updateTime":1688835587000,"positionLabel":"Position","loadDevice":null,"showFlag":true,"setting":["selectRoom"],"createTime":null,"deviceInfoVo":{"openIconUrl":"https://saas-product-image.oss-cn-shanghai.aliyuncs.com/app2_0/%E4%BA%A7%E5%93%81%E5%9B%BE%E7%89%87/%E7%BD%91%E5%85%B3%E6%8F%92%E5%BA%A7.png","nickName":"G27\xe7\xbd\x91\xe5\x85\xb3\xe6\x8f\x92\xe5\xba\xa7(zigbee\xe7\x89\x88)"}}],"success":true}'
2023-07-20 08:16:17.020 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry XXXX for bull
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 390, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/bull/__init__.py", line 20, in async_setup_entry
    await bull_api.async_get_devices_list()
  File "/config/custom_components/bull/api.py", line 137, in async_get_devices_list
    self.parse_devices(res)
  File "/config/custom_components/bull/api.py", line 142, in parse_devices
    device = BullDevice(self, info)
             ^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/bull/api.py", line 21, in __init__
    self._value: int = info["property"][self._identifier]["value"]
                       ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
KeyError: 'PowerSwitch_1'

> 我自己的账号复现不了这个问题(`property` 里面的键名和 `elementIdentifier` 都是对应的,不报错) 你可以试试按这个 commit 更新,然后检查 debug 日志里面请求到的 json 格式设备列表,也可以贴上来我分析一下 [1b82ee3](https://github.com/stevenjoezhang/hass-iotbull/commit/1b82ee3e59f8e48dd75ecef371bd5e30a6d64a46)
stevenjoezhang commented 1 year ago

@jerryye0 OK,我定位到问题了。是不是有一个G27智能一位无线开关(zigbee),它是和一个G27智能三位开关(单火/zigbee)中的书房照明灯联动的?可能要把它排除掉

jerryye0 commented 1 year ago

@jerryye0 OK,我定位到问题了。是不是有一个G27智能一位无线开关(zigbee),它是和一个G27智能三位开关(单火/zigbee)中的书房照明灯联动的?可能要把它排除掉

ok 成功连接到了

stevenjoezhang commented 1 year ago

我之后再改改~

stevenjoezhang commented 1 year ago

这个问题应该解决了,更新一下就行。有其他问题欢迎新开 issue