Page 1 of 1

Where should a plugin store custom device data?

Posted: Wednesday 01 November 2017 23:06
by jbjalling
Hello,

I'm developing a hardware plugin, using the pTypeGeneralSwitch and pTypeGeneral device types. I would like to store a device serial number for each device, but where should I store this information? Is the solution to store it in a new table in the database, or does a table for this already exist?
I assume that DeviceStatus is not the correct place for this.
The serial number is a 64bit int.

Thanks in advance.
BR Jonas

Re: Where should a plugin store custom device data?

Posted: Saturday 04 November 2017 4:57
by Dnpwwo
@jbjalling,

The Options field in DeviceStatus is probably the best place. The core Domoticz functionality doesn't do anything (that I know of) with it.

Re: Where should a plugin store custom device data?

Posted: Monday 06 November 2017 10:11
by jbjalling
Excellent, thank you - that'll be the solution for now.

BR Jonas