Slashdot Mirror


OpenMotics Offers Open Source (and Open Hardware) Home Automation

Home automation is a recurring topic around here; we've had stories about X-10-based home-brewed systems, a protocol designed for automation, and more than a few Ask Slashdots. Now, an anonymous reader writes OpenMotics is an open source home automation hardware and software system that offers features like switching lights and outputs, multi-zone heating and cooling, power measurements, and automated actions. The system encompasses both open source software and hardware. For interoperability with other systems, the OpenMotics Gateway provides an API through which various actions can be executed. The project was open sourced 2 years ago and was started about 10 years. The choice to open source the project was very conscious: we want to offer a system where users are in full control over their home automation system.

36 comments

  1. red for native ad right? by 0xdeaddead · · Score: 1

    thanks!

    1. Re:red for native ad right? by CaptQuark · · Score: 1

      Umm.. Nope.

  2. Cloud Managed? by Akili · · Score: 5, Interesting

    I've thought about home automation for a while, and seeing an opened system such as this one is an immediate temptation! ...Except for the cloud management. I noticed right away that the gateway controller 'comes with a 1 year subscription'. Sure, I get that they're a business that needs to make money, but what if I want the system without cloud support? Is that even an option? For all they're touting openness, I couldn't find that obviously posted on their site. That's a pretty big deal-breaker for me, if I cannot disable their cloud integration. So what if I can't run it from a mobile phone? I'd rather use something like SSH and write my own interface, following my own desired rules for network security. And I sure as hell don't want it reporting anything back to them, or giving them the option in any way, shape, or form of sending remote commands when I have elected to not use their service. This is my home we're talking about. Guess I'll keep thinking about rolling my own, someday.

    1. Re:Cloud Managed? by WarJolt · · Score: 3, Interesting

      If you're interested in home automation, then you're probably familiar with the different protocols that exist which can work either wirelessly or over the powerline.
      This system requires you to run 2 wires for the rs-485 to each module + power. This is not really convenient.
      http://wiki.openmotics.com/ind...

      ZigBee and Z-wave seems to be taking over. I love open source, but I'm probably going to go the proprietary route.
      http://myharmony.com/products/...

    2. Re:Cloud Managed? by Anonymous Coward · · Score: 0

      If it's actually open-source and not a complete lie, you could fork it and make a cloudless version.
      Why haven't you done so?

    3. Re:Cloud Managed? by Anonymous Coward · · Score: 0

      Because something like that quickly becomes a full-time job. Have you ever made any modification, even a small one, to any open source software?

    4. Re:Cloud Managed? by drinkypoo · · Score: 1

      This system requires you to run 2 wires for the rs-485 to each module + power. This is not really convenient.

      It's not convenient, but it is secure, compared to using wireless. At best using wireless leaves you open to a DoS attack, which makes it unsuitable for security use.

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
    5. Re:Cloud Managed? by Anonymous Coward · · Score: 0

      Its possible to disable the cloud, I just asked them. " it's possible to disable the cloud functionality and use the API on the gateway itself"

    6. Re:Cloud Managed? by mspohr · · Score: 2

      If you actually read the first page, you would have seen that it is available as either a "cloud" version or as your own home server (without the "cloud" bits).

      --
      I don't read your sig. Why are you reading mine?
    7. Re:Cloud Managed? by Akili · · Score: 1

      Hey, look at that. I did read the page, but I obviously did not scroll down enough through the graphics to find that note. It'd be nice if it were also on the page describing the gateway controller itself. It wasn't even listed on the FAQ (probably because it is on the front page, of course).
      I'm still not thrilled about the cloud connection option being there, but that should be easily blockable using firewall rules. Good catch!

    8. Re:Cloud Managed? by Anonymous Coward · · Score: 0

      This system requires you to run 2 wires for the rs-485 to each module + power. This is not really convenient.

      It's not convenient, but it is secure, compared to using wireless. At best using wireless leaves you open to a DoS attack, which makes it unsuitable for security use.

      Yeah, but given the choice between a total rework of the house cabling and a module you simply connect to existing wires and it just works, guess which one has the chance of being more popular. This is why I'm going with zwave based home automation. While the hardware is not open source, there is an open source library that allows me to easily communicate with the zwave network (zwave usb adapter required). That said I'll be using it to control just the lights and room temperature.

  3. Piss poor open source by WarJolt · · Score: 3, Informative

    You can't even compile the firmware without paying for a compiler.

    "The firmware of our modules is written in Pic Basic Pro (except for the power measurement module which is written in C). Pic Basic Pro is an easy to use programming language that can be learnt very easily. We provide all source code free of charge (GPLv2 licence). The Pic Basic Pro compiler however is not for free so we ask everyone to play fair and to purchase the compiler (PBP Gold edition that supports the Microchip 18F) from www.melabs.com." - http://wiki.openmotics.com/ind...

    1. Re:Piss poor open source by jones_supa · · Score: 3, Interesting

      The project is still fully open source.

      You could as well download some open source blueprints and assembly instructions for building a nice wooden cabinet, but you still would have to buy the power drill yourself.

    2. Re:Piss poor open source by Hognoxious · · Score: 1

      This is why using the term open source for things other than actual code is bullshit.

      --
      Confucius say, "Find worm in apple - bad. Find half a worm - worse."
    3. Re:Piss poor open source by jones_supa · · Score: 1

      Why would it cover anything than the actual code?

    4. Re:Piss poor open source by turbidostato · · Score: 0

      "The project is still fully open source."

      That's quite arguably.

      The vendor says: "The firmware of our modules is written in Pic Basic Pro [...] We provide all source code free of charge (GPLv2 licence)). The Pic Basic Pro compiler however is not for free"

      And GPLv2 says:

      "The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable."

      The obvious intent of the GPL is for you to get a code in a way that allows you to work with it and get results. What this guys do is against this intent. It is either not allowed by GPLv2 or a gap into the license that should be closed but, in any case, this is not kosher.

    5. Re:Piss poor open source by rdnetto · · Score: 1

      For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable.

      The wording of the GPL is quite clear - it only requires the Makefiles to be included, and even adds an exception for the compiler when included with the OS as a runtime dependency. It doesn't say anything about the requirement to include the compiler.

      Keep in mind that when the GPL was first written, GCC was only 2 years old, and proprietary compilers were unavoidable in many areas. Even today, proprietary compilers are still unavoidable for certain applications. e.g. FPGAs. To require the publishers of open source programs to cover the cost of licensing the compiler for all their users would have been insane, and significantly limited the spread of open source software.

      The obvious intent of the GPL is for you to get a code in a way that allows you to work with it and get results.

      The intention of the GPLv2, to paraphrase Linus Torvalds, is that in exchange for the ability to modify the software to suit yourself, the changes you make can be merged back into the upstream. The GPLv3 places a greater focus on the ability of the user to generate a useful executable, but the v2 was chosen (possibly intentionally) for this instead. Whatever your opinion on v3, their choice of v2 speaks for itself.

      --
      Most human behaviour can be explained in terms of identity.
    6. Re:Piss poor open source by turbidostato · · Score: 1

      "The wording of the GPL is quite clear - it only requires the Makefiles to be included, and even adds an exception for the compiler when included with the OS as a runtime dependency. It doesn't say anything about the requirement to include the compiler."

      In fact, it does. It adds an *exception* to include the compiler when it is already included and easily avaliable along the OS. This implies that when this is not the case, the compiler should be included since otherwise the source can't stand alone.

      Anyway, I see your point. That's why I said "it is either not allowed by GPLv2 or a gap into the license that should be closed"

    7. Re:Piss poor open source by davydagger · · Score: 1

      But its not Free software. Free software specifies that the tools needed to build must also be Free.

  4. Too expensive by photonic · · Score: 3, Interesting

    With 50 euro for a power supply, 100 for a sensor conditioning module (without the sensors!), 300 for a base station and 800 for a complete starter pack, I don't care if it is open source or not, it is way out of budget for the casual hobbyist. There are already enough different alternatives, most of which appear to be vapourware. Home automation seems easy enough that many people who follow the IoT hype start their own project. But we don't need more standards, we need less. The best would be if one of the existing protocols (not necessary that one) would win, so that people could mix and match their own components, which don't have to be more fancy than some arduinos and RPis thrown together.

    --
    karma police: arrest this man, he talks in maths; he buzzes like a fridge, he's like a detuned radio. [radiohead]
    1. Re:Too expensive by Anonymous Coward · · Score: 1

      Indeed. I thought the point of the exercise was to make things more affordable. I got sucked in by the slashvertisement and looked at their prices. It's quite spendy. So if I'm going to spend THAT kind of money, I personally would opt to just pay for whatever is the best integrated solution in that space and be done with it.

      Maybe next time some company backhands slashdot to feature their product, they'll due more due dilligence. I know...I know...but a man can dream....

  5. Certification? by evilad · · Score: 3, Interesting

    How do you get past the certification problem in an open hardware design? I don't know about the rest of the world, but in Canada, you're on very shaky legal ground if you go plugging in equipment that isn't CSA certified.

    Source: am building automation engineer.

    1. Re:Certification? by wertigon · · Score: 2

      That's easy. Hardware once created is permanent. Take the good old NES console - it's still the same old console now, as it was 1985. There's almost 30 years between that!

      Therefore it won't be hard at all to get a consumer device CSA-certified. After all, some company is producing that device, meaning they are in control of how, when and why it is built. That doesn't change even if the hardware is open.

      Open Hardware means the schematics are open for everyone to make use of. It does not mean that you can magically 3D-print your own super-awesome graphics card (atleast not yet) - it would require a lot of time and effort to create that card, even with the help of an RPM (Rapid Prototyping Machine) and open schematics. It is, however, easier to add your own stuff to the hardware and modify it to better suit your own needs, if you have the skill and inclination to do so. Doing that will void your warranty though, so watch out!

      --
      systemd is not an init system. It's a GNU replacement.
    2. Re:Certification? by Anonymous Coward · · Score: 0

      "Easy" if these weren't so sketchy. I really don;t like the loks of some of their boards, and there really is a dearth of isolation, trace gaps, filtering, etc. etc.

      Then again, it's a lot better than what people do with rpi's and their mains wiring sometimes.

      source: am electrical engineer, work on building automation systems in an institutional setting for research

    3. Re:Certification? by evilad · · Score: 1

      It seems like the safety bar is much lower for low-voltage battery powered devices. So your system is probably OK using non-certified components as long as they only collect and provide information, and are never hardwired into the mains, and don't exist inside a junction box.

      Would it work to have a small collection of certified relays, dimmers, motor controllers, etc, all of which can accept input from uncertified devices?

    4. Re:Certification? by evilad · · Score: 1

      It is not difficult, but it is very expensive to get a consumer device CSA or UL approved. You must re-certify for any tiny change in design, or in some cases, for changes in manufacturing process. As I understand it, the certification applies only to the certificate holder, not to anyone else who happens to choose to manufacture from a design that someone else has successfully certified.

      So my question is about how you would safely and legally use the homebuilt result of an open hardware design, where the entire point is that it's easy for John Q Public to change the design.

    5. Re:Certification? by Anonymous Coward · · Score: 0

      Don't get UL certification. Go to an alternative Lab.

    6. Re:Certification? by wertigon · · Score: 1

      If it's a device someone else built that you yourself is trying to replicate in your own environment, then it would be perfectly fine to do so. Those certifications are first and foremost intended as a safeguard measure so that device manufacturers does not sell equipment that are hazardous in any way. Electricity is, after all, not very healthy in large quantities, and neither is radiation.

      However, in your home, noone can tell you what you can and can't build. A home-built device could be every bit as safe as an official one, but since it is home built, there are no guarantees a faulty soldering may, say, bypass a certain part making the product overheat and release poisonous gas. Therefore such a device may not be sold, but it may very well be built, at your own expense and risk.

      --
      systemd is not an init system. It's a GNU replacement.
  6. HomeKit Hub or Driver Required by Anonymous Coward · · Score: 0

    To gain access to the thousands of apps being independently written for HomeKit, these devices need to support HomeKit natively or work with a hub/gateway that can translate. That doesn't mean they can't also support some other protocols (even open source protocols), just that they won't be relevant for much longer to the hundreds of millions of people who will be doing home automation around the globe without support for HomeKit. If they aren't economically relevant then there is no point in investing in their other protocols.

  7. Regarding your suggestion- by arfonrg · · Score: 1

    "OpenHAB - developed in Java" Yeah, no thanks!

    --
    Your thin skin doesn't make me a troll
  8. Must be a day ending in Y by larwe · · Score: 1

    ... because there's a group advertising that it's launching an open-source home automation control platform/protocol/widget. And naturally this is going to be the One Protocol To Bind Them All, there will be a grand unification (about as likely as North and South Korea unifying tomorrow, by the way). The world does not lack "universal" or "open source" HA control protocols and products, it lacks manufacturers willing to support them, or even open their own control systems to support them. If there was such a thing as a truly universal protocol implemented by everybody, then manufacturers of hardware would be totally commoditized and competing solely on price/feature points. As things stand today, manufacturers profit by locking their hardware and software to work only with overpriced accessories and licensed "friend companies", and also by selling compulsory monthly service fees. Oh, and that's not even counting the fact that approximately five people (and all hipsters, at that) actually care about home automation. Home automation is, always has been, and always shall be just five to ten years before going truly mainstream.

  9. Anyone read that... by Anonymous Coward · · Score: 0

    ... As OpenMotif? And wondered what an ugly old X toolkit had to do with home automation?

  10. hardware is the challenge by Anonymous Coward · · Score: 1

    For home automation (or industrial control), it's not the software that's a challenge, or even the hardware schematics. It's *building* the hardware that is the hard part, especially at low cost. 30 years ago, I was dismantling X10 modules to retrofit them into track lighting cans, and I got a real appreciation for how hard it is to make good *inexpensive* controls (X10 is not good, but they were cheap, esp through DAK mailorder). Those X10 units dissipate a lot of heat, and are not tolerant of being hot: the little brown module plugged into a wall socket is isolated and has good ventilation.

    And then there's the whole safety and reliability thing. A hobbyist living alone might be ok with poor grounding and isolation, and live with the occasional unexpected power on/off event, or losing control or sensor devices from transients. But I think the average software schmo with a family is going to find a lot of problems.

    And you really want a wireless solution, either RF (Zigbee, for example) or carrier current (X10). Carrier current, these days, is probably no cheaper than RF, and RF doesn't have anywhere near the interference and propagation issues that carrier current does.

    1. Re:hardware is the challenge by mrchaotica · · Score: 1

      And you really want a wireless solution, either RF (Zigbee, for example) or carrier current (X10). Carrier current, these days, is probably no cheaper than RF, and RF doesn't have anywhere near the interference and propagation issues that carrier current does.

      No, what you really want is a low-voltage wiring standard (which encompasses both power and control, so that you can directly drive LED lighting without having a bunch of 120VAC transformers everywhere). That way you could wire the house once and not have to worry about incompatible proprietary bullshit.

      --

      "[Regarding the 'cloud,'] ownership was what made America different than Russia." -- Woz

  11. Pricing for power measurement by fyngyrz · · Score: 2

    I'm interested in power measurement (rolled my own), so I took a look.

    The ready-to-buy pricing is interesting.

    A power consumption measuring module for 8 lines is £324.00; a common breaker box with a capacity of 40 circuits will require five of these, for a total of £1620.00. Then you'll need 25- or 50-ampere current sensors, 40 of them at £12.00, adding £480.00. Now, if you want remote control through their cloud, add another £295.00 for the gateway module. The power supply module is £50.00. Then you get to subscribe to their cloud solution, I think, an idea I got by the "free one year of cloud subscription" you get with a small bundle of components they sell -- though I didn't find a price for the cloud itself.

    So a one-breaker panel solution seems to be about £2445.00, or at today's exchange rate, $3,843.13.

    That's not horrible for what it does in terms of commercial solutions, but it certainly isn't in the low-end zone, either. You can make a calibrated current sensor for under a dollar if you dig up some surplus ferrite, which I've not found to be particularly difficult (though ferrite isn't the only workable way to go. An optically isolated op amp configured balanced over a tiny resistance also works great.) So roundly, $40 for the ferrite based solution. An op amp and an A/d channel together don't amount to a dollar per either, so another $42 for those (I use a final pair of channels to watch AC voltage and phase at the breaker box, comes in all kinds of handy. Power consumption's not just about current!) Add about $10 worth of digital logic, a $40 Raspberry Pi [there's your computer and wired web server, add $5 to put it all on wifi], roll your own software and PCB or hardwiring, throw in a tiny power supply, and for about $150 US, you've got equally capable -- or better -- measurement capabilities. If you want to be fancy and uber-safe and avoid the whole ferrite space and cost and availability issues, you can add $5/line for another $200 cost for optically isolated op amps would would put you at about $350. And of course there is no need whatsoever for a "cloud." Just a webserver, which the Pi or similar can neatly provide. The Pi is a good choice because it's low power, well supplied with features, and capable and sufficient to the task. You can toss a monitor, keyboard and mouse on there permanently too if you want a fancy at-the-breaker-box position, but you don't actually need to, so I don't count that.

    I did wonder what it'd cost to build from their PCBs, but there doesn't seem to be any way to really figure that out other than doing it. Pretty much has to be less than $3840, though.

    --
    I've fallen off your lawn, and I can't get up.
  12. security missing by Brucutus · · Score: 1

    It seems they're missing home security in their use case. Is it me or do half the home automation solutions seem to forget to integrate hardwired and wireless door/window security. At least with openHAB this is allowed even if a binding needs to be written to interface with the security system.