I am brand new to OpenHAB and home automation. Having bought myself a house (that needs a full rewire!) and a Raspberry Pi (with OpenHAB installed), I am about to have an electrician re-wire the house. However I want to specify the wiring schematic so it is compatible with my plans for Home Automation.
My plans for home automation are:
Heating control for the newly installed underfloor heating.
Lighting control for new LED lights in all/most rooms, including some rooms with lighting scenes, motion detectors etc
Options for blind controls and speakers (To be confirmed)
My first need to is to confirm the wiring requirements for the electrician, considering things like powering LED with 24v or 48v, backup requirements (if RPi or Wifi goes down) and anything else to consider when specifying the wiring.
Also Iām currently looking at HW for lighting and heating. I see that SonOff (https://sonoff.itead.cc/en/) provide very competitive solutions. However I havenāt seen anywhere that they are compatible with OpenHAB. Other brands are available but a much more expensive.
Basically Iām after generally guidance for HW wiring and products to use for a job that starts from scratch, i.e. renovation of a house.
Please help. Any information gratefully received.
BTW Iām based in UK; Suffolk.
Sonoff devices very much work with openHAB - just not out of the box You will need to put a different firmware on them, Tasmota and ESPEasy are two options, and this then allows communication with openHAB via an MQTT server.
Iām putting together my central heating system using OH, Sonoffs and Thermal Actuators. Iām currently in testing mode (looking at moving house in the not-too-distant future) so Iām currently installing Sonoff Basic devices in each room, but when I move I will be wiring as much back to a central location and probably using the 4ch Sonoff devices to minimise the number of separate devices spread out around the house.
My biggest bit of advice would be to run as many types of cable to each possible location as possible - ethernet, mains, low voltage, speaker etc - youāll always find you need the one wire type you didnāt install, and itās cheaper to run more cable than you think you need now than re-run additional later!
Iāll be following and seeing how you get on with some decisions - as Iāll be going through a similar process soon, and of course being in the UK weāll have different options and products available to us than some of our foreign friends here
Hi Garry.
My 1st (naive) question: how to put the new firmware on the sonoff products?..Ah, Iāve just found some youtube vids for Tasmotaā¦ Iāll keep on looking.
Iām tempted to go for some SonOff devices now (at risk), to setup some trialā¦ e.g. wireless relays, wall switches and heating sensors.
Whatās your sonoff shopping list looking like.
Thanks for the wiring advice. Have you had any thought of removing the 240v supply to lights and using lower voltage feed from the controlling relays?
The simplest way is with SonOTA - however it looks like the newer firmware versions are starting to put things in place to stop this from being as easy, but thereās pins on the board that you can program using a USB-Serial adapter.
I currently have 6x Sonoff Basic, 1x TH16 and 1x T1 The TH are quite nice because they give you mains switching and temp/humidity in a single unit
I think Iām going to stick with mains-powered lights - a bigger range available. Iāve never found a need for dimming in anything other than one of our bedrooms, so everywhere else is just currently basic LED bulbs - so I might leave that as is and just have controllable on/off - if I even feel a need for automated lights! (Not convinced Iāve found a usage case for it yet, but time may tell!)
In an ideal world, if you are getting the house rewired, Iād get cat6 (or higher rated) cabling to every point where you may want a home automation device or controller. You can then run devices over wire rather than wifi and you have options available such as PoE (power over ethernet) so save finding local power.
Iād also get the electrician to star wire all the lamp circuits etc back to one control box.
If this is not possible due to time, cost or building design constraints, Iād seriously think of using something like 868MHZ rather than wifi (used in Homematic). Itās much more reliable (IMO) than wifi, can travel much further and sensors can be battery operated as operating and standby current are very low.
Wifi does work but think very carefully about a backup for when you have problems (or your wifi router dies).
Iād agree with others about putting more wires in than you think you need. Iāve put cables in the same trunking three times now, each time thinking there would be enough and Iāve replaced my ethernet switch twice with a bigger model!
This. You need to consider two things when putting home automation in place. What happens if the server goes down, and what happens if Iām not about. Too often thereās a single point of failure and you need a backup. With traditional bulbs and switches anyone can change a lightbulb (and with things like Hue, they can be replaced with a non-smart bulb) but with HA youāre likely to be the only person who knows the server password should something need a nudge.
In our house we have a 433Mhz remote controlled switch that turns on the floor lamp. Although I can control it via Alexa/Openhab, we still have the remote as backup for the times OH or Alexa are down and Iām not around to fix it.
Iām over the border near Newmarket and would love to see what you decide on! Keep us updated on here with your progress
Tom,
Thanks for your reply. I have also been advised to bring all wiring back to a central point, for back reasons, but it does increase the amount of power wiring around the property.
Effectively, bringing cables back from each lighting point and switch point to a wiring cabinet. Maybe mounting relays on the DIN rail for switching the lights.
Iāll try to knock up a wiring diagram plan so you can take a look.
Thanks for your reply. Good to know thereās someone else nearby (I assume you maybe in Cambridge?!), whoās going through a similar task. Itās my Christmas project - Electrician starts in the New Year!!
Even if I donāt get all my items bought and configured I at least want to provide the electrician with a wiring diagram! Iām planning to determine this first, with maybe a couple of test devices to play with.
Also trying to get refamiliar with the OpenHab configā¦
Garry.
This is great advice.
I think I will bite the bullet and go for purchasing some SonOff products.
It is xmas afterall! I will then try to learn how to flash!
I have a few items to be getting on with, i.e. wiring diagram, OpenHAB familiarisation, product choosing, etc.
Live in Soham but work in Cambridge. Weāe taking on our house one room at a time. Main bedroom is next and Iāve got a few ideas already. Motorised blinds is one thought, but Iām not sure if there are any good value options that you can still pull up yourself.
Congratulations to your new Project. Iāve finished nearly the same in April (but located in switzerland).
Maybe you can find some hints in my questions / post (House Renovation)
I recommend you to place some switches to ist traditional places. On one hand its for visitors, and on the other its for failback Szenarios. With fibaro dimmers for example, you can use them as smart input devices (1x click, 2x clickā¦).
As you can read in my post, Iāve decided to go with zWave as main Technology. Ist more reliable and seperated from the attackable wifi (of corse its also attackable, but with much more Technology needed).
Take a look at LED Stripes for lighting. Especially RGBW stripes make wonderfull light.
Good luck with your Project.
If you like to get further information, feel free to contact me.
Thank you for your reply. I will look to read your posts with great interest. And thank you for your offer of assistanceā¦ I might just be asking in the near future.
To be honest I am a little apprehensive as Iām not experienced in SW or device configuration (flashing!?), but I am an engineer and have done (traditional) electrical work in the past.
My initial work required is to makes plan of what the electrician is to complete, i.e. traditional wiring works. Most people have recommended a full back up, by means of bringing all traditional wires back to a central location. Thoughts?
Hi Daniel,
Superhouse might be a great intro for you with regards to the Sonoff devices.
Jon explains things pretty well and has a number of other videos on home automation
He also has links to codes or further information.
It does bear a little thought about how you want automation to work in conjunction with manual controls. āFault backupā and āmanual overrideā are slightly different jobs.
I put automation into a commercial warehouse, the primary job was to auto-on lights in response to presence detection etc. and auto-off after an inactivity timeout. Bonus ability to turn everything on in case of panic alarm for example. (Ideal OpenHAB stuff !)
But also wanted manual wallswitches, both for fallback use (system problem) and for manual override - to force lights on or off for the odd occasions when automation is doing the undesired thing (there are always those!)
Complicated a little more by wanting multiple manual switch locations for any given light zone, like a stairway.
The most cost-effective and low-tech electrical solution I plumped for was to use pulse relays, these respond to (any number of) pushbutton controls to toggle lights on or off. These still work in case of system or network failures.
The automation system can then emulate another pushbutton on each circuit with an output contact.
In a house, youād probably star-wire everything back to a DIN rail relay bank (in my case I have multiple such boxes).
By using a pulse relay with additional contacts, or by adding a cheap ordinary relay to the light circuit, you can have a feedback input to the automation system that allows system to āseeā if the lights are on or off, and so also detect manual switching events.
Rules can then detect āunexpectedā on/off events (manual actions) and e.g. avoid auto-on lights for some period after someone has manually switched lights off.
In my case I chose to do the light duty relay-out and contact-in interfacing via Modbus I/O modules, but any GPIO style method could be used.
Itās not an all-in-one solution, but offers flexibility, robustness, and future proofing (I could replace the central system with something else). In the commercial premises I also needed to take care about CE marking and so on, although I believe SonOff stuff is now approved?
Iāve yet to watch your (Superhouse) videos to see whatās in store, but I plan to do so tomorrow.
Iāll let you know how I get on.
Any further advice would be greatly appreciated.
Thanks for you feedback and information on your commercial property āadventuresā!
I have a couple of questions:
Pulse relays. Do mean (what I know as) latched relays?, i.e. relay that remain energised after the control signal is removed?
Star-wire. I assume you mean bring everything (lighting feeds and switch wiring) back to a central point, so effectively all controlling elements (whether it be switches or relays) are in one location?
Yes, I do intend to build onto a DIN rail, but now I am in possession of some Son-off devices I noticed they just a screw mounted items. mmmmā¦ to sonoff or not to sonoff!?! that is a question!
See my sample devices below, received only yesterday.
Thanks for your information.
Hopefully I can start to get some design work going very soon, so I can hand over some wiring plans to my electrician ASAP.
Just so. The āpulseā name comes from the control signal being a pulse on just one input (some latching relays can have separate on/off inputs). A single button, press to toggle state. Obviously easy to add any number of paralleled buttons or light-duty contacts to control.
Clearly this all about on-off lighting; dimming requires more sophisticated tech but I understand DIN mount dimmers exist (at a price)
Yup, mains lighting circuits back to control box.
It needs a little thought as to how to supply via overcurrent circuit breakers, all via one supply feed is tempting but then you must have all parts and wiring to the rated current e.g. 15A or whatever.
Pushbutton switch circuits back to box (using mains rated low current cable in case of faults or later changes)
My Modbus units are mounted just adjacent to the mains relay box, for convenient short run of low-current signal wires for relay control and state feedback, but keeping electronics out of the mains cabinet.
Just one comms cable is needed to the OpenHAB host which is remote (but neednāt be).
I included a DIN mount DC supply in my boxes as well, to power the Modbus unit, as well as well as a number of PIR and beam sensors.
I guess in a domestic situation, this could all be replaced by a PI and whatever suitable means to give enough in/out contacts
My decision to go this way was driven by
(a) avoid wireless in a steel-framed industrial site, thanks!
(b) but need to cover many circuits over long distances
(c) while containing cost (DMX seems scary priced)
People do seem to have sucess with Z-wave type devices in the home, although Iām not convinced everyone fully solves the issues of manual override and fallback controls.