Page 1 of 1

[solved] List of device type and subtype IDs

Posted: Thursday 09 March 2017 16:42
by getSurreal
I'm looking for a reference where I can find all the device Type and Subtype IDs. Anyone know where I can find it?

Re: List of device type and subtype IDs

Posted: Thursday 09 March 2017 19:45
by SweetPants
Maybe in the database Table: devicestatus. You can access it with a Sqlite database manager.

Re: List of device type and subtype IDs

Posted: Thursday 09 March 2017 19:54
by getSurreal
I guess I should have mentioned that I already looked there. It only shows devices that already exist, which was helpful for some, but I'd like to see the list of all available options. I figure since the full mapping list doesn't appear to be in the database, it must be in the code somewhere, but I couldn't find it.

Re: List of device type and subtype IDs

Posted: Thursday 09 March 2017 21:45
by getSurreal

Re: List of device type and subtype IDs

Posted: Sunday 14 May 2017 16:17
by Mat2Vence
getSurreal wrote:Found it!

In source code

https://github.com/domoticz/domoticz/bl ... aretypes.h
Note that clear to me...
Looks lke we must find type, subtype and swtichtype... what does it correspond to in the .h file? I made some trials but I did not get what I was expected. And what about the "Image" parameter?

Re: [solved] List of device type and subtype IDs

Posted: Thursday 26 September 2019 21:34
by jaaap
I found that if you use the source code (https://github.com/domoticz/domoticz/bl ... aretypes.h) and copy the heximal number and google it, you'll find the decimal number, which you can insert in your code. At least in my case. Haven't tried to use the heximal number in the code. Maybe that also works.