maximkulkin / esp-homekit-demo

Demo of Apple HomeKit accessory server library
MIT License
809 stars 233 forks source link

distribution of accessories in different rooms as done by raven #275

Closed outsiderz closed 4 years ago

outsiderz commented 4 years ago

how to make several accessories can be moved to different rooms in the homekit. in ravencore firmware this feature is implemented, please help with the right code

outsiderz commented 4 years ago

when adding a device, it is defined as a hub, which makes it possible to distribute accessories among the rooms. how to add to the code to get a bridge for several accessories ????

toshibochan commented 4 years ago

You want the device appear in multiple room? Or you want move the device to other room?

toshibochan commented 4 years ago

If you want move the device you can do in home app.

outsiderz commented 4 years ago

for example, if I have a relay of 2 channels, I have two switches, I need to add switches to different rooms

outsiderz commented 4 years ago

for example, switch1 add kitchen, switch2 add bedroom

toshibochan commented 4 years ago

If the switch is one device, i think is not able to separate. but you can just set one switch to control kitchen and other control the bedroom.

outsiderz commented 4 years ago

there is such an opportunity in the firmware Raven HAA, I want to add code esp-homekit-demo

outsiderz commented 4 years ago

when adding it looks like this IMG_7345B16EA05E-1

outsiderz commented 4 years ago

@RavenSystem help me please

outsiderz commented 4 years ago

Does anyone know how to do ????

maximkulkin commented 4 years ago

Just look up how RavenCore is done

peros550 commented 4 years ago

You can even go back in time in previous RavenSystem commits when the code had less features thus it is easier to read and find what you are looking for.

maximkulkin commented 4 years ago

As far as I understand, you just need to define both of your switches as separate accessories, not just separate services inside one accessory. All services provided by one accessory are meant to be physically together, while different accessories can be in different places (different rooms).

outsiderz commented 4 years ago

а как это сделать?

maximkulkin commented 4 years ago

@outsiderz It involves editing code