question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

chuangmi.camera.ipc019 - data type not valid

See original GitHub issue

I have 3 camera (2 chuangmi.camera.ipc019 and 1 mijia.camera.v3).

mijia.camera.v3 is working fine. But the remain 2 chuangmi.camera.ipc019 is not working. Can you please help me to set it up?

Cloud enabled, “did” is set in customize.

2021-02-16 11:59:14 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-16 11:59:14 DEBUG (MainThread) [custom_components.xiaomi_miot.camera] Miot camera: Xiaomi Security 360 Camera Control url: None expired: 0
2021-02-16 11:59:14 DEBUG (SyncWorker_1) [root] Send request: {"params": {"did": 3699177XX, "siid": 4, "aiid": 1, "in": [3]}} to https://de.api.io.mi.com/app/miotspec/action
2021-02-16 11:59:14 DEBUG (SyncWorker_1) [root] Cookie: <Cookie channel=MI_APP_STORE for />
2021-02-16 11:59:14 DEBUG (SyncWorker_1) [root] Cookie: <Cookie dst_offset=0 for />
2021-02-16 11:59:14 DEBUG (SyncWorker_1) [root] Cookie: <Cookie is_daylight=1 for />
2021-02-16 11:59:14 DEBUG (SyncWorker_1) [root] Cookie: <Cookie locale=None for />
2021-02-16 11:59:14 DEBUG (SyncWorker_1) [root] Cookie: <Cookie serviceToken=GwA2RN1gXG7ClJ19XwEW+btRcX07YFyb4H2jcgc36edRWTB/b+5S7o42JQJKPtMdpAIGjCo+JKlWrxLDON3KBQsfOyDOPqxCv5StMpGtiX5kQrYGTzqglZiOXpCOeqnozXVZKYdHpG5iIQ9GKvJ0E/JlsjvRh2yNj9IwcP8LBDY= for />
2021-02-16 11:59:14 DEBUG (SyncWorker_1) [root] Cookie: <Cookie timezone=GMT+01:00 for />
2021-02-16 11:59:14 DEBUG (SyncWorker_1) [root] Cookie: <Cookie userId=902943XX for />
2021-02-16 11:59:14 DEBUG (SyncWorker_1) [root] Cookie: <Cookie yetAnotherServiceToken=GwA2RN1gXG7ClJ19XwEW+btRcX07YFyb4H2jcgc36edRWTB/b+5S7o42JQJKPtMdpAIGjCo+JKlWrxLDON3KBQsfOyDOPqxCv5StMpGtiX5kQrYGTzqglZiOXpCOeqnozXVZKYdHpG5iIQ9GKvJ0E/JlsjvRh2yNj9IwcP8LBXX= for />
2021-02-16 11:59:14 DEBUG (SyncWorker_1) [custom_components.xiaomi_miot.core.xiaomi_cloud] Request miot spec: action, params: {'did': 3699177XX, 'siid': 4, 'aiid': 1, 'in': [3]} to cloud failed: {"code":-8,"message":"data type not valid","result":null} None
2021-02-16 11:59:14 WARNING (SyncWorker_1) [custom_components.xiaomi_miot] Call miot action to Xiaomi Security 360 Camera Control ({'did': 3699177XX, 'siid': 4, 'aiid': 1, 'in': [3]}) failed: None
2021-02-16 11:59:14 DEBUG (MainThread) [custom_components.xiaomi_miot.camera] Get miot camera stream from cloud for Xiaomi Security 360 Camera Control: {}
2021-02-16 11:59:14 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}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
al-onecommented, Feb 19, 2021

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)

0reactions
genericmanncommented, Feb 19, 2021

Also confirm! Camera working! I removed “miot_did:” and “video_attribute:” from customize.yaml and that fixed it!

Thanks for your work!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Xiaomi Smart 1080P WiFi IP Camera with RTSP Streaming Hack
It has a slot for an SD card and supports WiFi but unfortunately provides no Ethernet connection. As mentioned earlier, it is intended...
Read more >
How do I add an unsupported IP camera to Surveillance ...
To add cameras that are not in the Synology IP Camera Support List, you can use the Generic/ONVIF setup to apply basic camera...
Read more >
Chuangmi camera - Hardware - Home Assistant Community
I'm interested on writing a firmware for that device, but I have no time at this moment.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found