Page 1 of 1
Plugin : read Type en subType of a device
Posted: Sunday 19 March 2017 14:31
by JonasF
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 ?
Re: Plugin : read Type en subType of a device
Posted: Tuesday 21 March 2017 0:55
by Dnpwwo
@JonasF,
Pull Request #1370 has Added Type and SubType attributes to the Device object. Should be in beta in a day or so.
Re: Plugin : read Type en subType of a device
Posted: Tuesday 21 March 2017 19:48
by JonasF
Oh ! Perfect !
Tanks !
Re: Plugin : read Type en subType of a device
Posted: Thursday 23 March 2017 14:47
by ffes
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!
Re: Plugin : read Type en subType of a device
Posted: Monday 15 October 2018 19:59
by moengiant
Did you ever create a python script for type and subtype? I'm looking to do the same and store device per room by types in a user defined string variables as this is not possible via the API.