Skip to content

小米摄像头通过miot接入后HA无法预览,也没办法获取截图 #2799

@adi-hld

Description

@adi-hld

HA版本:
Core :2026.3.0
Supervisor:2026.02.3
Operating System:17.1
Frontend:20260304.0

Xiaomi Miot 版本:
V1.1.4

我的需求是想通过HA的REST API获取camera 截图。类似:curl -X GET “http://homeassistant.local:8123/api/camera_proxy/camera.xiaomi_069a03_72ee_camera_control",无法执行

我测试了3款摄像头,都出现了一样的问题:
1.xiaomi_069a03_72ee_camera :小米摄像头3 3k云台版
2.isa_hlc7_1e95:小米摄像头 2k
3.chuangmi_029a02_d88d

问题描述:
1.摄像头获取到的实体中其他entity_id都可用,只有camera_control的实体不可用,状态一直为unavailable

Image

2.我尝试了帐号集成(自动模式)、局域网集成(host+token),都是同样的问题
3.我想查询支持的摄像头:访问;https://home.miot-spec.com/s/camera,提示:Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.2.0". You are running 7.4.33. in /var/www/vendor/composer/platform_check.php on line 24
4.当前没有反馈问题的渠道:微信群不再加人,qq群已满,TG群是什么,没用过,国内似乎很不友好

附录:
1.我的yaml文件:

Image 2.以xiaomi_069a03_72ee_camera为例,返回的功能实体 { "success": true, "data": [ { "entity_id": "button.xiaomi_069a03_72ee_info", "state": "2026-03-12T09:04:30.130444+00:00", "attrs": { "button.info": "Xiaomi Smart Camera 3 3K", "model": "xiaomi.camera.069a03", "did": "1212212388", "mac": "00:9D:85:81:72:EE", "lan_ip": "192.168.11.23", "app_link": "mihome://device?uid=165282940&did=1212212388", "miot_type": "urn:miot-spec-v2:device:camera:0000A01C:xiaomi-069a03:1:0000D070", "available": true, "home_room": "165282940 办公室", "icon": "mdi:information", "updater": "cloud", "camera_control.on.error": "-704220043 Property value error", "camera_control.ptz_camera.error": "-704220043 Property value error", "camera_control.night_shot.error": "-704220043 Property value error", "camera_control.image_rollover.error": "-704220043 Property value error", "camera_control.time_watermark.error": "-704220043 Property value error", "camera_control.wdr_mode.error": "-704220043 Property value error", "glimmer_full_color-2-7.error": "-704220043 Property value error", "camera_control.human_tracking": false, "camera_control.recording_mode.error": "-704220043 Property value error", "memory_card_management.status": 1, "storage_total_space-3-2.error": "-704220043 Property value error", "storage_free_space-3-3.error": "-704220043 Property value error", "storage_used_space-3-4.error": "-704220043 Property value error", "dialog_ejected-3-5.error": "-704220043 Property value error", "remaining_recording_duration-3-6.error": "-704220043 Property value error", "motion_detection.error": "-704220043 Property value error", "detection_sensitivity-5-3.error": "-704220043 Property value error", "motion_detection_start_time-5-4.error": "-704220043 Property value error", "motion_detection_end_time-5-5.error": "-704220043 Property value error", "motion_detection.alarm_interval": 16, "indicator_light.on": true, "speaker.volume": 30, "speaker.mute.error": "-704220043 Property value error", "ai_detection.human_detection.error": "-704220043 Property value error", "ai_detection.move_detection.error": "-704220043 Property value error", "move_detection_sensitivity-8-28.error": "-704220043 Property value error", "p2p_stream.video_codec.error": "-704220043 Property value error", "p2p_stream.audio_codec.error": "-704220043 Property value error", "p2p_stream.audio_bit_width.error": "-704220043 Property value error", "p2p_stream.audio_smp_rate.error": "-704220043 Property value error", "p2p_stream.audio_channel.error": "-704220043 Property value error", "p2p_stream.talk_codec.error": "-704220043 Property value error", "p2p_stream.distortion_crt_osdx.error": "-704220043 Property value error", "p2p_stream.distortion_crt_osdy.error": "-704220043 Property value error", "p2p_stream.resolution_types.error": "-704220043 Property value error", "p2p_stream.talk_mode.error": "-704220043 Property value error", "camera_ipc_cloud.gop_value.error": "-704220043 Property value error", "camera_ipc_cloud.vip_offset_num.error": "-704220043 Property value error", "non_vip_offset_num-14-3.error": "-704220043 Property value error", "nas.status.error": "-704220043 Property value error", "qrcode_information-23-1.error": "-704220043 Property value error", "self_check.self_check_results.error": "-704220043 Property value error", "self_check.manual_check_results.error": "-704220043 Property value error", "converters": [ "button.info", "light.indicator_light.on", "camera.camera_control", "sensor.memory_card_management.status", "sensor.storage_free_space-3-3", "sensor.storage_used_space-3-4", "switch.camera_control.on", "switch.camera_control.time_watermark", "switch.camera_control.wdr_mode", "switch.glimmer_full_color-2-7", "switch.motion_detection", "switch.indicator_light.on", "number.camera_control.image_rollover", "number.motion_detection.alarm_interval", "select.camera_control.night_shot", "select.camera_control.recording_mode", "select.detection_sensitivity-5-3", "select.move_detection_sensitivity-8-28" ], "customizes": { "miot_cloud_action": true, "sensor_properties": "memory_card_management.status,storage_free_space,storage_used_space", "select_properties": "night_shot,recording_mode,detection_sensitivity", "switch_properties": "on,time_watermark,motion_tracking,motion_detection,wdr_mode,glimmer_full_color", "number_properties": "image_rollover,alarm_interval" }, "updated_at": "2026-03-12 17:24:53.303830+08:00", "info": null, "device_class": "update", "friendly_name": "Xiaomi Smart Camera 3 3K 信息" } },
{
  "entity_id": "camera.xiaomi_069a03_72ee_camera_control",
  "state": "unavailable",
  "attrs": {
    "entity_picture": "/api/camera_proxy/camera.xiaomi_069a03_72ee_camera_control?token=ef3c2b14a1a1feb8e22ca4fda6a1a37dbfa07e14851de9daad40cf18aa2bfca4",
    "friendly_name": "Xiaomi Smart Camera 3 3K 摄像机控制",
    "supported_features": 0,
    "keep_streaming": true,
    "video_attribute": 1,
    "check_lan": true,
    "miot_cloud": true
  }
}

]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions