Add occupancy sensor to the all-clusters-app (#13585)
diff --git a/examples/all-clusters-app/esp32/main/main.cpp b/examples/all-clusters-app/esp32/main/main.cpp index a98e4e9..840d3d1 100644 --- a/examples/all-clusters-app/esp32/main/main.cpp +++ b/examples/all-clusters-app/esp32/main/main.cpp
@@ -508,6 +508,12 @@ AddEndpoint("Door 2"); AddCluster("Door"); AddAttribute("State", "Closed"); + + AddDevice("Occupancy Sensor"); + AddEndpoint("External"); + AddCluster("Occupancy Sensor"); + AddAttribute("Occupancy", "1"); + app::Clusters::OccupancySensing::Attributes::Occupancy::Set(1, 1); } WiFiWidget pairingWindowLED;