|Items, Locations and core types [message #1755189]
||Tue, 28 February 2017 20:41
| David Bennett
Registered: February 2017
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.
Powered by FUDForum
. Page generated in 0.02729 seconds