Items, Locations and core types [message #1755189] |
Tue, 28 February 2017 15:41  |
Eclipse User |
|
|
|
Morning,
I am looking at openhab and wondering why the concept of items exists at all in openhab? It seems like it is just an extra layer between the channels and using the data in the rules that makes things more complicated. Is it mainly to deal with the 1.0 openhab plugins that still exist? Could you just put them inside a 'openhab 1.0 thing' and make all those items channels on that object?
Also wondering why locations are only a string and not something with a bit more detail associated with them. A structure/location setup would allow for things like handling occupancy at the room level as well as at the structure level and give more semantic control over how things are organized inside the house. Right now it would be hard to write a routine that looks at all the motion sensors int he house and automatically sets the occupancy for the rooms they are in based on the motion, for example.
Wondering also why there is no archetype for things? ie: a dimmer thingy has to have a channel called 'Dimmer' that is a percent type (for example). Same with a thermostat, or a switch. It makes it hard to make a generic routine that would do something like paying attension to occupancy and automatically turning on the lights in the room if the room is occupied. Because you need to know how every binding implements a dimmer to be able to handle this.
This follows into the following point There should be a user settable 'type' for a thing, that is distinct from the type of thing it is, a switch (for example) controls not just lights but could also control fans, or dart boards, or machines, or who knows what else. With this you could set things in the room as 'lights' be they a switch or a dimmer and then handle things more automatically based on occupancy and other things. It not really possible to bundle up generic routines or sets of rules right now, since all of this is very specific to how everyone sets up their systems.
Perhaps I should split this into multiple threads too.
Thanks!
David.
|
|
|
|
Re: Items, Locations and core types [message #1759323 is a reply to message #1759273] |
Mon, 10 April 2017 10:32  |
Eclipse User |
|
|
|
On the "locations of things": We had a discussion about the content of the "location" field here. It is not so easy to find a consensus between all users and commercial/open source solutions in what to put in there. Should it be a hierarchical structure of the house with floors/rooms, should it be geo-coordinates of the devices? Therefore the strings for now gave us the highest flexibility. You may use them in the way it fits your needs best. They could even contain references to items, which in turn contain geo-coordinates or represent rooms.
On the "archtetype" or "types" of things: Agreed, this would be good to have. There is a dev issue here for "Semantic tagging", which if I understood you correctly goes into the same direction. Unfortunately it's not as trivial as it seems like on a first glance, so any input to drive this topic is very welcome.
|
|
|
Powered by
FUDForum. Page generated in 0.04459 seconds