From 471bd1d9ebd9f2a1a29c7326dc32f6f51529a0ed Mon Sep 17 00:00:00 2001 From: Alone Date: Sun, 27 Aug 2023 17:19:00 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=B7=20add=20sub-entities=20for=20camer?= =?UTF-8?q?a=20(#1187)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom_components/xiaomi_miot/core/device_customizes.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/custom_components/xiaomi_miot/core/device_customizes.py b/custom_components/xiaomi_miot/core/device_customizes.py index 965ec3c69..76cebb223 100644 --- a/custom_components/xiaomi_miot/core/device_customizes.py +++ b/custom_components/xiaomi_miot/core/device_customizes.py @@ -76,6 +76,11 @@ 'device_class': 'voltage', 'unit_of_measurement': 'V', }, + 'chuangmi.camera.051a01': { + 'switch_properties': 'on,time_watermark,motion_tracking,motion_detection,wdr_mode,glimmer_full_color,' + 'face_switch,babycry_switch,pet_switch,gesture_switch,cruise_switch,smart_care_switch,' + 'key_call_switch', + }, 'chuangmi.camera.v6': { 'use_alarm_playlist': True, }, @@ -1363,6 +1368,10 @@ }, '*.camera.*': { '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', }, '*.cateye.*': { 'use_motion_stream': True,