-
-
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
Mi 360° Home Security Camera 2K Pro (chuangmi.camera.021a04) #50
Comments
Unfortunately, there is no success. |
1. Get Entity State Attributes
2. Get Debug Logs# configuration.yaml
logger:
default: warning
logs:
custom_components.xiaomi_miot: debug |
That's all I found. The other devices work. 2K Camera has absolutely no entity 2021-04-11 11:40:37 DEBUG (MainThread) [custom_components.xiaomi_miot] Xiaomi cloud device: {'name': 'Mi 360° Home Security Camera 2K Pro', 'host': '192.168.0.140', 'token': '', 'model': 'chuangmi.camera.021a04', 'miot_did': '0123145679', 'miot_type': 'urn:miot-spec-v2:device:camera:0000A01C:chuangmi-021a04:1', 'miio_info': {'ap': {'ssid': 'WIFI', 'bssid': '00:00:00:00:00:00', 'rssi': -45}, 'netif': {'localIp': '192.168.0.140', 'gw': '', 'mask': ''}, 'fw_ver': '4.1.2_0282', 'hw_ver': '', 'mac': '11:22:33:44:55:66', 'model': 'chuangmi.camera.021a04', 'token': '...secret token...'}, 'miot_cloud': True, 'entry_id': '123asd456fgh'} 2021-04-11 11:45:00 DEBUG (MainThread) [custom_components.xiaomi_miot] Xiaomi Miot update options: {'username': '.......@.....com', 'server_country': 'de', 'user_id': 60000009, 'filter_model': 'include', 'model_list': ['mijia.camera.v3', 'philips.light.hbulb', 'chuangmi.camera.ipc019', 'chuangmi.camera.021a04'], 'filter_ssid': 'exclude', 'ssid_list': [], 'filter_bssid': 'exclude', 'bssid_list': []} 2021-04-11 11:45:00 DEBUG (MainThread) [custom_components.xiaomi_miot] Xiaomi cloud device: {'name': 'Mi 360° Home Security Camera 2K Pro', 'host': '192.168.0.140', 'token': '', 'model': 'chuangmi.camera.021a04', 'miot_did': '0123145679', 'miot_type': 'urn:miot-spec-v2:device:camera:0000A01C:chuangmi-021a04:1', 'miio_info': {'ap': {'ssid': 'WIFI', 'bssid': '00:00:00:00:00:00', 'rssi': -45}, 'netif': {'localIp': '192.168.0.140', 'gw': '', 'mask': ''}, 'fw_ver': '4.1.2_0282', 'hw_ver': '', 'mac': '11:22:33:44:55:66', 'model': 'chuangmi.camera.021a04', 'token': '...secret token...'}, 'miot_cloud': True, 'entry_id': '123asd456fgh'} |
Your device model
Version 1 has no actiion: Please check whether your local file hass-xiaomi-miot/custom_components/xiaomi_miot/core/miot_spec.py Lines 76 to 84 in 3788f26
This code will use the highest version of miot-spec, but your log still display to use the lower version. |
Delete this local file: |
Thank you very much. This helped. The entities were created. I only have 1 problem, no stream. |
State attributes and debug logs. |
2021-04-13 18:51:00 DEBUG (MainThread) [custom_components.xiaomi_miot] Xiaomi cloud device: {'name': 'Mi 360° Home Security Camera 2K Pro', 'host': '192.168.0.140', 'token': '', 'model': 'chuangmi.camera.021a04', 'miot_did': '0123145679', 'miot_type': 'urn:miot-spec-v2:device:camera:0000A01C:chuangmi-021a04:2', 'miio_info': {'ap': {'ssid': 'WIFI', 'bssid': '00:00:00:00:00:00', 'rssi': -45}, 'netif': {'localIp': '192.168.0.140', 'gw': '', 'mask': ''}, 'fw_ver': '4.1.2_0282', 'hw_ver': '', 'mac': '11:22:33:44:55:66', 'model': 'chuangmi.camera.021a04', 'token': '...secret token...'}, 'miot_cloud': True, 'entry_id': '123asd456fgh'} 2021-04-13 18:53:49 DEBUG (MainThread) [custom_components.xiaomi_miot.camera] Miot camera: Mi 360° Home Security Camera 2K Pro Camera Control url is empty. {'model': 'chuangmi.camera.021a04', 'lan_ip': '192.168.0.140', 'mac_address': '11:22:33:44:55:66', 'firmware_version': '4.1.2_0282', 'hardware_version': '', 'entity_class': 'MiotCameraEntity', 'miot_type': 'urn:miot-spec-v2:device:camera:0000A01C:chuangmi-021a04:2', 'miot_action_result': {'did': '0123456789', 'miid': 0, 'siid': 7, 'aiid': 1, 'code': -704220035, 'exe_time': 0, 'net_cost': 0, 'ot_cost': 0, 'otlocalts': 0, 'oa_cost': 0, '_oa_rpc_cost': 0}, 'stream_status': 1, 'motion_detection': False, 'motion_detection.alarm_interval': 5, 'detection_sensitivity': 1, 'motion_detection_start_time': '0:0:0', 'motion_detection_end_time': '23:59:0', 'memory_card_management.status': 0, 'storage_total_space': 15106048, 'storage_free_space': 3866624, 'storage_used_space': 11239424, 'indicator_light.on': False, 'camera_control.on': True, 'camera_control.image_rollover': 0, 'camera_control.night_shot': 2, 'camera_control.wdr_mode': False, 'glimmer_full_color': True, 'camera_control.recording_mode': 1, 'camera_control.motion_tracking': False, 'camera_control.time_watermark': True, 'state_updater': 'cloud', 'sub_entities': ['camera_control.on', 'motion_detection-5.motion_detection-1', 'indicator_light-3']} |
# customize.yaml (Configuration > Customize > Select Entity > Add Other Attribute)
camera.entity_id:
video_attribute: 2 |
Thank you very much. That way it works perfectly. |
@Benny2102 did you face an issue 500 server error when trying to view the stream from the camera? |
|
@al-one maybe you can give some tips? |
@khmyznikov No idea for live streaming. |
Hello, @al-one! I have some issue with this cam camera.chuangmi_021a04 (MJSXJ06CM). Ffmpeg with url https://ru.livestreaming.io.mi.com/hlstranscoder/GCA1NmI3MTFiYTBlYfXwA_H265transH264/playlist.m3u8 got this error: Here is my entity info: camera_control.on: true Tested some tips with customize.yaml, dont work. :( |
adding some logs: Logger: custom_components.xiaomi_miot.camera Mi 360° Home Security Camera 2K Pro(chuangmi.camera.021a04): camera events is empty. {'result': 'ok', 'retriable': False, 'code': 0, 'data': {'thirdPartPlayUnits': [], 'nextTime': 1681654689000, 'isContinue': True}, 'description': '成功', 'ts': 1682259489680} Logger: homeassistant.components.stream.stream.camera.chuangmi_021a04_461f_camera_control Error from stream worker: Error opening stream (ERRORTYPE_111, Connection refused) https://ru.livestreaming.io.mi.com/hlstranscoder/GCA1NmI3MTFiYT_H265transH264/playlist.m3u8 |
Hej, any success with this camera? Have same issues with streaming.. |
I bought a camera. You have not created an entity. Is it possible to add?
The text was updated successfully, but these errors were encountered: