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 Jan 24, 2022
1 parent b7854c5 commit b85e355
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 b85e355

Please sign in to comment.