Updated Example 17 with note to indicate it is not functioning correctly

This appears to be a Home App problem.  The problem cannot be fixed by adding in ServiceLabel and ServiceIndex (no impact), nor adding in isConfigured(), nor adding Name() Characteristics.  The Home App refuses to render the valves regardless of what valve type.  They will sometimes appear, and then disappear from the interface for no reason.

Testing with the Apple's HomeKit Simulator yields the same symptoms.
This commit is contained in:
Gregg 2022-04-12 21:36:00 -05:00
parent f322f2b0f1
commit 2b669022ec
1 changed files with 0 additions and 5 deletions

View File

@ -119,8 +119,6 @@ struct Shower : Service::Faucet { // this is our Shower structur
WaterValve(Shower *s, int i){ // this is constructor for WaterValve. It takes a single argument that points to the "controlling" Shower Service
shower=s; // store the pointer to the Shower Service
new Characteristic::ValveType(2); // specify the Value Type (2=Shower Head; see HAP R2 for other choices)
new Characteristic::ServiceLabelIndex(i);
new Characteristic::IsConfigured(1); // Source included in the Settings Screen...
}
boolean update() override { // HomeSpan calls this whenever the Home App requests a change in a Valve's Active Characteristic
@ -153,9 +151,6 @@ void setup() {
new Shower(4); // Create a Spa Shower with 4 spray heads
new Service::ServiceLabel();
new Characteristic::ServiceLabelNamespace(1);
} // end of setup()
//////////////////////////////////////