Multiple instances of plugin
andyblac opened this issue · 3 comments
I have setup multiple instances of plugin so I can show each partition in HomeKit. see snippet below. But if I set a partition it shows both as ARMED in HomeKit, is there anyway you can allow multiple instances of the plugin to be seen in HomeKit as separate Alarms.
{
"accessory": "RiscoAlarm",
"name": "Home Alarm",
"polling": true,
"pollInterval": 15000,
"riscoUsername": "*******",
"riscoPassword": "*******",
"riscoSiteId": *******,
"riscoPIN": "*******",
"armCommand": "0:armed",
"disarmCommand": "0:disarmed"
},
{
"accessory": "RiscoAlarm",
"name": "Garage Alarm",
"polling": true,
"pollInterval": 15000,
"riscoUsername": "*******",
"riscoPassword": "*******",
"riscoSiteId": *******,
"riscoPIN": "*******",
"armCommand": "1:armed",
"disarmCommand": "1:disarmed"
}
forgot to say, I can control both of them perfectly fine, it just the icon that is wrong.
@andyblac, I think this release will provide a solution to state management.
I took as starting point your code (a few days ago) so your last changes will surely not all present.
For my part, the plugin seems to behave properly and I have tortured it in every way to try to flush out the errors.
If you can give me a return, I will correct any remaining errors and I will propose the code in pull request
yes, works sport on thanks.