Glad you are asking . i dont think my idea is completely new, so there may be already something i could build on. also, i would like to hear your feedback. excuse me if there is already something like that in development. i used OH 1.8 before and iam not up to date with OH2 development.
All lamps i have in my house are hue compatible and i was planning to smart control them. i was thinking many days about how to make my existing light switches smart, so they could react differently in the morning (white light), evening (warm white) or night (dimmed) and depending on the type of room and the activity in it. then i realized: in a smart home, what do i need light switches for? the new plan is to create a system that is so smart, it manages all lights by itself an no one needs to touch a switch just for having some light. i want to use motion detectors to decide, which lights to turn on. but the motion detectors need to be much smarter than the regular switch-on-motion-and-stay-for-3-minutes ones.
i have a hallway that connects the livingroom with the bath. if people are in the living room, the system should keep the light on the hallway on but dimmed down to 10%. (its a smart led lamp anyway, energy usage at 10% is very low). when someone enters the hallway, the system should turn up the hallway lights to 50% and turn the light of the bath from 0 to 20%, as someone enters the floor coming from the living room, its likely that he also goes into the bath. if he really enters the bath, bath lights go up to 100% and floor light stays on 50% for some time, as its likely that the user is in the bath only for 1 to 4 minutes. if he stays longer (not using the toiled but taking full bath) the floor light can dimm to 10% over time).
the key part on this is to have a good presence detection. the system needs to know where people are in the house and where they (most likely) move to. presence detection can be made by only motion detectors, by the “find” tool for wifi positioning, by door/window contacts or by devices (television) used and more. a system like this is very complex and would be even harder to create and maintain using the stock OH rules.
after thinking some days about this, i also think that there is a other problem with OH and its rules. or at least an area that can be improved a lot to make peoples homes smarter and easier to setup. OH does a great job with its easy initial setup, its bindings and their configuration. but when starting to write rules, i realize that writing rules is often not so easy as it seems. people start with easy “if this than that” rules and possibly end up with something close to the the “Mother-of-All Light-Off Rules”. so my conclusion on this is, that simple rules are easy to write for everyone, but really smart rules require a lot of skill and time to create. more than you can expect from the most people i know that use OH. having a lot of sample rules helps here, but one still has to understand how they work.
coming back to my auto-lights example from above, i also think that if i put days and weeks into creating such a system, it should be reuseable by other users. so instead of writing rules for my devices, i would like to abstract the rules away from the actual devices and their capabilities, so everyone could use and improve the logic i have created.
i could imagine this: after installing OH and setting up bindings, a user is asked to tell OH how his house looks. so what rooms are there, how they are located to each other and which device is within which room and so on. this configuration can be very advanced to reflect the real world best as possible.
after that, you can install “skills” (yes, the term from alexa, but i like it as it fits good in this case). i.e. there could be a “auto-lightning-skill” that does what i described above. the skill reads the configuration of the house, so it knows which motion sensors are in which room and which lights it needs to connect to. there can also be a “presence-detection” skill by itself, that just utilizes all available devices to detect presence in the rooms and be used by other skills.
so instead of writing rules myself, as OH user, i can install a skill that, kind of, creates the rules for me.
and as the skill is abstract logic, other developers can easily contribute to the skill, no matter what hardware they use.
other possible skills are light-switch-skills, window-contact-heating-control skills, washer-is-done skills, smart-doorlock-skills and so on.
people then can see “oh, there is a washer-is-done skill, i want this, what kind of hardware to i need to have it working?”. so non-coders should be able to have a smart house with nice skills without touching code or worrying about how it works from the Item/Value point of view. the skills can also have their own config options to adjust it to the personal taste of each user.
what do you think about this idea? Its basicly “abstract the logic from the devices/Items” and “create an appstore/repo for it”.