『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
12
返回列表 发新帖
楼主: lqgyt1

[插件集成] 小米摄像头自动化开关接入HA

[复制链接]

9

主题

360

帖子

1192

积分

金牌会员

Rank: 6Rank: 6

积分
1192
金钱
832
HASS币
0
发表于 2021-1-25 08:44:40 | 显示全部楼层
Model: chuangmi.camera.ipc013 米家小白青春版摄像头用上了,谢谢楼主!
回复

使用道具 举报

24

主题

884

帖子

5055

积分

论坛元老

Rank: 8Rank: 8

积分
5055
金钱
4166
HASS币
20
发表于 2021-2-3 21:15:11 | 显示全部楼层
同外观的chuangmi.camera.ipc009表示用不了
Error adding entities for domain switch with platform mycamera
Error while setting up mycamera platform for switch
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/miio/miioprotocol.py", line 192, in send
    data, addr = s.recvfrom(1024)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/miio/miioprotocol.py", line 192, in send
    data, addr = s.recvfrom(1024)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/miio/miioprotocol.py", line 192, in send
    data, addr = s.recvfrom(1024)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/miio/miioprotocol.py", line 192, in send
    data, addr = s.recvfrom(1024)
socket.timeout: timed out

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 316, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 531, in add_to_platform_finish
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 296, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 320, in _async_write_ha_state
    sstate = self.state
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 676, in state
    return STATE_ON if self.is_on else STATE_OFF
  File "/config/custom_components/mycamera/switch.py", line 47, in is_on
    return self._camera.status().power
  File "/config/custom_components/mycamera/my_camera.py", line 60, in status
    values = self.send("get_prop", properties)
  File "/usr/local/lib/python3.8/site-packages/miio/device.py", line 143, in send
    return self._protocol.send(
  File "/usr/local/lib/python3.8/site-packages/miio/miioprotocol.py", line 232, in send
    return self.send(
  File "/usr/local/lib/python3.8/site-packages/miio/miioprotocol.py", line 232, in send
    return self.send(
  File "/usr/local/lib/python3.8/site-packages/miio/miioprotocol.py", line 232, in send
    return self.send(
  File "/usr/local/lib/python3.8/site-packages/miio/miioprotocol.py", line 240, in send
    raise DeviceException("No response from the device") from ex
miio.exceptions.DeviceException: No response from the device
回复

使用道具 举报

24

主题

884

帖子

5055

积分

论坛元老

Rank: 8Rank: 8

积分
5055
金钱
4166
HASS币
20
发表于 2021-2-3 22:53:11 | 显示全部楼层
chenquanhao 发表于 2021-2-3 21:15
同外观的chuangmi.camera.ipc009表示用不了

更新:chuangmi.camera.ipc009测试能用了,刚刚是因为token不对,之前或许有些时间了也不知怎么的变了。

谢谢
回复

使用道具 举报

0

主题

273

帖子

2108

积分

金牌会员

Rank: 6Rank: 6

积分
2108
金钱
1835
HASS币
0
发表于 2021-8-10 11:57:42 | 显示全部楼层
这个开关HA升级后失效了,楼主能更新下吗,这个开关很好用,可以发去homekit,比较方便
回复

使用道具 举报

0

主题

24

帖子

414

积分

中级会员

Rank: 3Rank: 3

积分
414
金钱
390
HASS币
0
发表于 2021-9-3 16:06:40 | 显示全部楼层
ha版本2021.7.1用不了,大佬有空看下吧
回复

使用道具 举报

2

主题

50

帖子

334

积分

中级会员

Rank: 3Rank: 3

积分
334
金钱
284
HASS币
0
发表于 2022-2-19 21:09:14 | 显示全部楼层
有最新版本了吗
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-28 04:50 , Processed in 0.132543 second(s), 27 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表