Plugin : read Type en subType of a device

Python and python framework
JonasF
Posts: 4
Joined: Saturday 18 March 2017 13:52
Target OS: Linux
Domoticz version: beta
Location: France
Contact:

Plugin : read Type en subType of a device

Postby JonasF » Sunday 19 March 2017 15:31

Hi

I can not find how to read type and subtype of a device in python.

How to read it ? Via a sql request? If so what is the best way to access the sqlite database ?

User avatar
Dnpwwo
Posts: 515
Joined: Sunday 23 March 2014 10:00
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: Plugin : read Type en subType of a device

Postby Dnpwwo » Tuesday 21 March 2017 1:55

@JonasF,

Pull Request #1370 has Added Type and SubType attributes to the Device object. Should be in beta in a day or so.
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw

JonasF
Posts: 4
Joined: Saturday 18 March 2017 13:52
Target OS: Linux
Domoticz version: beta
Location: France
Contact:

Re: Plugin : read Type en subType of a device

Postby JonasF » Tuesday 21 March 2017 20:48

Oh ! Perfect !

Tanks !

ffes
Posts: 48
Joined: Friday 27 January 2017 0:11
Target OS: Raspberry Pi
Domoticz version: Beta
Location: NL
Contact:

Re: Plugin : read Type en subType of a device

Postby ffes » Thursday 23 March 2017 15:47

Dnpwwo wrote:Pull Request #1370 has Added Type and SubType attributes to the Device object. Should be in beta in a day or so.


That opens up possibilities!


Return to “Python”

Who is online

Users browsing this forum: No registered users and 1 guest