Added error checking to warn if non-bridge device defines more than 3 Accessories

It appears that HomeKit requires devices with more than 3 Accessories to be configured as a bridge.  If not, the Home App will ignore any functional Services in the first Accessory and treat it like a bridge regardless.  Device with 3 or less Accessories do not require a bridge configuration.
This commit is contained in:
Gregg 2024-04-16 22:17:00 -05:00
parent b9efa873dc
commit 723c343277
1 changed files with 3 additions and 0 deletions

View File

@ -1027,6 +1027,9 @@ void Span::processSerialCommand(const char *c){
}
LOG0("\nConfigured as Bridge: %s\n",isBridge?"YES":"NO");
if(!isBridge && Accessories.size()>3)
LOG0("*** WARNING #%d! HomeKit requires the device be configured as a Bridge when more than 3 Accessories are defined ***\n",++nWarnings);
if(hapConfig.configNumber>0)
LOG0("Configuration Number: %d\n",hapConfig.configNumber);
LOG0("\nDatabase Validation: Warnings=%d, Errors=%d\n",nWarnings,nErrors);