|
| 1 | +# External Accessories and Matter Support |
| 2 | + |
| 3 | +This plugin now supports publishing each Roomba as an external accessory with automatic Matter compatibility detection. When using Homebridge 2.0.0-alpha.28 or later, the plugin will automatically use the new `publishMatterAccessories` API for enhanced Matter support. |
| 4 | + |
| 5 | +## What are External Accessories? |
| 6 | + |
| 7 | +**Platform Accessories** (default behavior): |
| 8 | +- All Roomba devices appear under a single "Roomba" bridge |
| 9 | +- Devices are grouped together in the Home app |
| 10 | +- Traditional Homebridge plugin behavior |
| 11 | + |
| 12 | +**External Accessories** (new feature): |
| 13 | +- Each Roomba appears as a separate, independent device in HomeKit |
| 14 | +- Automatic Matter protocol support when available (Homebridge alpha.28+) |
| 15 | +- Better compatibility with Matter bridging protocols |
| 16 | +- Future-proof for advanced HomeKit/Matter features |
| 17 | + |
| 18 | +## Configuration |
| 19 | + |
| 20 | +Add the `externalAccessories` option to your platform configuration: |
| 21 | + |
| 22 | +```json |
| 23 | +{ |
| 24 | + "platform": "Roomba", |
| 25 | + "name": "Roomba", |
| 26 | + |
| 27 | + "password": "your-password", |
| 28 | + "externalAccessories": true |
| 29 | +} |
| 30 | +``` |
| 31 | + |
| 32 | +## Matter Support Detection |
| 33 | + |
| 34 | +The plugin automatically detects and uses the best available API: |
| 35 | + |
| 36 | +- **Homebridge 2.0.0-alpha.28+**: Uses `publishMatterAccessories` for native Matter protocol support |
| 37 | +- **Older versions**: Falls back to `publishExternalAccessories` for standard external accessory behavior |
| 38 | + |
| 39 | +This ensures compatibility across all supported Homebridge versions while providing Matter support when available. |
| 40 | + |
| 41 | +## Benefits of External Accessories |
| 42 | + |
| 43 | +### Matter Compatibility |
| 44 | +- **Automatic Matter support** when using Homebridge alpha versions with Matter capabilities |
| 45 | +- Each device can be individually exposed to Matter networks |
| 46 | +- Better integration with Thread/Matter ecosystems |
| 47 | +- Prepares for future Matter protocol enhancements |
| 48 | + |
| 49 | +### Individual Device Management |
| 50 | +- Each Roomba appears as a separate tile in the Home app |
| 51 | +- Independent device management and troubleshooting |
| 52 | +- Cleaner organization in larger smart home setups |
| 53 | + |
| 54 | +### Enhanced Reliability |
| 55 | +- If one Roomba has connectivity issues, it doesn't affect others |
| 56 | +- Individual device restarts and management |
| 57 | +- Reduced dependency on the main bridge |
| 58 | + |
| 59 | +## Migration Notes |
| 60 | + |
| 61 | +### Switching from Platform to External Accessories |
| 62 | +1. **Backup your current setup** - Export your Home app configuration |
| 63 | +2. **Update plugin configuration** - Add `"externalAccessories": true` |
| 64 | +3. **Restart Homebridge** - The devices will appear as new accessories |
| 65 | +4. **Re-add to Home app** - You'll need to scan the new QR codes |
| 66 | +5. **Reconfigure automations** - Update any scenes/automations using the old accessories |
| 67 | + |
| 68 | +### Important Considerations |
| 69 | +- External accessories require individual pairing in the Home app |
| 70 | +- Each external accessory has its own HomeKit pairing code |
| 71 | +- Switching modes will require re-pairing all devices |
| 72 | +- Existing automations and scenes will need to be recreated |
| 73 | + |
| 74 | +## Matter Support Preparation |
| 75 | + |
| 76 | +This feature prepares your Roomba devices for future Matter support: |
| 77 | + |
| 78 | +### Current Status |
| 79 | +- **HomeKit HAP**: Full support with external accessories |
| 80 | +- **Matter**: Ready for future Homebridge Matter implementation |
| 81 | +- **iOS 18 Vacuum Features**: Matter-only (not available in HomeKit HAP) |
| 82 | + |
| 83 | +### Future Roadmap |
| 84 | +When Homebridge adds full Matter support: |
| 85 | +- External accessories will be easier to bridge to Matter |
| 86 | +- Individual device control via Matter controllers |
| 87 | +- Enhanced iOS 18 vacuum features when bridged to Matter |
| 88 | + |
| 89 | +## Troubleshooting |
| 90 | + |
| 91 | +### Accessories Not Appearing |
| 92 | +1. Check Homebridge logs for errors |
| 93 | +2. Ensure `externalAccessories: true` is set |
| 94 | +3. Restart Homebridge completely |
| 95 | +4. Check QR codes in Homebridge UI |
| 96 | + |
| 97 | +### Re-pairing Issues |
| 98 | +1. Reset HomeKit database if needed: `homebridge-config-ui-x > Settings > Reset Accessory Cache` |
| 99 | +2. Clear iOS Home app cache: Remove and re-add the Home |
| 100 | +3. Check Homebridge logs for pairing errors |
| 101 | + |
| 102 | +### Performance Considerations |
| 103 | +- External accessories may use slightly more system resources |
| 104 | +- Each device maintains its own connection state |
| 105 | +- Monitor Homebridge performance if you have many devices |
| 106 | + |
| 107 | +## Advanced Configuration |
| 108 | + |
| 109 | +You can combine external accessories with other plugin features: |
| 110 | + |
| 111 | +```json |
| 112 | +{ |
| 113 | + "platform": "Roomba", |
| 114 | + "name": "Roomba", |
| 115 | + |
| 116 | + "password": "your-password", |
| 117 | + "externalAccessories": true, |
| 118 | + "devices": [ |
| 119 | + { |
| 120 | + "name": "Kitchen Roomba", |
| 121 | + "blid": "your-blid", |
| 122 | + "robotpwd": "your-password", |
| 123 | + "ipaddress": "192.168.1.100", |
| 124 | + "accessoryCategory": "switch", |
| 125 | + "dockContactSensor": true, |
| 126 | + "runningContactSensor": true |
| 127 | + } |
| 128 | + ] |
| 129 | +} |
| 130 | +``` |
| 131 | + |
| 132 | +## Related Documentation |
| 133 | + |
| 134 | +- [Main README](./README.md) - General plugin setup and configuration |
| 135 | +- [iOS 18 Vacuum Support](./iOS18_VACUUM_SUPPORT.md) - Matter vs HomeKit vacuum limitations |
| 136 | +- [Homebridge External Accessories Documentation](https://developers.homebridge.io/#/api/platform-accessories?id=external-accessories) |
0 commit comments