Is Hardware Table infos available inside the Python Framework Topic is solved

Python and python framework

Moderator: leecollings

Post Reply
pipiche
Posts: 2035
Joined: Monday 02 April 2018 20:33
Target OS: Linux
Domoticz version:
Contact:

Is Hardware Table infos available inside the Python Framework

Post by pipiche »

I didn't see any-thing on the Wiki and I'm wondering if we could get access to the Hardware Table information inside a running Plugin.

For instance, can the Plugin be aware of its HardwareID and get access to few other fields ?
pipiche
Posts: 2035
Joined: Monday 02 April 2018 20:33
Target OS: Linux
Domoticz version:
Contact:

Re: Is Hardware Table infos available inside the Python Framework

Post by pipiche »

To give a bit more context this would allow the plugin in case several occurrences of it are running.

For instance, the field Hardware.extra is not accessible if I'm not mistaken
pipiche
Posts: 2035
Joined: Monday 02 April 2018 20:33
Target OS: Linux
Domoticz version:
Contact:

Re: Is Hardware Table infos available inside the Python Framework

Post by pipiche »

Ok, found the information myself by listing all Parameters and indeed:

HardwareID and Key ( mapped to Extra) are available .
Post Reply