[solved] List of device type and subtype IDs Topic is solved

Python and python framework

Moderator: leecollings

Post Reply
getSurreal
Posts: 19
Joined: Friday 31 July 2015 0:59
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

[solved] List of device type and subtype IDs

Post 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?
Last edited by getSurreal on Thursday 09 March 2017 21:48, edited 1 time in total.
SweetPants

Re: List of device type and subtype IDs

Post by SweetPants »

Maybe in the database Table: devicestatus. You can access it with a Sqlite database manager.
getSurreal
Posts: 19
Joined: Friday 31 July 2015 0:59
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: List of device type and subtype IDs

Post 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.
getSurreal
Posts: 19
Joined: Friday 31 July 2015 0:59
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: List of device type and subtype IDs

Post by getSurreal »

Mat2Vence
Posts: 41
Joined: Saturday 09 April 2016 18:11
Target OS: Linux
Domoticz version: 3.7449
Location: France
Contact:

Re: List of device type and subtype IDs

Post 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?
jaaap
Posts: 59
Joined: Sunday 28 July 2019 22:59
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

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

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest