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

Python and python framework
Post Reply
pipiche
Posts: 107
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi
Domoticz version: beta
Location: France
Contact:

Is Hardware Table infos available inside the Python Framework

Post by pipiche » Thursday 11 October 2018 11:38

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: 107
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi
Domoticz version: beta
Location: France
Contact:

Re: Is Hardware Table infos available inside the Python Framework

Post by pipiche » Thursday 11 October 2018 11:43

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: 107
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi
Domoticz version: beta
Location: France
Contact:

Re: Is Hardware Table infos available inside the Python Framework

Post by pipiche » Thursday 11 October 2018 11:56

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

HardwareID and Key ( mapped to Extra) are available .

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests