Mixiaoxiao / Arduino-HomeKit-ESP8266

Native Apple HomeKit accessory implementation for the ESP8266 Arduino core.
MIT License
1.48k stars 278 forks source link

Multiple motion sensors on one 8266 #167

Open micahvdm opened 2 years ago

micahvdm commented 2 years ago

Is it possible to have multiple motion sensors on one device and assign then to different rooms? I have looked at the multi accessory example, but I'm not sure how I would go about having a few (say 5 sensors) on the same device.

Any help would be greatly appreciated!

ruleechen commented 2 years ago

Yes, I think it can be achieved. As you can see in the multi accessory example we can define some sensor accessories and export them via a bridge accessory. That is what this library done. On the other side, Apple Home app add the bridge accessory then bring in the sensor accessories and then we can assign them to different rooms.

In a nutshell, assign accessories to different rooms is the ability of Apple Home app.

PimV5755 commented 2 years ago

Hi, I have cracked that one of multiple accessories. I can post an example. It is not that hard once you understand the indexing.

AugustinMauroy commented 1 year ago

Hello Would you add your code (to the repository thanks to a pull request) ? to increase the number of examples.

PimV5755 commented 1 year ago

Sure. I have many more. I’ll group them in a batch.

Op di 26 jul. 2022 om 23:04 schreef Augustin Mauroy < @.***>

Hello Would you add your code (to the repository thanks to a pull request) ? to increase the number of examples.

— Reply to this email directly, view it on GitHub https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266/issues/167#issuecomment-1195979812, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUKZ5LUTUJAVWH2DCKUBEBLVWBHGNANCNFSM5RB2WHVA . You are receiving this because you commented.Message ID: @.***>