diff --git a/lib/camera/TuyaCameraConstants.ts b/lib/camera/TuyaCameraConstants.ts index 570f92f..7c8b8a8 100644 --- a/lib/camera/TuyaCameraConstants.ts +++ b/lib/camera/TuyaCameraConstants.ts @@ -53,6 +53,7 @@ export const CAMERA_ALARM_CAPABILITIES = { decibel_switch: 'alarm_sound', cry_detection_switch: 'alarm_crying_child', pet_detection: 'alarm_pet', + doorbell_active: 'hidden.doorbell', } as const; // Map from an event to an alarm capability diff --git a/lib/camera/driver.ts b/lib/camera/driver.ts index 7742b14..3af5fa2 100644 --- a/lib/camera/driver.ts +++ b/lib/camera/driver.ts @@ -53,7 +53,10 @@ class TuyaOAuth2DriverWithCamera extends TuyaOAuth2Driver { } // More complicated capabilities - if (constIncludes(COMPLEX_CAMERA_CAPABILITIES, capability)) { + if ( + constIncludes(COMPLEX_CAMERA_CAPABILITIES, capability) || + constIncludes(SIMPLE_CAMERA_CAPABILITIES.setting, capability) + ) { props.store.tuya_capabilities.push(capability); } }