-
-
Notifications
You must be signed in to change notification settings - Fork 705
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
新增 camera 似乎不支持小白摄像头 chuangmi.camera.ipc016 #11
Comments
在miot-spec中未发现名为 |
明白了,我清楚应该查看什么 miot-spec 确认了 |
Hi, with an "isa.camera.hlc6" camera (firmware_version: 4.0.5_0105) I had to modify the /xiaomi_miot/init.py line 277 as the hardware version was not found (just modify it to 'hardware_version': 'dummy', ) Therefore I was able to see in Home Assistant an entity called "<camera_alias> Camera Control" but without any success to display image. Should I customized this entity ? You got an example on how to get RSTP ? |
@fboulange Do you enable miot-cloud? |
|
@fboulange @TheBisk I need debug logs of your camera entity. |
I use this in my configuration.yaml camera:
Here is the debug log `2021-02-02 09:25:10 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for xiaomi_miot 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. 2021-02-02 09:25:10 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for 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. 2021-02-02 09:25:23 DEBUG (MainThread) [custom_components.xiaomi_miot] Xiaomi Miot async_setup_entry {'entry_id': '94a21ae99011cd2f1fa05eb992025ec0', 'unique_id': '44:23:7c:e8:XX:XX', 'config': {'host': '192.168.0.48', 'token': '48475874726c4137594e39724cXXXXXX', 'name': 'CameraJardin', 'model': 'isa.camera.hlc6', 'mode': [], 'miot_type': 'urn:miot-spec-v2:device : camera : 0000A01C:isa-hlc6:1', 'miio_info': {'life': 6244, 'model': 'isa.camera.hlc6', 'token': '48475874726c4137594e39724cXXXXXX', 'ipflag': 1, 'miio_ver': '0.0.8', 'mac': '44:23:7C:E8::', 'fw_ver': '4.0.9_0112', 'hw_ver': 'Linux', 'miio_client_ver': '4.0.9', 'VmPeak': 42692, 'VmRSS': 1252, 'MemFree': 1756, 'ap': {'ssid': 'Boulange', 'bssid': '68:A3:78:D4:XX:XX', 'rssi': '-61', 'freq': 0}, 'netif': {'localIp': '192.168.0.48', 'mask': '255.255.255.0', 'gw': '192.168.0.254'}, 'miio_times': [6244, 1, 91, 6142]}, 'config_entry': <homeassistant.config_entries.ConfigEntry object at 0x7463b398>}, 'miio': {'life': 6244, 'model': 'isa.camera.hlc6', 'token': '48475874726c4137594e39724cXXXXXX', 'ipflag': 1, 'miio_ver': '0.0.8', 'mac': '44:23:7C:E8:XX:XX', 'fw_ver': '4.0.9_0112', 'hw_ver': 'Linux', 'miio_client_ver': '4.0.9', 'VmPeak': 42692, 'VmRSS': 1252, 'MemFree': 1756, 'ap': {'ssid': 'Boulange', 'bssid': '68:A3:78:D4:XX:XX', 'rssi': '-61', 'freq': 0}, 'netif': {'localIp': '192.168.0.48', 'mask': '255.255.255.0', 'gw': '192.168.0.254'}, 'miio_times': [6244, 1, 91, 6142]}} 2021-02-02 09:25:24 INFO (MainThread) [custom_components.xiaomi_miot.camera] Initializing CameraJardin Camera Control with host 192.168.0.48 (token 48475...) 2021-02-02 09:25:25 DEBUG (MainThread) [custom_components.xiaomi_miot.camera] Miot camera: CameraJardin Camera Control url: None expired: 0 2021-02-02 09:25:25 DEBUG (MainThread) [custom_components.xiaomi_miot.camera] Get miot camera stream from lan for CameraJardin Camera Control: {} 2021-02-02 09:26:25 DEBUG (MainThread) [custom_components.xiaomi_miot] Got new state from CameraJardin Camera Control: {}, updater: lan 2021-02-02 09:27:25 DEBUG (MainThread) [custom_components.xiaomi_miot] Got new state from CameraJardin Camera Control: {}, updater: lan 2021-02-02 09:28:25 DEBUG (MainThread) [custom_components.xiaomi_miot] Got new state from CameraJardin Camera Control: {}, updater: lan |
Enable miot_cloud: # configuration.yaml
homeassistant:
customize: !include customize.yaml
xiaomi_miot:
username: xiaomi_username
password: xiaomi_password
# customize.yaml (Configuration > Customize > Select Entity > Add Other Attribute)
climate.xiaomi_mc5_374e: # Your entity id
miot_cloud: true # Enabled cloud |
"true" is ok. Add config for xiaomi_miot: # configuration.yaml
xiaomi_miot:
username: xiaomi_username
password: xiaomi_password
server_country: de You can use a player such as VLC to play within 5 minutes of generating the stream address. |
你好,我手头还有一个小米摄像机云台版 2K,型号是 不过我发现,在设备调试助手这个页面中,虽然没有直接俄的 start-hls-stream,但是在 |
开启miot_cloud后仍出现-9999是HA刚启动实例还没准备好,所有调用的还是局域网。#5 (comment) |
我刚刚重新配置了一次,虽然依然不能用,不过错误代码更新了,具体如下:
我的 customize 里面的配置如下:
configuration.yaml 中的配置如下:
siid 7 为: |
请在小米设备调试助手中执行 |
可以获取到 stream-address,虽然轮廓什么的倒是没有问题,但是画面是绿的,不过这个应该不影响到 HA 什么。 此外,我的设备每次调用 start-hls-stream 的时候,米家都会通知 |
需要更多的HA日志 |
我不确定这样的日志是否可以:
上述 WARNING 会重复多次 |
对了,如果我从 HomeKit 里面的摄像头调用,会产生如下日志,不知是否有帮助:
|
miot_cloud 没有开启成功。如果开启成功。日志中应该会找到 |
Thanks @al-one ! The country FR was not working.
It is not really smooth but at least I've got a feed ! |
可是没道理这样呀,空调伴侣 MCN02 和小爱音箱均通过 miot_cloud 参数成功链接,我应该如何确认这一点呢? |
|
Many thanks for your work @al-one. I have one problem and one question: |
@TheBisk I have same screen with cams that has a weak wi-fi connection... |
太遗憾了,我发现日志里面并没有相关的信息。
我决定先暂且停止调试,也许后面我重新创建一个 HA全新的实例能解决问题。
Alone <notifications@github.com>于2021年2月3日 周三19:44写道:
可是没道理这样呀,空调伴侣 MCN02 和小爱音箱均通过 miot_cloud 参数成功链接,我应该如何确认这一点呢?
[custom_components.xiaomi_miot] Got new state from ... updater: cloud
启动HA并运行几分钟后检查日志中该实体的updater是否为cloud。
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACO4PHLLIGCODDOPC3IINYTS5EZIJANCNFSM4W3LC3LQ>
.
--
发自移动版 Gmail
|
@valdi-sudo This component doesn't support your cameras ( |
|
Also have the same "data type not valid" problem with chuangmi.camera.ipc019
|
|
I believe that your problem is h265 codec. Modern browsers except safary doesn't support it. If you try to open this card on the ha companion app, you'll be able to see the stream. |
Hi, I have following errors in log:
Can you please help me diagnose? |
怎么添加摄像头啊 看了一圈 没看懂 |
請問當前版本支持chuangmi.camera.ipc019 嗎? 我遇到的問題是, 串流影片只能看前幾分鐘, 之後串流影片就一直停留在同一時間點不再更新. 嘗試很多設置的改變, 但是一直無法解決串流沒法持續更新的問題, 請問哪裡設置有誤嗎? 謝謝. access_token: stream_address: |
@PrzemekSkw You can enable the |
Thanks for answer but that don't help. Still don't have any picture from camera. I can turn it OFF and ON with switch. camera.chuangmi_ipc016_aa6d_camera_control
Niania | idle |
access_token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
brand: chuangmi
model: chuangmi.camera.ipc016
lan_ip: 192.168.0.11
mac_address: 5D:A5:0C:89:AB:6D
firmware_version: 164.1.6_0407
hardware_version:
entity_class: MiotCameraEntity
miot_type: urn:miot-spec-v2:device:camera:0000A01C:chuangmi-ipc016:1
camera_control.on: true
camera_control.image_rollover: 0
camera_control.night_shot: 0
camera_control.time_watermark: true
camera_control.wdr_mode: false
glimmer_full_color-2-6: false
camera_control.recording_mode: 3
camera_control.motion_tracking: false
state_updater: cloud
sub_entities: camera_control.on
friendly_name: Niania
entity_picture: /api/camera_proxy/camera.chuangmi_ipc016_aa6d_camera_control?token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
supported_features: 1 Regards |
i have the same issue and cannot get the image from mine chuangmi.camera.ip026c, logs and developer tools are similar i've also tried this #173 (comment) but it does not help |
Hi @al-one is there a plans to make my Imilab camera (CMSXJ16A, chuangmi.camera.ipc016) works, to get live stream? I still have no live stream only switch button to turn on/off camera. |
FYI i have same issue also with |
智能门铃是不能实时查看吗 |
I get video, butt keeps only for about 10 sec, then goes from begining, over and over again |
In # configuration.yaml
I live in Vietnam and use "CN" server in Mihome app settings
But it can't display the video stream, please help me. Where did I go wrong? My camera: Chuangmi.ipc019
Error from stream worker: Error opening stream (HTTP_FORBIDDEN, Server returned 403 Forbidden (access denied)) https://cn01.livestreaming.io.mi.com/hlstranscoder/GCBkZDNiNTY1MmQ3YmQ0MGFlOWI2MDM5ODQ5OGI4MjU1NhgKX191bnVzZWRfXwA_H265transH264/playlist.m3u8 |
Hello please help me, my camera model is chuangmi.camera.039a04 |
看到最近的一次提交显示支持 camera 设备了。
然而将我的小白摄像头 chuangmi.camera.ipc016 配置到集成中之后,会显示为不可用,点击设备也没有预览。
进入日志显示 -9999。
采用 customize 设置云端登陆,设备会从不可用显示为休眠,但设备实际并不处于休眠模式。预览界面和上面保持一致。
此外配置过摄像机后,侧边栏会有登陆的提醒。
该问题是否是因为我的摄像头不支持所致?如果是这样的话,不知是否有已知兼容良好的摄像头可以选择?因为家中正巧打算购入新的设备。
The text was updated successfully, but these errors were encountered: