Skip to content

Commit

Permalink
Add occupancy sensor to the all-clusters-app (#13585)
Browse files Browse the repository at this point in the history
  • Loading branch information
nivi-apple authored and pull[bot] committed Jul 21, 2023
1 parent fbbc3e6 commit 3257804
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/all-clusters-app/esp32/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,12 @@ void SetupPretendDevices()
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;
Expand Down

0 comments on commit 3257804

Please sign in to comment.