Setup-Devices-ID Format, What's mean 7 and 8 characters?

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
peanutstars
Posts: 1
Joined: Thursday 24 December 2015 3:39
Target OS: Linux
Domoticz version:
Contact:

Setup-Devices-ID Format, What's mean 7 and 8 characters?

Post by peanutstars »

Hi,

What's mean 7 characters and 8 characters on DevicesID ?

It is mixed in the source, as follows :

Code: Select all

sprintf(szID,"%X%02X%02X%02X", ID1, ID2, ID3, ID4);

sprintf(szID, "%08x", (unsigned int)lID);
It shows when I add a ZWave Device on domoticz,

Code: Select all

  	1	HOME	0000401	1	SmartOutlet	Lighting 2	ZWave	On	-	-	Set UnusedRename Device Log	2015-12-24 11:14:22
  	2	HOME	0000433	1		Lighting 2	ZWave	Off	-	-	Add Light/Switch DeviceRename Device Log	2015-12-24 11:14:22
  	3	HOME	0000432	1		Lighting 2	ZWave	Off	-	-	Add Light/Switch DeviceRename Device Log	2015-12-24 11:14:22
  	4	HOME	0000436	1		Lighting 2	ZWave	On, Level: 255 %	-	-	Add Light/Switch DeviceRename Device Log	2015-12-24 11:14:22
  	5	HOME	0000437	1		Lighting 2	ZWave	Off	-	-	Add Light/Switch DeviceRename Device Log	2015-12-24 09:50:58
  	6	HOME	0000401	2	SmartOutlet	Usage	Electric	110.1 Watt	-	-	Set UnusedRename Device Log	2015-12-24 11:56:46
  	7	HOME	0000004	1	Power Meter	Usage	Electric	108.8 Watt	-	-	Add DeviceRename Device Log	2015-12-24 09:51:09
  	8	HOME	00000401	1	kWh Meter	General	kWh	6.256 kWh	-	-	Set UnusedRename Device Log	2015-12-24 11:56:49
Number 1 ~7 are 7 characters and Number 8 is 8 character.
I don't know what is mean about it, please let me know.

Thanks,
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest