Comments (6)
Do you config miot_did
in yaml (not gui) ?
Your miot_did
is number not string.
You can try:
# customize.yaml
camera.xiaomi_security_360_camera_control:
miot_cloud: true
video_attribute: 1
miot_did: '3699177XX' # or remove this line
I will fix this bug in next commit. (convert number to string)
from hass-xiaomi-miot.
configuration.yaml
homeassistant:
customize: !include customize.yaml
customize.yaml (Configuration > Customize > Select Entity > Add Other Attribute)
camera.entity_id:
video_attribute: 1 # #11 (comment)
from hass-xiaomi-miot.
In customize.yaml:
camera.xiaomi_security_360_camera_control:
miot_cloud: true
video_attribute: 1
miot_did: 3699177XX
Same error in debug log:
2021-02-17 09:52:41 DEBUG (MainThread) [homeassistant.components.http.view] Serving /api/camera_proxy_stream/camera.xiaomi_security_360_camera_control to 192.168.0.1 (auth: False)
2021-02-17 09:52:41 DEBUG (MainThread) [custom_components.xiaomi_miot.camera] Miot camera: Xiaomi Security 360 Camera Control url: None expired: 0
2021-02-17 09:52:41 DEBUG (SyncWorker_8) [root] Send request: {"params": {"did": 3699177XX, "siid": 4, "aiid": 1, "in": [1]}} to https://de.api.io.mi.com/app/miotspec/action
2021-02-17 09:52:41 DEBUG (SyncWorker_8) [root] Cookie: <Cookie channel=MI_APP_STORE for />
2021-02-17 09:52:41 DEBUG (SyncWorker_8) [root] Cookie: <Cookie dst_offset=0 for />
2021-02-17 09:52:41 DEBUG (SyncWorker_8) [root] Cookie: <Cookie is_daylight=1 for />
2021-02-17 09:52:41 DEBUG (SyncWorker_8) [root] Cookie: <Cookie locale=en_US for />
2021-02-17 09:52:41 DEBUG (SyncWorker_8) [root] Cookie: <Cookie serviceToken=zflYFTdnBcH9j9RC3QIv66m4HA20F51IdenIgIS+F3U+VrvOKPl1OFoAdH8wOtKSJBCPXm/UfjT2yXoLISwjP0hIK5CarS5Y6aGKT9v6bF6yNVr1ebTIEx620RHR9vZCJmiaDO68PNF7TSoIy75JR7B3lfevDudbSCvThfi3wXX= for />
2021-02-17 09:52:41 DEBUG (SyncWorker_8) [root] Cookie: <Cookie timezone=GMT+01:00 for />
2021-02-17 09:52:41 DEBUG (SyncWorker_8) [root] Cookie: <Cookie userId=902943XX for />
2021-02-17 09:52:41 DEBUG (SyncWorker_8) [root] Cookie: <Cookie yetAnotherServiceToken=zflYFTdnBcH9j9RC3QIv66m4HA20F51IdenIgIS+F3U+VrvOKPl1OFoAdH8wOtKSJBCPXm/UfjT2yXoLISwjP0hIK5CarS5Y6aGKT9v6bF6yNVr1ebTIEx620RHR9vZCJmiaDO68PNF7TSoIy75JR7B3lfevDudbSCvThfi3wXX= for />
2021-02-17 09:52:41 DEBUG (SyncWorker_8) [custom_components.xiaomi_miot.core.xiaomi_cloud] Request miot spec: action, params: {'did': 3699177XX, 'siid': 4, 'aiid': 1, 'in': [1]} to cloud failed: {"code":-8,"message":"data type not valid","result":null} None
2021-02-17 09:52:41 WARNING (SyncWorker_8) [custom_components.xiaomi_miot] Call miot action to Xiaomi Security 360 Camera Control ({'did': 3699177XX, 'siid': 4, 'aiid': 1, 'in': [1]}) failed: None
2021-02-17 09:52:41 DEBUG (MainThread) [custom_components.xiaomi_miot.camera] Get miot camera stream from cloud for Xiaomi Security 360 Camera Control: {}
2021-02-17 09:52:41 DEBUG (MainThread) [custom_components.xiaomi_miot.camera] Miot camera: Xiaomi Security 360 Camera Control url is empty. {'model': 'chuangmi.camera.ipc019', 'lan_ip': '192.168.1.XX', 'mac_address': '78:8B:2A:BC:D7:XX', 'firmware_version': '4.0.9_0426', 'hardware_version': 'Linux', 'entity_class': 'MiotCameraEntity', 'video_codec_type': None, 'video_attribute': None, 'audio_codec_type': None, 'audio_attribute': None, 'stream_address': None, 'stream_status': 1, 'authorization_type': None, 'image_snapshot': None, 'expiration_time': None, 'camera_control.on': True}
from hass-xiaomi-miot.
Same here with chuangmi.camera.ipc019
2021-02-18 21:27:27 INFO (MainThread) [custom_components.xiaomi_miot.camera] Initializing XiaomiCamera Camera Control with host 192.168.1.172 (token 4a5a6...)
2021-02-18 21:27:27 DEBUG (MainThread) [custom_components.xiaomi_miot.camera] Miot camera: XiaomiCamera Camera Control url: None expired: 0
2021-02-18 21:27:27 DEBUG (SyncWorker_6) [custom_components.xiaomi_miot.core.xiaomi_cloud] Request miot spec: action, params: {'did': 311361412, 'siid': 4, 'aiid': 1, 'in': [1]} to cloud failed: {"code":-8,"message":"data type not valid","result":null} None
2021-02-18 21:27:27 WARNING (SyncWorker_6) [custom_components.xiaomi_miot] Call miot action to XiaomiCamera Camera Control ({'did': 311361412, 'siid': 4, 'aiid': 1, 'in': [1]}) failed: None
2021-02-18 21:27:27 DEBUG (MainThread) [custom_components.xiaomi_miot.camera] Get miot camera stream from cloud for XiaomiCamera Camera Control: {}
2021-02-18 21:27:34 DEBUG (MainThread) [custom_components.xiaomi_miot.camera] Miot camera: XiaomiCamera Camera Control url: None expired: 0
2021-02-18 21:27:34 DEBUG (SyncWorker_0) [custom_components.xiaomi_miot.core.xiaomi_cloud] Request miot spec: action, params: {'did': 311361412, 'siid': 4, 'aiid': 1, 'in': [1]} to cloud failed: {"code":-8,"message":"data type not valid","result":null} None
2021-02-18 21:27:34 WARNING (SyncWorker_0) [custom_components.xiaomi_miot] Call miot action to XiaomiCamera Camera Control ({'did': 311361412, 'siid': 4, 'aiid': 1, 'in': [1]}) failed: None
2021-02-18 21:27:34 DEBUG (MainThread) [custom_components.xiaomi_miot.camera] Get miot camera stream from cloud for XiaomiCamera Camera Control: {}
from hass-xiaomi-miot.
Yes, miot_did configured in yaml.
Thank you, that was the trick :) Now my all 3 camera is working fine with stream. Excellent!
from hass-xiaomi-miot.
Also confirm!
Camera working!
I removed "miot_did:" and "video_attribute:" from customize.yaml and that fixed it!
Thanks for your work!
from hass-xiaomi-miot.
Related Issues (20)
- Sending the command set_cover "on" a second time doesn't open the toilet ring HOT 1
- 邦先生M33A电动晾衣架最大最低色温值反了
- Request: Display On/Off for Qingping Air Monitor Lite - cgd1st
- 为什么我的净水器没有tds数值 HOT 1
- Devices offline HOT 2
- Xiaomi SmartMi Fan does not support Color Mode
- 小米人体存在传感器无法获取全部属性,且有错误 HOT 2
- 绿米窗帘 现在开合度 和 目标开合度 有时候会掉线 HOT 2
- lumi.acpartner.mcn02 空调无法使用climate.turn_on服务打开空调
- homeassistant更新到2024.7.4后,设备配置的interval_seconds修改不生效
- ipv6无法发起外部请求 HOT 5
- Problems with the dot in the device attribute name HOT 6
- Implementation of icon support for fan presets
- Automatic filter_left_time Update Issue with mmgg.pet_waterer.wi11
- 新增设备是在哪里新增的
- 请求支持 大金空调/新风(米家新支持可以连接大金了) HOT 6
- dmaker.fan.p28长期以来大量制造错误日志
- interval_seconds 不生效
- Fan speed language is in china HOT 1
- 小米鱼缸更新1.10.0074后失效
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hass-xiaomi-miot.