e-mcgee / paradox_platform

Paradox alarm homebridge platform
25 stars 6 forks source link

Generate a unique serial number for each accessory #38

Open cronjevh opened 2 years ago

cronjevh commented 2 years ago

I've got MG5050 with IP150 working smoothly with Homebridge, with a mixture of motion, contact and PGM devices all working fine on linked iOS devices.

I want cross platform app support (and I don't want to purchase an Apple device to use as a hub remotely), so I've been hooking up Homebridge to Home Assistant using the Homekit controller.

Garage and alarm works fine, but I'm having a problem with the binary switch zones, where only a single device is visible in Home Assistant.

I believe the issue is due to a lack of unique serial numbers with how the Paradox zones are relayed to Home Assistant as described in https://github.com/home-assistant/core/issues/34121

I'm hoping that it would be possible to add a fake serial number into the plugin configuration somehow for each accessory. I'll post here if I figure this out, or find a workaround.

If anyone is feeling charitable to point me in the right direction it would be much appreciated.