mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 18:27:09 +00:00
Add Reolink baby cry sensitivity (#146773)
* Add baby cry sensitivity * Adjust tests
This commit is contained in:
parent
186ed451a9
commit
cdb2b407be
@ -220,6 +220,9 @@
|
||||
"ai_animal_sensitivity": {
|
||||
"default": "mdi:paw"
|
||||
},
|
||||
"cry_sensitivity": {
|
||||
"default": "mdi:emoticon-cry-outline"
|
||||
},
|
||||
"crossline_sensitivity": {
|
||||
"default": "mdi:fence"
|
||||
},
|
||||
|
@ -272,6 +272,18 @@ NUMBER_ENTITIES = (
|
||||
value=lambda api, ch: api.ai_sensitivity(ch, "dog_cat"),
|
||||
method=lambda api, ch, value: api.set_ai_sensitivity(ch, int(value), "dog_cat"),
|
||||
),
|
||||
ReolinkNumberEntityDescription(
|
||||
key="cry_sensitivity",
|
||||
cmd_key="299",
|
||||
translation_key="cry_sensitivity",
|
||||
entity_category=EntityCategory.CONFIG,
|
||||
native_step=1,
|
||||
native_min_value=1,
|
||||
native_max_value=5,
|
||||
supported=lambda api, ch: api.supported(ch, "ai_cry"),
|
||||
value=lambda api, ch: api.baichuan.cry_sensitivity(ch),
|
||||
method=lambda api, ch, value: api.baichuan.set_cry_detection(ch, int(value)),
|
||||
),
|
||||
ReolinkNumberEntityDescription(
|
||||
key="ai_face_delay",
|
||||
cmd_key="GetAiAlarm",
|
||||
|
@ -571,6 +571,9 @@
|
||||
"ai_animal_sensitivity": {
|
||||
"name": "AI animal sensitivity"
|
||||
},
|
||||
"cry_sensitivity": {
|
||||
"name": "Baby cry sensitivity"
|
||||
},
|
||||
"crossline_sensitivity": {
|
||||
"name": "AI crossline {zone_name} sensitivity"
|
||||
},
|
||||
|
@ -72,6 +72,10 @@
|
||||
'0': 1,
|
||||
'null': 1,
|
||||
}),
|
||||
'299': dict({
|
||||
'0': 1,
|
||||
'null': 1,
|
||||
}),
|
||||
'DingDongOpt': dict({
|
||||
'0': 2,
|
||||
'null': 2,
|
||||
|
Loading…
x
Reference in New Issue
Block a user