Add ZHA occupancy sensor (#19365)

* occupancy sensor

* lint

* map occupancy cluster to binary_sensor

* update to use reporting configuration and async_configure

* refactor

* fix typo - review comment

* handle restore entity functionality
This commit is contained in:
David F. Mulcahey 2018-12-22 14:53:15 -05:00 committed by Anders Melchiorsen
parent 2765440aa5
commit 2a2af80309
2 changed files with 76 additions and 3 deletions

View file

@ -138,6 +138,7 @@ def populate_data():
zcl.clusters.homeautomation.ElectricalMeasurement: 'sensor',
zcl.clusters.general.PowerConfiguration: 'sensor',
zcl.clusters.security.IasZone: 'binary_sensor',
zcl.clusters.measurement.OccupancySensing: 'binary_sensor',
zcl.clusters.hvac.Fan: 'fan',
})
SINGLE_OUTPUT_CLUSTER_DEVICE_CLASS.update({