Skip to content
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. My Project
  3. Boiler control from MAX! Cube to Drayton Boiler via Raspberry Pi/Vera/Mysensors.
  • Getting Started
  • Controller
  • Build
  • Hardware
  • Download/API
  • Forum
  • Store

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

Scheduled Pinned Locked Moved My Project
113 Posts 22 Posters 60.7k Views 24 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    stephenmhall
    wrote on last edited by
    #60

    @twisted I have added a text file to explain the variables. As for not turning the heating off, not sure, remember that normally the Max system will gradually close the valves on the radiators as the temp goes over the requested temp, you will normally get a half degree or so higher. if it never shuts off I don't understand that it just sends the same vera command with a 1 or a 0.

    link to variables file on Git.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      twisted
      wrote on last edited by twisted
      #61

      Just saw the explanation txt appear, thank you so much, it means I can double check what I set was correct.
      Funnily I noticed as it just appeared when I was searching the code to work out a couple of bits.

      1 Reply Last reply
      0
      • René VerbeekR Offline
        René VerbeekR Offline
        René Verbeek
        wrote on last edited by
        #62

        Is the Max Boiler Controller from eq-3 not an option to do this more easily? It was introduced by eq-3 for the British market, but is now not available anymore. Google for BC-TS-Sw2-WM to get the manual from eq-3. Maybe we should push eq-3 to reintroduce this product again.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          stephenmhall
          wrote on last edited by
          #63

          Never seen that before, reading the instructions it looks like it switches the boiler on using a daily timer function like the room heating and and a thermostat temperature, possibly if it switches on if any of the rooms are cold that would work. Not saying mine is better but it monitors the valves and gives you heat on demand when any of the radiators call for it.

          1 Reply Last reply
          0
          • T Offline
            T Offline
            twisted
            wrote on last edited by
            #64

            I have to say using Vera and the boiler switch attached to that is a great solution, if I could just get past one problem. I wonder if anyone else is experiencing this, but I find the time taken for the valves to respond to the temperature changes is a little slow. Lets say I set the required temperature to 19c most rooms jump to 20/21 before the valves close enough to actually prevent further heating to the room.

            My thoughts at the moment are to see if I can somehow directly communicate with the valves or maybe set offsets for each temp on the valves so they read a couple of degrees high.

            Anyone have any thoughts?

            1 Reply Last reply
            0
            • S Offline
              S Offline
              stephenmhall
              wrote on last edited by
              #65

              What I do is only supply heat if valve is open more than 80% or more than 2 valves open 60% so heat shuts off at about 21.9 if you are looking for 22, then the residual heat in the radiator takes temp to about 22.2 before the room starts to slowly cool over the next hour or so down to 21.7 when the valve opens up enough to bring the heat back on.

              1 Reply Last reply
              0
              • S Offline
                S Offline
                Stuart Middleton
                wrote on last edited by
                #66

                twisted, unfortunately you can't directly communicate with the valves. AFAIK the way the work is that they initiate communication with the cube every 2(?) minutes and not the other way around. The cube just listens for the data and then sends data back to the valve. This is to conserve battery so the valve doesn't need to be active all the time. I'm sure stephenmhall will correct me if I'm wrong :)

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  stephenmhall
                  wrote on last edited by
                  #67

                  As far as Cube to valves and valves to cube comms, I think it must be bi-directional as if you change anything on the cube app it happens pretty much instantly. How the cube and valves communicate could be magic for all I know :) they are on the 868Mhz band but what the protocol is I don't know.

                  I recently read about a company in Germany called busware.de that makes a Raspberry interface card that has firmware that speaks MAX protocol, I have sent them an email looking to confirm this but not heard anything back yet. If I could cut the Cube out of my system I would be very happy as it is the least reliable part, it seems to factory reset itself every couple of months.

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    Stuart Middleton
                    wrote on last edited by Stuart Middleton
                    #68

                    Ah, well, I think the cube tells you it happens instantly but queues the requests up and waits to be contacted by a valve. I think that's what the memory slot parameters are for when you get the cube data. It fills them up with outgoing data ready for when the device makes contact. I'm not 100% sure about this but when researching it a while ago (I was going to go down the 868Mhz radio route before I found your project) I'm sure I read that's how it worked. I'll see if I can find the article.

                    1 Reply Last reply
                    0
                    • T Offline
                      T Offline
                      twisted
                      wrote on last edited by
                      #69

                      I'm having a small issue, and I can't see why. I had to reload and now every time I try to load it I get the following before it terminates. This is from fresh install.

                      Traceback (most recent call last):
                      File "main.py", line 204, in <module>
                      Main()
                      File "main.py", line 96, in init
                      self.doLoop()
                      File "main.py", line 111, in doLoop
                      buttonCheckHeat("main")
                      File "/home/pi/PiHeating/heatinggpio.py", line 173, in buttonCheckHeat
                      MaxInterface().checkHeat(0)
                      File "/home/pi/PiHeating/max.py", line 56, in checkHeat
                      self.switchHeat()
                      File "/home/pi/PiHeating/max.py", line 486, in switchHeat
                      roomTemps = CreateUIPage().createRooms()
                      File "/home/pi/PiHeating/webui.py", line 224, in createRooms
                      actualTemp, roomOpen, roomMode)
                      UnboundLocalError: local variable 'roomOpen' referenced before assignment

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        Stuart Middleton
                        wrote on last edited by
                        #70

                        That error suggests you don't have a settings file?

                        1 Reply Last reply
                        0
                        • S Offline
                          S Offline
                          Stuart Middleton
                          wrote on last edited by
                          #71

                          @stephenmhall - I'm getting a lot of issues that seem to plague the MAX system (not your excellent software of course :) ) where the cube forgets the valves randomly or updating timings don't get sent to the valves. I also hate that the realtime temp isn't reported.

                          With this said, I was wondering if you (or anyone else) had seen the BlueTooth version of the valves that they sell. And if so, has anyone taken a peek at the messages to see if the temp is reported? I'd rather control the whole thing via BT than go via the dodgy cube! :)

                          1 Reply Last reply
                          0
                          • Maciej JablonskiM Offline
                            Maciej JablonskiM Offline
                            Maciej Jablonski
                            wrote on last edited by Maciej Jablonski
                            #72

                            Looks eq-3 at least have plans for eq-3 MAX! compatible boiler/hot water controller, the manual is already there, just cannot see the product anywhere.

                            http://www.eq-3.de/Downloads/eq3/downloads_produktkatalog/max/bda/en/BC-TS-Sw2-WM_UM_E_eQ-3_160420.pdf

                            betzaalB 1 Reply Last reply
                            0
                            • ? Offline
                              ? Offline
                              A Former User
                              wrote on last edited by A Former User
                              #73

                              For anyone looking in having a setup like above, theres a way without extra buying the cube or the ccu2 when using homematic thermostats. Please have a look at https://www.homegear.eu , which eliminates the need of those boxes as it runs on a raspberry pi which most of us already have. You will have to add a CUL or better build yourself a NanoCUL (arduino nano + CC1101 ). Homegear does all the pairing and communication (also scripts) and best of all its converting and outputs all the communication via MQTT, so you can use Node Red.

                              1 Reply Last reply
                              0
                              • S Offline
                                S Offline
                                stephenmhall
                                wrote on last edited by
                                #74

                                Damn, just weeks after I changed to a Honeywell system. Talk about bad timing.

                                1 Reply Last reply
                                0
                                • T Offline
                                  T Offline
                                  twisted
                                  wrote on last edited by
                                  #75

                                  FYI, I bought a CC1101 connected it up to an RPI, setup openhab, homegear, the homeatic binding, and within minutes I had all of the devices listed and complete control over them all. Well I can say that is where it has ended, I am struggling to either find pre-written logic or writing my own to control everything. The issue isn't so much writing it as such, but choosing which system should host it. This dilemma exists, as I have everything else in my vera, I am getting into node-red, and now also have openhab/homegear in the loop, I don't want to fracture my set up too much from a control interface point. I like the idea of keeping the WAF where it is, so I will probably still need to have some sort of control via the vera and therefore one of the apps that the other half is still happy with.

                                  1 Reply Last reply
                                  0
                                  • S Offline
                                    S Offline
                                    Stuart Middleton
                                    wrote on last edited by
                                    #76

                                    I've got a CC1101 on its way from China. I'm hoping it'll be here soon. My plan was to rewrite the excellent Python code from this page to talk to them directly rather than through the cube. Currently, I don't have an off the shelf home system. I'm kind of writing it all myself as I go (maybe a mistake, I know). I'll let you know how I get on when mine arrives.

                                    T 1 Reply Last reply
                                    0
                                    • S Stuart Middleton

                                      I've got a CC1101 on its way from China. I'm hoping it'll be here soon. My plan was to rewrite the excellent Python code from this page to talk to them directly rather than through the cube. Currently, I don't have an off the shelf home system. I'm kind of writing it all myself as I go (maybe a mistake, I know). I'll let you know how I get on when mine arrives.

                                      T Offline
                                      T Offline
                                      twisted
                                      wrote on last edited by
                                      #77

                                      @Stuart-Middleton Although I mentioned my difficulties, I would suggest that you at least have a look at homegear and openhab (or the openhabian bundle to make it easier) as it does give great access to the devices and opens up very easy use of MQTT.

                                      1 Reply Last reply
                                      0
                                      • S Offline
                                        S Offline
                                        Stuart Middleton
                                        wrote on last edited by
                                        #78

                                        Thanks. I'll take a look at that first.

                                        T 1 Reply Last reply
                                        0
                                        • S Stuart Middleton

                                          Thanks. I'll take a look at that first.

                                          T Offline
                                          T Offline
                                          twisted
                                          wrote on last edited by
                                          #79

                                          @Stuart-Middleton attached is an example of the items that get loaded when connected to openhab2 via homegear and the homematic binding.0_1484525182006_Rad1-Paper UI.png 0_1484525185963_Rad2-PaperUI.png 0_1484525188699_Thermostat-PaperUI.png

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          13

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.0k

                                          Posts


                                          Copyright 2019 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular