How to create/read/update devices using DeviceID instead of Units
Posted: Wednesday 05 July 2017 10:30
Dear All,
I'm creating a new plugin for Domoticz, the issue is that i cannot use the [Unit] as index since it's just a number from 0 to 256.
In my script i've to create devices and update it using as index the MAC address or part of it, since creating an external file to match the Unit number with the MAC address looks to me not optimal.
It's possible to create/read/update a device from the python plugin system using the DeviceID instead of the unit number?
If yes, it's possible to have a small example?
Thank you so much
I'm creating a new plugin for Domoticz, the issue is that i cannot use the [Unit] as index since it's just a number from 0 to 256.
In my script i've to create devices and update it using as index the MAC address or part of it, since creating an external file to match the Unit number with the MAC address looks to me not optimal.
It's possible to create/read/update a device from the python plugin system using the DeviceID instead of the unit number?
If yes, it's possible to have a small example?
Thank you so much