Skip to content

Commit

Permalink
Add support for contact sensor (project-chip#13735)
Browse files Browse the repository at this point in the history
  • Loading branch information
nivi-apple authored Jan 26, 2022
1 parent 4f320ab commit 4ece9e8
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 @@ -517,6 +517,12 @@ void SetupPretendDevices()
AddCluster("Occupancy Sensor");
AddAttribute("Occupancy", "1");
app::Clusters::OccupancySensing::Attributes::Occupancy::Set(1, 1);

AddDevice("Contact Sensor");
AddEndpoint("External");
AddCluster("Contact Sensor");
AddAttribute("BooleanState", "true");
app::Clusters::BooleanState::Attributes::StateValue::Set(1, true);
}

WiFiWidget pairingWindowLED;
Expand Down

0 comments on commit 4ece9e8

Please sign in to comment.