Skip to content
  • MySensors
  • 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.

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
    #52

    kk cheers, I wonder why it is needing 2 quotes? I will have a better look.

    1 Reply Last reply
    0
    • mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by
      #53

      Here is how to open a private chat. Click the persons name at the top of a post. Then click the blue three-dot menu.

      0_1471554567321_image.png

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

        Ah, sql syntax (according to a website I found) uses double single-quote to escape a single quote when used in a table.

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

          Ok after faffing about for ages I ended up just moving your replace quote code into the database file, keeps it out of the way and seems to work ok if I simulate a room with a quote in it and without.

          It is happy saving names with a quote in to the DB it is just searching after that needs it doubled. Something else learned.

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

            Cool, thanks. I'll grab it so the version I'm running is in sync.

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

              For @simrob problem.

              I think the problem is in the database, and my code of course, With the way I developed it over time I think I added features later that cause a problem with a fresh install because It asks for the room names before it creates them. Where my database already had room names populated before I got to that point.
              Could you install "DB Browser for SQLite" and have a look at the heating.db file that was created. Under brows data there should be a rooms table like mine.

              "4" "Living Room" "1051D6"
              "5" "Dining-Extension" "106FD5"
              "2" "Bathroom" "1051DA"
              "3" "Bedroom 1" "116B63"
              "1" "Bedroom 2" "1163A5"

              If it is empty possibly just adding one record with the correct name and a random GroupID might be enough to get it past the point where it fails so it can fully populate the table. Also I think you must be using an older version as your line numbers don't quite match what I have. Try downloading the vera Virtual Thermostats branch and see if that helps, not saying it will but that will become the main branch when I sync it up.
              I will look at getting in installed again on a blank Pi so I can test and fix this properly. But hopefully putting a line of data in the DB rooms table will get you past the problem.

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

                I have now changed the folder layout on github to make installing easier, also updated some of the files to hopefully stop the error on first run.

                I tried on a blank Raspberry and it all seemed to work ok.

                Give the README instructions a once over and see how it goes.

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

                  After many delays and other items got in the way I finally have almost sully working system. I do have one issue I am struggling with and that is that I can't seem to turn the boiler off once the temperatures have been met.

                  Also is there any way some of the configuration page could be clarified as there are a number of options I am a little unsure about.

                  Thanks

                  1 Reply Last reply
                  0
                  • 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
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          19

                                          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
                                          • MySensors
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular