Python Plugin framework question

Python and python framework

Moderator: leecollings

Post Reply
User avatar
emme
Posts: 909
Joined: Monday 27 June 2016 11:02
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Milano, Italy
Contact:

Python Plugin framework question

Post by emme »

I'm in the process of evaluating my first plugin about BLE and beacons (let's say... this is my actual area of interest :P :P)

I've donloaded the documentation from the Wiki, but I'm unclear about how devices are created:
when I define a new device can this be listed ONLY in the device tab instead of having it availabe in the switches tab? like it happend for any other hardware like zwave or rf433?

my intention is to add all devices discovered, but it does not mean I want to add them all to the device I will use.....


thanks
ciao
M
The most dangerous phrase in any language is:
"We always done this way"
User avatar
Dnpwwo
Posts: 820
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: Python Plugin framework question

Post by Dnpwwo »

@emme,

Interesting. I hadn't thought of that.

I think what you are asking for is the ability to create devices that are marked as 'Unused'. Users would need to go into the devices tab and mark them as used for them to show up in the tabs.

You can't at the moment but I could add it in the next 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
User avatar
emme
Posts: 909
Joined: Monday 27 June 2016 11:02
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Milano, Italy
Contact:

Re: Python Plugin framework question

Post by emme »

Exactely! but in your way is much more understandable :P :P :lol: :lol:

if it is something that needs to be developped... maight I suggest to take under conideration the state of "add new hardware" switch in settings? :P :P

Ciao
M
The most dangerous phrase in any language is:
"We always done this way"
User avatar
Dnpwwo
Posts: 820
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: Python Plugin framework question

Post by Dnpwwo »

@emme,

I will look at it. Some other people have asked for some of the settings to be available to plugins as well,maybe now is the time...
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
Post Reply

Who is online

Users browsing this forum: RNEE and 1 guest