The gotcha so far is that all area's show up as occupancy sensors, but only areas that actually have a sensor will ever change state.
I've been able to create a subscription to /area/status, which triggers whenever there is an occupancy status change in one of the areas. So far I haven't found a way to check to see if there is an actual sensor in the area. My only idea so far is to query /device?where=IsThisDevice:false, and find any occupancy sensors by using a list of sensor ModelNumbers, and only import the associated areas into the occupancy entity listing.
Initial Occupancy sensing is working in ra3-occupancy branch. https://github.com/danaues/pylutron-caseta/tree/ra3-occupancy
The gotcha so far is that all area's show up as occupancy sensors, but only areas that actually have a sensor will ever change state.
I've been able to create a subscription to /area/status, which triggers whenever there is an occupancy status change in one of the areas. So far I haven't found a way to check to see if there is an actual sensor in the area. My only idea so far is to query /device?where=IsThisDevice:false, and find any occupancy sensors by using a list of sensor ModelNumbers, and only import the associated areas into the occupancy entity listing.