Skip to content

Commit

Permalink
Add occupancy sensor to the all-clusters-app
Browse files Browse the repository at this point in the history
  • Loading branch information
nivi-apple committed Jan 19, 2022
1 parent 4f84672 commit 1b456c1
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 @@ -507,6 +507,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 1b456c1

Please sign in to comment.