Boiler control from MAX! Cube to Drayton Boiler via Raspberry Pi/Vera/Mysensors.

  • Wow Stu, quick reply.

    What you've built is basically what I'm after, but from what I've read the Cube can be temperamental.

    I do have RPi somewhere, so to have a play I may get a CC1101,
    MAX! Wireless wall mount thermostat - BC-TC-C-WM-4 / 131651
    MAX! TRV - BC-RT-TRX-CyN / 142016A0A

    I would like to control the system from my mobile so if I'm out late there's no point in the heating being on. There are some HomeMatic apps out there which work with openhab etc, but maybe using your web interface would be easier.


  • Hey, Anthony.

    Yeah, the cube is the temperamental bit. It forgets the sensors every few weeks/months.

    I have opened up the python web page to the web, secured behind a password, and it's OK to use. I mainly use it to monitor the system and look at the pretty graphs. I think the CC1101 with OpenHAB or custom software is the way to go.

    Let me know if you get the Pi and CC1101 installed. I can't recall exactly what was wrong but I think it may be one of the packages that it tries to download no longer exists. It's something I really want to get fully working the way I want it, but to be honest it does a good job anyway.


  • Hi Anthony.

    Funnily enough I went from the MAX system to a Honeywell Evo system and Domoticz as I have elderly parents and could not risk the times the max just forgot about all its radiators and either left the heating off or on all day.

    Had the Evo for maybe a year now with no problems. The only thing I miss with the evo is notification as to when the heating is actually on. And being able to work on my code as I did enjoy writing it.

    If you need any help with the code just ask, although it has been a while since I looked at it 🙂


  • NIce post.. I was looking at adding boiler control to my max eq3 system and this looks fab

  • Hey all,

    I want to revive an old thread here. Ive been chatting to Stephen via github and plan to extend , perhaps take over?, development of his PiHeating package on github..

    Ive created my own fork (based on twistedsanity as he added some nice docker defns) and I plan to make massive changes to it.. By trade Im a Java/Javascript developer and Im using this project as an excuse to learn/play with Python

    1. Please review my github issues Ive logged, Id love to know if people agree/disagree
    2. Are there many MAX! Users out there? if there are then I'll invest time in making the code read-able, and pluggable with HA controllers like HomeAssistant.. If there isnt much interest then I'll trim the code down to my needs (remove vera etc)
    3. Any other suggestions?? please log a Github issue and I'll look at it..

    @twisted : are you twistedsanity on github?

    My github repo is here

  • This post is deleted!

  • Hey all,

    Well after long sessions of trial and error Ive given up on the Max! +Raspberry pi based on Stephens code. Regardless of how frequently you scan the max!cube it eventually looses its memory after 4-8 weeks.. Usually when Im not at home and thats not acceptable..

    Shame as my setup with HomeAssistant was "perfect":-(

  • @angelos I was looking into the MAX setup initially but reports of the Cube falling over put me off completely, even where some appeared to have ZERO problems. Some seemed to have circumvented the problems by reflashing the Cube (hazy recollection) but cannot remember the details of who where what, as I discarded it when a plug-in card for the Pi3 was released by the parent company (ELV?).
    I took it no further as I had set a target to cover all improvements from energy savings, so the budget didn't stretch to it having added insulation and improved Rad Valves, as well as the increased pricing on the market.
    If any of that info is potentially any help, pm me and I'll dig out what I found.

  • @stephenmhall


    I have just installed a Max system, 17 TRV's, 4 Room stats and a cube. I also have a Danfoss wireless stat for controlling the boiler. I was wondering how to get boiler control with the Max because currently the boiler runs all day. I then found your project. It looks a bit advanced for me though. I was thinking of using a Sonoff device just so I could switch the boiler on/off at my leisure for a quick fix. I have never used a RPi before. I see you have now changed to an Evo system was the Max that unreliable?

  • @w1ldf1re While you are waiting...
    Pardon my interest and confusion, but if your Danfoss stat (presumably from a single area sensor) is controlling the boiler, how does the Cube connect to it, and if the Danfoss is connected, why does the boiler run all day?
    The discontinuation of the Cube compatible boiler relay due to lack of sales put me off the Cube, and quite a few complaints over reliability sealed it.
    My next notion was to go for a Pi3 Homematic controller which was allegedly Max compatible (see - Bausatz) but when prices shot up I abandoned it for better valves/TRVs instead.
    Right now I'm looking at paralleling the existing commercial (Danfoss type) boiler relay with an Arduino fired one fed temperatures for all the rooms to cope with deep winters where the top floor can plunge, but they are quite separate controls.
    If you can find a relay (Schaltaktor) which can be called by the Cube, you should be good to go, the parallel system I would suggest better in case your Cube has a brainfart... Just my 2c...

  • Hi folks,

    i bought a MAX! set month ago including MAX Cube, 4 Valves and some window sensors. Now i want to use this project to be able to switch on and off gas boiler, which is operated by remote thermostat at this moment.
    So far, i've got it runing, but i have a problem with room temperature reading.
    I have four rooms, two are read correclty, but another two shows temperature and set temperature as 255, the Valve % seems to coresponds to other rooms somehow.

    I hope this thread/project is not completely dead and somebody can help me with it ... thanks guys!

    EDIT: I have resolved the relay issue described in my original post, so i removed that question. It was caused by wrong configuration in variables.txt

    (sorry for my poor english)

  • Ok, it works. Looks like the problem was caused by windows sensors that were not connected but initialized, so they were missing.
    I removed them in the MAX software and then everything was displayed correctly.
    Thank you for this great project! 👍

  • This post is deleted!