al-one / hass-xiaomi-miot

Automatic integrate all Xiaomi devices to HomeAssistant via miot-spec, support Wi-Fi, BLE, ZigBee devices. 小米米家智能家居设备接入Hass集成
https://miot-spec.com
Apache License 2.0
4.46k stars 626 forks source link

Camera mxiang.camera.mod11 (aw300) does not display image #1512

Open guihsabino opened 8 months ago

guihsabino commented 8 months ago

Device model / 设备型号

mxiang.camera.mod11

Component version / 插件版本

0.7.15

HA core version / HA版本

2023.12.1

Integrated mode / 集成方式

Automatic (自动模式)

The problem / 问题详情

Xiaomi camera mxiang.camera.mod11 (aw300) correctly configured using the plugin, does not display its image. It has already displayed once or twice, but it works whenever it wants and most of the time it is idle. This camera appears on the website as one of the models supported by the plugin.

Status Camera Configs Camera Suporte da Camera

Entity attributes / 实体属性

friendly_name: Câmera Frente supported_features: 2 entity_picture: /api/camera_proxy/camera.mxiang_mod11_284d_camera_control?token=dcd77752a2519faacb61a7c45ce78ea088e7742c2c5296fd5c14a7b7a9010f52 access_token: dcd77752a2519faacb61a7c45ce78ea088e7742c2c5296fd5c14a7b7a9010f52 model_name: mxiang.camera.mod11 brand: mxiang frontend_stream_type: hls model: mxiang.camera.mod11 lan_ip: 192.168.15.38 mac_address: a4:ef:15:2e:28:4d entity_class: MiotCameraEntity home_room: Casa Frente miot_type: urn:miot-spec-v2:device:camera:0000A01C:mxiang-mod11:1 camera_control.image_rollover: 180 camera_control.night_shot: 1 camera_control.time_watermark: true camera_control.wdr_mode: true camera_control_sub.status_light: true distortion_correct-4-2: true brightness_light-4-3: 100 audible_alarm_switch-4-4: false audible_alarm_sound-4-5: 0 audible_sound_count-4-6: 6 audible_sound_volume-4-7: 60 audible_light_switch-4-8: true audible_light_mode-4-9: 1 audible_light_bright-4-10: 100 audible_light_period-4-11: 1|2|3|4|5|6|7 audible_light_st-4-12: 00:00:00 audible_light_et-4-13: 23:59:59 audible_sound_time-4-14: 0 white_light_switch-4-15: 0 two_way_talk_volume-4-16: 90 ele_fence_switch-4-17: false ele_fence_spoce-4-18: 10|20|80|60 ele_fence_conditions-4-19: 0 ele_fence_period-4-20: 1|2|3|4|5|6|7 camera_control_sub.ele_fence_st: 00:00:00 camera_control_sub.ele_fence_et: 23:59:59 motion_detect_period-4-23: 1|2|3|4|5|6|7 power_freq_switch-4-24: 50 audible_light_allday-4-25: true ele_fence_allday-4-26: true motion_detect_allday-4-27: true ele_fence_alarm-4-28: false audible_sound_ai-4-29: 0 motion_detection: true motion_detection.alarm_interval: 10 detection_sensitivity-5-3: 0 motion_detection_start_time-5-4: 00:00:00 motion_detection_end_time-5-5: 23:59:59 memory_card_management.status: 1 storage_total_space-3-2: 0 storage_free_space-3-3: 0 storage_used_space-3-4: 0 state_updater: lan sub_entities: memory_card_management-3.status-1, memory_card_management-3.storage_free_space-3, memory_card_management-3.storage_used_space-4, camera_control-2.time_watermark-4, camera_control-2.wdr_mode-5, motion_detection-5.motion_detection-1, camera_control-2.image_rollover-2, motion_detection-5.alarm_interval-2, camera_control-2.night_shot-3, motion_detection-5.detection_sensitivity-3 motion_video_time: 2024-01-24 14:08:51.225000 motion_video_type: ObjectMotion stream_address: https://business.smartcamera.api.io.mi.com/common/app/m3u8?data=iWuj1lJ9690MdVvdn9dHv7jdJCXyu%2FtEDX%2BrjKEaSSUQMYThlViVK5ah4yMIcSOMGguRpPUZ3GPfnrIBYwj51Ta5fESCOgMIT5%2FyS86pJObWt8QWhx5KDIvbapks5WnXMa%2BA6i9T5X0T0MBopi27hEwWtQ%3D%3D&rc4_hash__=giaN5X82tpdON1uX27cKsbaGR2KygNwTHEu9iw%3D%3D&signature=VuhNJC%2BaLICZ2UdyuSTS0qKTl2I%3D&ssecurity=9Z4DNt%2BtZWK2X0jZJ1ZJJw%3D%3D&_nonce=xGY5udCE78QBseNG&yetAnotherServiceToken=4bgC9dS6RAmyIdjgE6PyhQgBn6SJB8TOGfc8qL1maUEf4kAZZOk%2F5a341l2qqfjH067qOrAnplzYU5w6Jv1S7p97W%2BYetYOh80yxp7wKtPrW2sXWG5GXV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T05%2B8jA8FQ%3D%3D&signature=DvxWfwqareLnKp9q2vrH87MZ2Y0%3D&ssecurity=9Z4DNt%2BtZWK2X0jZJ1ZJJw%3D%3D&_nonce=xjsDcvhxXw4BseNG&yetAnotherServiceToken=4bgC9dS6RAmyIdjgE6PyhQgBn6SJB8TOGfc8qL1maUEf4kAZZOk%2F5a341l2qqfjH067qOrAnplzYU5w6Jv1S7p97W%2BYetYOh80yxp7wKtPrW2sXWG5GXVjPERtScF3pnQs7StSAhacmmuG6%2BzffjkO8j3VcRy50AuZTxElzRXiA%3D motion_video_latest: startDuration: 0 cut: false offset: 0 isCloud: false isRead: false videoStoreId: >- CAMERA_VIDEO_GOACoKhm8mZyK-EWI9Oj3awaTqqcCFybeGXucVtohXbw7wW9aiXsJvkLNkJH760GwwoNiRZdfmAP7a-HMbPqyJSJcbbLdnQLPYECpwHbd6_jx0DT-5AYP0CXxfTxrSW6UY6zs10p-TiX-X1Dj0_TaGlAlPLXbe4acrlF9244iZnKfenyEvTdt8zddiqmo_Rhup5Hv7ZIRvpE-veWw60UC0UWHF6TCdoits1FAvcJnQBCOLE1WSEM0If6ukze6AIjo7ykeIUlpJEjt1Gbok6-PW28NVXzT6txcDoaAMJyOH26SZgqUlYs5wXPX7uu_U0q4_EZxPXdmHvqOgSqlN4ZMZ4BV2byK-A2KGjl12C6puZUWE_scnbA0NJUNyzj_s-WAIv2nRorj9gAWyvh-nqpresKBbLvPvZNadnkn0Z4LJnGlUCYnzxyRxZg5e2YWeLbk60KHd_ISRNSf3c2Hz7y_n4LmBgSq7pDxrJOTsOiUHI7v6R85dsBGBCDU23DIK1xTx6jQ_gu5BoWGBQeerSlMIBDHdOCY5R8YHlhQ0B1IgA eventType: ObjectMotion expireTime: 1706720951315 isAlarm: true isShowImg: true location: ks3 imgStoreId: >- CAMERA_IMG_GOACoKhm8mZyK-EWI9Oj3awaTqqcCFybeGXucVtohXbw7wW9aiXsJvkLNkJH760GwwoNiRZdfmAP7a-HMbPqyJSJcbbLdnQLPYECpwHbd6_jx0DT-5AYP0CXxfTxrSW6UY6zs10p-TiX-X1Dj0_TaGlAlPLXbe4acrlF9244iZnKfenyEvTdt8zddiqmo_Rhup5Hv7ZIRvpE-veWw60UC0UWHF6TCdoits1FAvcJnQBCOLE1WSEM0If6ukze6AIjo7ykeIUlpJEjt1Gbok6-PW28NVXzT6txcDoaAMJyOH26SZgqUlYs5wXPX7uu_U0q4_EZxPXdmHvqOgSqlN4ZMZ4BV2byK-A2KGjl12C6puZUWE_scnbA0NJUNyzj_s-WAIv2nRorj9gAWyvh-nqpresKBbLvPvZNadnkn0Z4LJnGlUCYnzxyRxZg5e2YWeLbk60KHd_ISRNSf3c2Hz7y_n4LmBgSq7pDxrJOTsOiUHI7v6R85dsBGBCDU23DIK1xTx6jQ_gu5BoWGBQeerSlMIBDHdOCY5R8YHlhQ0B1IgA fileId: '102526045425566848' extraInfo: '{"ver":"1.0.0","alarmStart":true,"eventType":"ObjectMotion"}'

Home Assistant Logs / 系统日志

home-assistant_2024-01-24T17-19-41.642Z.log home-assistant_2024-01-24T17-32-08.126Z.log

SerMirak commented 7 months ago

still not working ?

Bhoft commented 5 months ago

Hi i have also added the AW300 through the hass-xiaomi-miot to my Home assistant and also doesn't get an Image. If i switch the Watermark through HA i see in the Mi-Home App that the watermark is disabled. So connection seems to be working correctly.

I have added the camera first to my Xiaomi Home App and through my account via the hass-xiaomi-miot to my home assistant.

I wonder why otherwise the camera is named "mxiang-mod11" and in the log files it is named like "mxiang.camera.mod13"? But i guess this is just the Name of the EU Version. https://home.miot-spec.com/s/mxiang.camera.mod11 https://home.miot-spec.com/s/mxiang.camera.mod13

i got this log entries:

Logger: custom_components.xiaomi_miot.sensor
Quelle: custom_components/xiaomi_miot/sensor.py:853
Integration: Xiaomi Miot Auto (Dokumentation, Probleme)
Erstmals aufgetreten: 13:07:55 (1 Vorkommnisse)
Zuletzt protokolliert: 13:07:55
Get xiaomi scene history for 1743072117 48001030994 failed: {'code': 0, 'message': '成功', 'result': {'history': []}}

Logger: homeassistant.helpers.entity
Quelle: helpers/entity.py:1607
Erstmals aufgetreten: 13:07:55 (1 Vorkommnisse)
Zuletzt protokolliert: 13:07:55
Entity camera.mxiang_mod13_57fe_camera_control (<class 'custom_components.xiaomi_miot.camera.MiotCameraEntity'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <CameraEntityFeature: 0>, please create a bug report at https://github.com/al-one/hass-xiaomi-miot/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation

Logger: homeassistant.helpers.entity
Quelle: helpers/entity.py:1238
Erstmals aufgetreten: 13:11:05 (2 Vorkommnisse)
Zuletzt protokolliert: 13:13:05
Update of camera.mxiang_mod13_57fe_camera_control is taking over 10 seconds

Logger: homeassistant.components.camera
Quelle: components/camera/__init__.py:902
Integration: Kamera (Dokumentation, Probleme)
Erstmals aufgetreten: 13:12:26 (4 Vorkommnisse)
Zuletzt protokolliert: 13:19:45
Error requesting stream: camera.mxiang_mod13_57fe_camera_control does not support play stream service

Logger: custom_components.xiaomi_miot.camera
Quelle: custom_components/xiaomi_miot/camera.py:304
Integration: Xiaomi Miot Auto (Dokumentation, Probleme)
Erstmals aufgetreten: 13:08:55 (17 Vorkommnisse)
Zuletzt protokolliert: 13:25:00
Xiaomi Outdoor Camera AW300(mxiang.camera.mod13): camera events is empty. {'result': 'ok', 'retriable': False, 'code': 0, 'data': {'thirdPartPlayUnits': [], 'nextTime': 1712143260000, 'isContinue': True}, 'description': '成功', 'ts': 1712748060630}
Xiaomi Outdoor Camera AW300(mxiang.camera.mod13): camera events is empty. {'result': 'ok', 'retriable': False, 'code': 0, 'data': {'thirdPartPlayUnits': [], 'nextTime': 1712143320000, 'isContinue': True}, 'description': '成功', 'ts': 1712748120624}
Xiaomi Outdoor Camera AW300(mxiang.camera.mod13): camera events is empty. {'result': 'ok', 'retriable': False, 'code': 0, 'data': {'thirdPartPlayUnits': [], 'nextTime': 1712143380000, 'isContinue': True}, 'description': '成功', 'ts': 1712748180656}
Xiaomi Outdoor Camera AW300(mxiang.camera.mod13): camera events is empty. {'result': 'ok', 'retriable': False, 'code': 0, 'data': {'thirdPartPlayUnits': [], 'nextTime': 1712143440000, 'isContinue': True}, 'description': '成功', 'ts': 1712748240648}
Xiaomi Outdoor Camera AW300(mxiang.camera.mod13): camera events is empty. {'result': 'ok', 'retriable': False, 'code': 0, 'data': {'thirdPartPlayUnits': [], 'nextTime': 1712143500000, 'isContinue': True}, 'description': '成功', 'ts': 1712748300648}

forgot to give details about my HA installation versions

Core 2024.4.2
Supervisor 2024.04.0
Operating System 12.1
Frontend 20240404.1
Ziperro commented 5 months ago

Not working for me either.

mrsofa commented 3 months ago

Is there any progress on this or dead?

madneal commented 3 months ago

so it will not display the video in real time? only a static image

mrsofa commented 2 months ago

so it will not display the video in real time? only a static image

None of the above.

szaboazoltan commented 2 months ago

The same here! Please help! :(

ange1us commented 2 months ago

I have a problem with aw300 too.

Ginkooo commented 3 weeks ago

The problem persists, I thought I bought a good, cheap camera, but without Home Assistant integration it's not so perfect :(

nobeds commented 2 weeks ago

Same for me, strange that one camera show image and two others do not - settings are the same

image
Ginkooo commented 1 week ago

My camera willa show the Motion event image sometimes, but pretty randomly, but the most important feature for me, video feed, is not working at all. I think the live time video feed IT not avaliable as an Entity in that camera