New amcrest binary sensor to monitor doorbell button (#66302)
* New binary sensor to monitor doorbell button * New binary sensor to monitor doorbell button
This commit is contained in:
parent
9134e5c844
commit
0797533016
1 changed files with 10 additions and 0 deletions
|
@ -65,6 +65,10 @@ _MOTION_DETECTED_EVENT_CODE = "VideoMotion"
|
||||||
|
|
||||||
_ONLINE_KEY = "online"
|
_ONLINE_KEY = "online"
|
||||||
|
|
||||||
|
_DOORBELL_KEY = "doorbell"
|
||||||
|
_DOORBELL_NAME = "Doorbell Button"
|
||||||
|
_DOORBELL_EVENT_CODE = "CallNoAnswered"
|
||||||
|
|
||||||
BINARY_SENSORS: tuple[AmcrestSensorEntityDescription, ...] = (
|
BINARY_SENSORS: tuple[AmcrestSensorEntityDescription, ...] = (
|
||||||
AmcrestSensorEntityDescription(
|
AmcrestSensorEntityDescription(
|
||||||
key=_AUDIO_DETECTED_KEY,
|
key=_AUDIO_DETECTED_KEY,
|
||||||
|
@ -111,6 +115,12 @@ BINARY_SENSORS: tuple[AmcrestSensorEntityDescription, ...] = (
|
||||||
device_class=BinarySensorDeviceClass.CONNECTIVITY,
|
device_class=BinarySensorDeviceClass.CONNECTIVITY,
|
||||||
should_poll=True,
|
should_poll=True,
|
||||||
),
|
),
|
||||||
|
AmcrestSensorEntityDescription(
|
||||||
|
key=_DOORBELL_KEY,
|
||||||
|
name=_DOORBELL_NAME,
|
||||||
|
device_class=BinarySensorDeviceClass.OCCUPANCY,
|
||||||
|
event_code=_DOORBELL_EVENT_CODE,
|
||||||
|
),
|
||||||
)
|
)
|
||||||
BINARY_SENSOR_KEYS = [description.key for description in BINARY_SENSORS]
|
BINARY_SENSOR_KEYS = [description.key for description in BINARY_SENSORS]
|
||||||
_EXCLUSIVE_OPTIONS = [
|
_EXCLUSIVE_OPTIONS = [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue