Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cuco.plug.cp1m设备异常问题 #154

Closed
yangyeq1n opened this issue Aug 1, 2021 · 7 comments
Closed

cuco.plug.cp1m设备异常问题 #154

yangyeq1n opened this issue Aug 1, 2021 · 7 comments
Labels
bug Something isn't working device: outlet

Comments

@yangyeq1n
Copy link

大佬,有几个小问题想请教您 @al-one
1.
image
cuco.plug.cp1m设备 gosund智能插座一直不可用 不管是局域网还是云端 昨天曾经成功添加过一次 能在实体信息里看到电流等信息,但是没有对应的sensor
2.
image
image

cuco.plug.sp5设备 出现巨多的重复的lock 可能几乎是每一次重启ha服务或者是断电的情况下就会重复生成一个新的实体
辛苦大佬了,请帮看看怎么解决

@al-one al-one added bug Something isn't working device: outlet labels Aug 1, 2021
@yangyeq1n
Copy link
Author

BUG LOG也许是这些:
Logger: custom_components.xiaomi_miot
Source: custom_components/xiaomi_miot/init.py:881
Integration: Xiaomi Miot Auto (documentation, issues)
First occurred: 24:28:45 (7 occurrences)
Last logged: 24:29:20

Got MiioException while fetching the state for Power Strip(Dinning Room) USB Switch Status: Unable to discover the device 192.168.0.126, mapping: {'switch-7.on': {'siid': 7, 'piid': 1}, 'custome.off_memory': {'siid': 9, 'piid': 1}, 'switch-6.on': {'siid': 6, 'piid': 1}, 'switch-5.on': {'siid': 5, 'piid': 1}, 'switch-4.on': {'siid': 4, 'piid': 1}, 'switch-3.on': {'siid': 3, 'piid': 1}, 'physical_controls_locked': {'siid': 8, 'piid': 1}, 'switch.on': {'siid': 2, 'piid': 1}}
Got MiioException while fetching the state for Power Strip(Dinning Room) switch: Unable to discover the device 192.168.0.126, mapping: {'switch-5.on': {'siid': 5, 'piid': 1}, 'custome.off_memory': {'siid': 9, 'piid': 1}, 'switch-6.on': {'siid': 6, 'piid': 1}, 'switch-4.on': {'siid': 4, 'piid': 1}, 'switch-3.on': {'siid': 3, 'piid': 1}, 'physical_controls_locked': {'siid': 8, 'piid': 1}, 'switch-7.on': {'siid': 7, 'piid': 1}, 'switch.on': {'siid': 2, 'piid': 1}}
Got MiioException while fetching the state for Power Strip(Dinning Room) switch: Unable to discover the device 192.168.0.126, mapping: {'switch-4.on': {'siid': 4, 'piid': 1}, 'custome.off_memory': {'siid': 9, 'piid': 1}, 'switch-6.on': {'siid': 6, 'piid': 1}, 'switch-5.on': {'siid': 5, 'piid': 1}, 'switch-3.on': {'siid': 3, 'piid': 1}, 'physical_controls_locked': {'siid': 8, 'piid': 1}, 'switch-7.on': {'siid': 7, 'piid': 1}, 'switch.on': {'siid': 2, 'piid': 1}}
Got MiioException while fetching the state for Power Strip(Dinning Room) switch: Unable to discover the device 192.168.0.126, mapping: {'switch-3.on': {'siid': 3, 'piid': 1}, 'custome.off_memory': {'siid': 9, 'piid': 1}, 'switch-6.on': {'siid': 6, 'piid': 1}, 'switch-5.on': {'siid': 5, 'piid': 1}, 'switch-4.on': {'siid': 4, 'piid': 1}, 'physical_controls_locked': {'siid': 8, 'piid': 1}, 'switch-7.on': {'siid': 7, 'piid': 1}, 'switch.on': {'siid': 2, 'piid': 1}}
Got MiioException while fetching the state for Power Strip(Dinning Room) switch: Unable to discover the device 192.168.0.126, mapping: {'switch-6.on': {'siid': 6, 'piid': 1}, 'custome.off_memory': {'siid': 9, 'piid': 1}, 'switch-5.on': {'siid': 5, 'piid': 1}, 'switch-4.on': {'siid': 4, 'piid': 1}, 'switch-3.on': {'siid': 3, 'piid': 1}, 'physical_controls_locked': {'siid': 8, 'piid': 1}, 'switch-7.on': {'siid': 7, 'piid': 1}, 'switch.on': {'siid': 2, 'piid': 1}}

@L1cardo
Copy link

L1cardo commented Aug 2, 2021

我也是这个设备 cuco.plug.cp1m, 希望可以加入电量统计和当前功率显示

@al-one
Copy link
Owner

al-one commented Aug 3, 2021

cuco.plug.cp1m 希望可以加入电量统计和当前功率显示

已支持电量、功能等传感器实体 (4adeb63)

cuco.plug.sp5 出现巨多的重复的lock

已修复,请更新至master后重试 (506001f)

Unable to discover the device 192.168.0.xxx

请检查设备与HA之间的网络

@L1cardo
Copy link

L1cardo commented Aug 4, 2021

请问开发者,类似这种的

'cuco.plug.cp1m': {
	'sensor_properties': 'power_consumption,voltage,electric_current',
},

是在哪里查看的?

我翻看了这个 https://iot.mi.com/new/doc/solution/switch/design , 好像少了electric-power, 也就是功率

@al-one
Copy link
Owner

al-one commented Aug 5, 2021

@L1cardo
Copy link

L1cardo commented Aug 5, 2021

4adeb63 这里面好像少了几个属性,而且单位和数据的位数也不是很正确,我想的能不能自己改一改😂

@al-one
Copy link
Owner

al-one commented Aug 5, 2021

自己改的话,可以通过自定义属性添加。

@al-one al-one changed the title 设备异常问题 cuco.plug.cp1m设备异常问题 Aug 17, 2021
@al-one al-one closed this as completed Aug 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working device: outlet
Projects
None yet
Development

No branches or pull requests

3 participants