Maxcube EQ3 Max!

For heating/cooling related questions in Domoticz
Post Reply
twimpy
Posts: 37
Joined: Saturday 25 January 2014 15:06
Target OS: Raspberry Pi
Domoticz version: V2.3790
Contact:

Maxcube EQ3 Max!

Post by twimpy » Wednesday 14 February 2018 15:50

Hi,
I am not a developer but found a some interesting links on a Homey forum.
I know there is another topic EQ3 max but for me it is very buggy and difficult to install.
Maybe this is news maxcube posted some java scripts on git hub to make it more easy to get the data from the Maxcube to intergrade with other software.
I am writing this hoping some Domoticz developer can do something with it. Or help me to find the right direction to implement it.
I think it would be very nice when it is added to Domoticz hardware. When so I surely want to be an tester for it!
Just take a look at below links maybe it is not so difficult anymore..
https://github.com/ivesdebruycker/maxcube
https://github.com/ivesdebruycker/maxcube-cli
https://github.com/ivesdebruycker/node- ... ib-maxcube

I managed to install the software and I am able to start the maxcube cli.

/Wim
Attachments
2018-02-16 10_10_59-1. root@172.25.5.52.png
2018-02-16 10_10_59-1. root@172.25.5.52.png (39.94 KiB) Viewed 1160 times

erkamp
Posts: 1
Joined: Sunday 14 October 2018 12:35
Target OS: Linux
Domoticz version: 4.9913
Location: Soest / NL
Contact:

Re: Maxcube EQ3 Max!

Post by erkamp » Sunday 14 October 2018 13:24

I've been playing with node-red-contrib-maxcube. Seems to be working, except for reading the current temperature from the valves.
The code still needs (a lot of) clean up at the moment, and maybe there is to much feedback from Max! to Domoticz, but that's usefull for testing for now.

You'll need
- Domoticz (Duh..)
- Mqtt broker like Mosquitto
- Node Red
- node-red-contrib-maxcube

My config :
Max!:
Valve livingroom: 1184b5
Valve bedroom : 0f946f
Thermostat livingroom : 19cdb2
Maxcube : 11896f

Domoticz Idx :

Code: Select all

Setting Max! from Domoticz
121 Setpoint thermostaat livingroom
138 Setpoint thermostaat bedroom
141 Selector set mode livingroom
142 Selector set mode bedroom
Reporting Max! to Domoticz
143 Temp set in livingroom
144 Temp set in bedroom
145 Temp current livingroom valve
146 Temp current bedroom valve
147 Temp current livingroom thermostat
148 Selector mode feedback livingroom
149 Selector mode feedback bedroom
150 Temp eco livingroom
151 Temp eco bedroom
152 Temp comfort livingroom
153 Temp comfort bedroom
154 Percent valve livingroom
155 Percent valve bedroom
156 Switch battery livingroom
157 Switch battery bedroom

Selector MANUAL=0, AUTO=10, VACATION=20 (TODO : Add 'Boost')
Node Red flow :

Code: Select all

[
    {
        "id": "ca492a55.506508",
        "type": "tab",
        "label": "MaxCube",
        "disabled": false,
        "info": ""
    },
    {
        "id": "b53ac4c2.65238",
        "type": "mqtt in",
        "z": "ca492a55.506508",
        "name": "",
        "topic": "domoticz/out",
        "qos": "0",
        "broker": "985ea0e5.e3d77",
        "x": 130,
        "y": 100,
        "wires": [
            [
                "16addbcc.25de64"
            ]
        ]
    },
    {
        "id": "77e0eb89.f98884",
        "type": "switch",
        "z": "ca492a55.506508",
        "name": "Get max idx",
        "property": "payload.idx",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "121",
                "vt": "str"
            },
            {
                "t": "eq",
                "v": "138",
                "vt": "str"
            },
            {
                "t": "eq",
                "v": "141",
                "vt": "str"
            },
            {
                "t": "eq",
                "v": "142",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 4,
        "x": 170,
        "y": 200,
        "wires": [
            [
                "15932cd3.145beb"
            ],
            [
                "5538a551.26686c"
            ],
            [
                "90ebd2ee.2fe1e"
            ],
            [
                "e79230a6.3674c"
            ]
        ]
    },
    {
        "id": "16addbcc.25de64",
        "type": "json",
        "z": "ca492a55.506508",
        "name": "",
        "property": "payload",
        "action": "",
        "pretty": false,
        "x": 330,
        "y": 100,
        "wires": [
            [
                "77e0eb89.f98884"
            ]
        ]
    },
    {
        "id": "26bada17.0e25ce",
        "type": "maxcube in",
        "z": "ca492a55.506508",
        "server": "f3616d46.a04ae",
        "x": 700,
        "y": 420,
        "wires": []
    },
    {
        "id": "8933c9a3.a24f4",
        "type": "inject",
        "z": "ca492a55.506508",
        "name": "",
        "topic": "",
        "payload": "true",
        "payloadType": "bool",
        "repeat": "31",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "x": 150,
        "y": 820,
        "wires": [
            [
                "e919e27.b88bea"
            ]
        ]
    },
    {
        "id": "42fc170b.eb6188",
        "type": "range",
        "z": "ca492a55.506508",
        "minin": "4.5",
        "maxin": "30.5",
        "minout": "4.5",
        "maxout": "30.5",
        "action": "clamp",
        "round": false,
        "property": "payload.degrees",
        "name": "Limit range 4.5 - 30.5",
        "x": 460,
        "y": 380,
        "wires": [
            [
                "a103a829.f3ed3"
            ]
        ]
    },
    {
        "id": "e2f61bbb.4348a",
        "type": "range",
        "z": "ca492a55.506508",
        "minin": "4.5",
        "maxin": "30.5",
        "minout": "4.5",
        "maxout": "30.5",
        "action": "clamp",
        "round": false,
        "property": "payload.svalue1",
        "name": "Limit range 4.5 - 30.5",
        "x": 460,
        "y": 300,
        "wires": [
            [
                "ba53fc95.94322"
            ]
        ]
    },
    {
        "id": "cfc237c6.b24e5",
        "type": "comment",
        "z": "ca492a55.506508",
        "name": "Adressen Max!",
        "info": "Kraan woonkamer       : 1184b5\nKraan slaapkamer      : 0f946f\nThermostaat woonkamer : 19cdb2\nMaxcube               : 11896f\n",
        "x": 320,
        "y": 40,
        "wires": []
    },
    {
        "id": "e919e27.b88bea",
        "type": "maxcube out",
        "z": "ca492a55.506508",
        "server": "f3616d46.a04ae",
        "singleMessage": false,
        "x": 320,
        "y": 820,
        "wires": [
            [
                "840a88a7.977028"
            ]
        ]
    },
    {
        "id": "840a88a7.977028",
        "type": "switch",
        "z": "ca492a55.506508",
        "name": "Split devices",
        "property": "payload.rf_address",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "1184b5",
                "vt": "str"
            },
            {
                "t": "eq",
                "v": "0f94d6",
                "vt": "str"
            },
            {
                "t": "eq",
                "v": "19cdb2",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 3,
        "x": 130,
        "y": 1020,
        "wires": [
            [
                "50eb27f4.9b68c8",
                "76420a82.b82d1c",
                "e9c45154.0876e8",
                "8b57ff38.33c348",
                "ec3d84ab.e76978"
            ],
            [
                "cae00144.b84c98",
                "83db1e41.d6af7",
                "147a3f1a.1edda1",
                "58efd8f4.8c2988",
                "c6a46469.b09888"
            ],
            [
                "7035c75e.aa66f"
            ]
        ]
    },
    {
        "id": "50eb27f4.9b68c8",
        "type": "template",
        "z": "ca492a55.506508",
        "name": "Temp set woon",
        "field": "payload",
        "fieldType": "msg",
        "format": "handlebars",
        "syntax": "mustache",
        "template": "{{payload.setpoint}}",
        "output": "str",
        "x": 380,
        "y": 920,
        "wires": [
            [
                "ec6ecc2a.c0b978"
            ]
        ]
    },
    {
        "id": "15932cd3.145beb",
        "type": "function",
        "z": "ca492a55.506508",
        "name": "Make msg",
        "func": "var mode_woon=flow.get('mode_woon') || \"MANUAL\";\n\nmsg.payload = {rf_address:\"19cdb2\", degrees:msg.payload.svalue1, mode:mode_woon};\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 210,
        "y": 300,
        "wires": [
            [
                "e2f61bbb.4348a"
            ]
        ]
    },
    {
        "id": "5538a551.26686c",
        "type": "function",
        "z": "ca492a55.506508",
        "name": "Make msg",
        "func": "var mode_slaap=flow.get('mode_slaap') || \"MANUAL\";\n\nmsg.payload = {rf_address:\"0f94d6\", degrees:msg.payload.svalue1, mode:mode_slaap};\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 210,
        "y": 380,
        "wires": [
            [
                "42fc170b.eb6188"
            ]
        ]
    },
    {
        "id": "cae00144.b84c98",
        "type": "template",
        "z": "ca492a55.506508",
        "name": "Temp set slaap",
        "field": "payload",
        "fieldType": "msg",
        "format": "handlebars",
        "syntax": "mustache",
        "template": "{{payload.setpoint}}",
        "output": "str",
        "x": 380,
        "y": 960,
        "wires": [
            [
                "bcba456d.0b2d2"
            ]
        ]
    },
    {
        "id": "76420a82.b82d1c",
        "type": "template",
        "z": "ca492a55.506508",
        "name": "Mode",
        "field": "payload",
        "fieldType": "msg",
        "format": "handlebars",
        "syntax": "mustache",
        "template": "{{payload.mode}}",
        "output": "str",
        "x": 350,
        "y": 1020,
        "wires": [
            [
                "3c5570dd.914058"
            ]
        ]
    },
    {
        "id": "83db1e41.d6af7",
        "type": "template",
        "z": "ca492a55.506508",
        "name": "Mode",
        "field": "payload",
        "fieldType": "msg",
        "format": "handlebars",
        "syntax": "mustache",
        "template": "{{payload.mode}}",
        "output": "str",
        "x": 350,
        "y": 1060,
        "wires": [
            [
                "8fe8218.5a3be6"
            ]
        ]
    },
    {
        "id": "e9c45154.0876e8",
        "type": "template",
        "z": "ca492a55.506508",
        "name": "Valve",
        "field": "payload",
        "fieldType": "msg",
        "format": "handlebars",
        "syntax": "mustache",
        "template": "{{payload.valve}}",
        "output": "str",
        "x": 350,
        "y": 1120,
        "wires": [
            [
                "285cae97.4046ea"
            ]
        ]
    },
    {
        "id": "147a3f1a.1edda1",
        "type": "template",
        "z": "ca492a55.506508",
        "name": "Valve",
        "field": "payload",
        "fieldType": "msg",
        "format": "handlebars",
        "syntax": "mustache",
        "template": "{{payload.valve}}",
        "output": "str",
        "x": 350,
        "y": 1160,
        "wires": [
            [
                "1854cd84.a4868a"
            ]
        ]
    },
    {
        "id": "8b57ff38.33c348",
        "type": "template",
        "z": "ca492a55.506508",
        "name": "Batt",
        "field": "payload",
        "fieldType": "msg",
        "format": "handlebars",
        "syntax": "mustache",
        "template": "{{payload.battery_low}}",
        "output": "str",
        "x": 350,
        "y": 1220,
        "wires": [
            [
                "966d47c6.dc6838"
            ]
        ]
    },
    {
        "id": "58efd8f4.8c2988",
        "type": "template",
        "z": "ca492a55.506508",
        "name": "Batt",
        "field": "payload",
        "fieldType": "msg",
        "format": "handlebars",
        "syntax": "mustache",
        "template": "{{payload.battery_low}}",
        "output": "str",
        "x": 350,
        "y": 1260,
        "wires": [
            [
                "f7eef7bd.15691"
            ]
        ]
    },
    {
        "id": "ec3d84ab.e76978",
        "type": "template",
        "z": "ca492a55.506508",
        "name": "Temp Woon",
        "field": "payload",
        "fieldType": "msg",
        "format": "handlebars",
        "syntax": "mustache",
        "template": "{{payload.temp}}",
        "output": "str",
        "x": 370,
        "y": 1320,
        "wires": [
            [
                "9d3bb859.d22a58"
            ]
        ]
    },
    {
        "id": "c6a46469.b09888",
        "type": "template",
        "z": "ca492a55.506508",
        "name": "Temp Slaap",
        "field": "payload",
        "fieldType": "msg",
        "format": "handlebars",
        "syntax": "mustache",
        "template": "{{payload.temp}}",
        "output": "str",
        "x": 370,
        "y": 1360,
        "wires": [
            [
                "12d2e154.cc13df"
            ]
        ]
    },
    {
        "id": "7035c75e.aa66f",
        "type": "template",
        "z": "ca492a55.506508",
        "name": "Temp Thermos",
        "field": "payload",
        "fieldType": "msg",
        "format": "handlebars",
        "syntax": "mustache",
        "template": "{{payload.temp}}",
        "output": "str",
        "x": 380,
        "y": 1400,
        "wires": [
            [
                "37fe16c9.88b43a"
            ]
        ]
    },
    {
        "id": "b1454c3d.6a443",
        "type": "maxcube device config",
        "z": "ca492a55.506508",
        "server": "f3616d46.a04ae",
        "singleMessage": false,
        "x": 400,
        "y": 1500,
        "wires": [
            [
                "34304d48.9d7692"
            ]
        ]
    },
    {
        "id": "34304d48.9d7692",
        "type": "switch",
        "z": "ca492a55.506508",
        "name": "Split devices",
        "property": "payload.rf_address",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "1184b5",
                "vt": "str"
            },
            {
                "t": "eq",
                "v": "0f94d6",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 150,
        "y": 1640,
        "wires": [
            [
                "2ab9e5c1.b2e88a",
                "4ae36151.e60be"
            ],
            [
                "aa80d9f4.554ce8",
                "e1640f0b.bb77d8"
            ]
        ]
    },
    {
        "id": "2ab9e5c1.b2e88a",
        "type": "template",
        "z": "ca492a55.506508",
        "name": "Eco",
        "field": "payload",
        "fieldType": "msg",
        "format": "handlebars",
        "syntax": "mustache",
        "template": "{{payload.eco_temp}}",
        "output": "str",
        "x": 350,
        "y": 1580,
        "wires": [
            [
                "134617f0.1645e"
            ]
        ]
    },
    {
        "id": "aa80d9f4.554ce8",
        "type": "template",
        "z": "ca492a55.506508",
        "name": "Eco",
        "field": "payload",
        "fieldType": "msg",
        "format": "handlebars",
        "syntax": "mustache",
        "template": "{{payload.eco_temp}}",
        "output": "str",
        "x": 350,
        "y": 1620,
        "wires": [
            [
                "783460cb.9f249"
            ]
        ]
    },
    {
        "id": "4ae36151.e60be",
        "type": "template",
        "z": "ca492a55.506508",
        "name": "Comfort",
        "field": "payload",
        "fieldType": "msg",
        "format": "handlebars",
        "syntax": "mustache",
        "template": "{{payload.comfort_temp}}",
        "output": "str",
        "x": 360,
        "y": 1680,
        "wires": [
            [
                "67d7de6a.9d9968"
            ]
        ]
    },
    {
        "id": "e1640f0b.bb77d8",
        "type": "template",
        "z": "ca492a55.506508",
        "name": "Comfort",
        "field": "payload",
        "fieldType": "msg",
        "format": "handlebars",
        "syntax": "mustache",
        "template": "{{payload.comfort_temp}}",
        "output": "str",
        "x": 360,
        "y": 1720,
        "wires": [
            [
                "7b1c7fd8.32f878"
            ]
        ]
    },
    {
        "id": "a817540c.01538",
        "type": "inject",
        "z": "ca492a55.506508",
        "name": "",
        "topic": "",
        "payload": "true",
        "payloadType": "bool",
        "repeat": "1860",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "x": 170,
        "y": 1500,
        "wires": [
            [
                "b1454c3d.6a443"
            ]
        ]
    },
    {
        "id": "90ebd2ee.2fe1e",
        "type": "change",
        "z": "ca492a55.506508",
        "name": "Convert level -> text",
        "rules": [
            {
                "t": "change",
                "p": "payload.svalue1",
                "pt": "msg",
                "from": "20",
                "fromt": "num",
                "to": "VACATION",
                "tot": "str"
            },
            {
                "t": "change",
                "p": "payload.svalue1",
                "pt": "msg",
                "from": "10",
                "fromt": "num",
                "to": "AUTO",
                "tot": "str"
            },
            {
                "t": "change",
                "p": "payload.svalue1",
                "pt": "msg",
                "from": "0",
                "fromt": "num",
                "to": "MANUAL",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 240,
        "y": 500,
        "wires": [
            [
                "fd103151.5c903"
            ]
        ]
    },
    {
        "id": "fd103151.5c903",
        "type": "function",
        "z": "ca492a55.506508",
        "name": "Make msg",
        "func": "var temp_woon=flow.get('temp_woon') || 10;\nflow.set('mode_woon',msg.payload.svalue1);\n\nmsg.payload = {rf_address:\"19cdb2\", degrees:temp_woon, mode:msg.payload.svalue1};\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 470,
        "y": 500,
        "wires": [
            [
                "26bada17.0e25ce"
            ]
        ]
    },
    {
        "id": "e79230a6.3674c",
        "type": "change",
        "z": "ca492a55.506508",
        "name": "Convert level -> text",
        "rules": [
            {
                "t": "change",
                "p": "payload.svalue1",
                "pt": "msg",
                "from": "20",
                "fromt": "num",
                "to": "VACATION",
                "tot": "str"
            },
            {
                "t": "change",
                "p": "payload.svalue1",
                "pt": "msg",
                "from": "10",
                "fromt": "num",
                "to": "AUTO",
                "tot": "str"
            },
            {
                "t": "change",
                "p": "payload.svalue1",
                "pt": "msg",
                "from": "0",
                "fromt": "num",
                "to": "MANUAL",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 240,
        "y": 580,
        "wires": [
            [
                "2fdd34fc.3fe1dc"
            ]
        ]
    },
    {
        "id": "2fdd34fc.3fe1dc",
        "type": "function",
        "z": "ca492a55.506508",
        "name": "Make msg",
        "func": "var temp_slaap=flow.get('temp_slaap') || 10;\nflow.set('mode_slaap',msg.payload.svalue1);\n\nmsg.payload = {rf_address:\"0f94d6\", degrees:temp_slaap, mode:msg.payload.svalue1};\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 470,
        "y": 580,
        "wires": [
            [
                "26bada17.0e25ce"
            ]
        ]
    },
    {
        "id": "a103a829.f3ed3",
        "type": "function",
        "z": "ca492a55.506508",
        "name": "Store temp_slaap",
        "func": "flow.set('temp_slaap',msg.payload.degrees);\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 490,
        "y": 420,
        "wires": [
            [
                "26bada17.0e25ce"
            ]
        ]
    },
    {
        "id": "ec6ecc2a.c0b978",
        "type": "function",
        "z": "ca492a55.506508",
        "name": "Fill msg",
        "func": "var tmp = msg.payload;\n\nmsg.payload = {};\nmsg.payload.idx = 143;\nmsg.payload.nvalue = 0;\nmsg.payload.svalue = tmp;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 560,
        "y": 920,
        "wires": [
            [
                "a22e36ed.de85d"
            ]
        ]
    },
    {
        "id": "bcba456d.0b2d2",
        "type": "function",
        "z": "ca492a55.506508",
        "name": "Fill msg",
        "func": "var tmp = msg.payload;\n\nmsg.payload = {};\nmsg.payload.idx = 144;\nmsg.payload.nvalue = 0;\nmsg.payload.svalue = tmp;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 560,
        "y": 960,
        "wires": [
            [
                "a22e36ed.de85d"
            ]
        ]
    },
    {
        "id": "a22e36ed.de85d",
        "type": "mqtt out",
        "z": "ca492a55.506508",
        "name": "",
        "topic": "domoticz/in",
        "qos": "",
        "retain": "",
        "broker": "985ea0e5.e3d77",
        "x": 930,
        "y": 1160,
        "wires": []
    },
    {
        "id": "9d3bb859.d22a58",
        "type": "function",
        "z": "ca492a55.506508",
        "name": "Fill msg",
        "func": "var tmp = msg.payload;\n\nmsg.payload = {};\nmsg.payload.idx = 145;\nmsg.payload.nvalue = 0;\nmsg.payload.svalue = tmp;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 570,
        "y": 1320,
        "wires": [
            [
                "a22e36ed.de85d"
            ]
        ]
    },
    {
        "id": "12d2e154.cc13df",
        "type": "function",
        "z": "ca492a55.506508",
        "name": "Fill msg",
        "func": "var tmp = msg.payload;\n\nmsg.payload = {};\nmsg.payload.idx = 146;\nmsg.payload.nvalue = 0;\nmsg.payload.svalue = tmp;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 570,
        "y": 1360,
        "wires": [
            [
                "a22e36ed.de85d"
            ]
        ]
    },
    {
        "id": "37fe16c9.88b43a",
        "type": "function",
        "z": "ca492a55.506508",
        "name": "Fill msg",
        "func": "var tmp = msg.payload;\n\nmsg.payload = {};\nmsg.payload.idx = 147;\nmsg.payload.nvalue = 0;\nmsg.payload.svalue = tmp;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 570,
        "y": 1400,
        "wires": [
            [
                "a22e36ed.de85d"
            ]
        ]
    },
    {
        "id": "3c5570dd.914058",
        "type": "change",
        "z": "ca492a55.506508",
        "name": "",
        "rules": [
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "MANUAL",
                "fromt": "str",
                "to": "0",
                "tot": "num"
            },
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "AUTO",
                "fromt": "str",
                "to": "10",
                "tot": "num"
            },
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "VACATION",
                "fromt": "str",
                "to": "20",
                "tot": "num"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 520,
        "y": 1020,
        "wires": [
            [
                "35b534c0.45cd54"
            ]
        ]
    },
    {
        "id": "8fe8218.5a3be6",
        "type": "change",
        "z": "ca492a55.506508",
        "name": "",
        "rules": [
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "MANUAL",
                "fromt": "str",
                "to": "0",
                "tot": "num"
            },
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "AUTO",
                "fromt": "str",
                "to": "10",
                "tot": "num"
            },
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "VACATION",
                "fromt": "str",
                "to": "20",
                "tot": "num"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 520,
        "y": 1060,
        "wires": [
            [
                "853ab6df.bac998"
            ]
        ]
    },
    {
        "id": "35b534c0.45cd54",
        "type": "function",
        "z": "ca492a55.506508",
        "name": "Fill msg",
        "func": "var tmp = msg.payload;\n\nmsg.payload = {};\nmsg.payload.command = \"switchlight\"\nmsg.payload.idx = 148;\nmsg.payload.switchcmd = \"Set Level\"\nmsg.payload.level = tmp;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 700,
        "y": 1020,
        "wires": [
            [
                "a22e36ed.de85d"
            ]
        ]
    },
    {
        "id": "853ab6df.bac998",
        "type": "function",
        "z": "ca492a55.506508",
        "name": "Fill msg",
        "func": "var tmp = msg.payload;\n\nmsg.payload = {};\nmsg.payload.command = \"switchlight\"\nmsg.payload.idx = 149;\nmsg.payload.switchcmd = \"Set Level\"\nmsg.payload.level = tmp;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 700,
        "y": 1060,
        "wires": [
            [
                "a22e36ed.de85d"
            ]
        ]
    },
    {
        "id": "134617f0.1645e",
        "type": "function",
        "z": "ca492a55.506508",
        "name": "Fill msg",
        "func": "var tmp = msg.payload;\n\nmsg.payload = {};\nmsg.payload.idx = 150;\nmsg.payload.nvalue = 0;\nmsg.payload.svalue = tmp;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 580,
        "y": 1580,
        "wires": [
            [
                "9921c34e.44fd3"
            ]
        ]
    },
    {
        "id": "783460cb.9f249",
        "type": "function",
        "z": "ca492a55.506508",
        "name": "Fill msg",
        "func": "var tmp = msg.payload;\n\nmsg.payload = {};\nmsg.payload.idx = 151;\nmsg.payload.nvalue = 0;\nmsg.payload.svalue = tmp;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 580,
        "y": 1620,
        "wires": [
            [
                "9921c34e.44fd3"
            ]
        ]
    },
    {
        "id": "67d7de6a.9d9968",
        "type": "function",
        "z": "ca492a55.506508",
        "name": "Fill msg",
        "func": "var tmp = msg.payload;\n\nmsg.payload = {};\nmsg.payload.idx = 152;\nmsg.payload.nvalue = 0;\nmsg.payload.svalue = tmp;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 580,
        "y": 1680,
        "wires": [
            [
                "9921c34e.44fd3"
            ]
        ]
    },
    {
        "id": "7b1c7fd8.32f878",
        "type": "function",
        "z": "ca492a55.506508",
        "name": "Fill msg",
        "func": "var tmp = msg.payload;\n\nmsg.payload = {};\nmsg.payload.idx = 153;\nmsg.payload.nvalue = 0;\nmsg.payload.svalue = tmp;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 580,
        "y": 1720,
        "wires": [
            [
                "9921c34e.44fd3"
            ]
        ]
    },
    {
        "id": "9921c34e.44fd3",
        "type": "mqtt out",
        "z": "ca492a55.506508",
        "name": "",
        "topic": "domoticz/in",
        "qos": "",
        "retain": "",
        "broker": "985ea0e5.e3d77",
        "x": 760,
        "y": 1660,
        "wires": []
    },
    {
        "id": "285cae97.4046ea",
        "type": "function",
        "z": "ca492a55.506508",
        "name": "Fill msg",
        "func": "var tmp = msg.payload;\n\nmsg.payload = {};\nmsg.payload.idx = 154;\nmsg.payload.nvalue = 0;\nmsg.payload.svalue = tmp;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 560,
        "y": 1120,
        "wires": [
            [
                "a22e36ed.de85d"
            ]
        ]
    },
    {
        "id": "1854cd84.a4868a",
        "type": "function",
        "z": "ca492a55.506508",
        "name": "Fill msg",
        "func": "var tmp = msg.payload;\n\nmsg.payload = {};\nmsg.payload.idx = 155;\nmsg.payload.nvalue = 0;\nmsg.payload.svalue = tmp;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 560,
        "y": 1160,
        "wires": [
            [
                "a22e36ed.de85d"
            ]
        ]
    },
    {
        "id": "966d47c6.dc6838",
        "type": "change",
        "z": "ca492a55.506508",
        "name": "",
        "rules": [
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "true",
                "fromt": "str",
                "to": "0",
                "tot": "num"
            },
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "false",
                "fromt": "str",
                "to": "10",
                "tot": "num"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 520,
        "y": 1220,
        "wires": [
            [
                "98241f3.1e9126"
            ]
        ]
    },
    {
        "id": "f7eef7bd.15691",
        "type": "change",
        "z": "ca492a55.506508",
        "name": "",
        "rules": [
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "true",
                "fromt": "str",
                "to": "0",
                "tot": "num"
            },
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "false",
                "fromt": "str",
                "to": "10",
                "tot": "num"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 520,
        "y": 1260,
        "wires": [
            [
                "14df31ad.a950ce"
            ]
        ]
    },
    {
        "id": "98241f3.1e9126",
        "type": "function",
        "z": "ca492a55.506508",
        "name": "Fill msg",
        "func": "var tmp = msg.payload;\n\nmsg.payload = {};\nmsg.payload.command = \"switchlight\"\nmsg.payload.idx = 156;\nmsg.payload.switchcmd = \"Set Level\"\nmsg.payload.level = tmp;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 700,
        "y": 1220,
        "wires": [
            [
                "a22e36ed.de85d"
            ]
        ]
    },
    {
        "id": "14df31ad.a950ce",
        "type": "function",
        "z": "ca492a55.506508",
        "name": "Fill msg",
        "func": "var tmp = msg.payload;\n\nmsg.payload = {};\nmsg.payload.command = \"switchlight\"\nmsg.payload.idx = 157;\nmsg.payload.switchcmd = \"Set Level\"\nmsg.payload.level = tmp;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 700,
        "y": 1260,
        "wires": [
            [
                "a22e36ed.de85d"
            ]
        ]
    },
    {
        "id": "ba53fc95.94322",
        "type": "function",
        "z": "ca492a55.506508",
        "name": "Store temp_woon",
        "func": "flow.set('temp_woon',msg.payload.degrees);\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 490,
        "y": 340,
        "wires": [
            [
                "26bada17.0e25ce"
            ]
        ]
    },
    {
        "id": "8ee0e7b6.44b15",
        "type": "comment",
        "z": "ca492a55.506508",
        "name": "Idx's Domoticz",
        "info": "Setting Max! from Domoticz\n121 Setpoint thermostaat woonkamer\n138 Setpoint thermostaat slaapkamer\n141 Selector set mode woonkamer\n142 Selector set mode slaapkamer\n\nReporting Max! to Domoticz\n143 Temp set woonkamer\n144 Temp set slaapkamer\n145 Temp current woonkamer valve\n146 Temp current slaapkamer valve\n147 Temp current woonkamer thermostaat\n148 Selector mode feedback woonkamer\n149 Selector mode feedback slaapkamer\n150 Temp eco woonkamer\n151 Temp eco slaapkamer\n152 Temp comfort woonkamer\n153 Temp comfort slaapkamer\n154 Percent valve woonkamer\n155 Percent valve slaapkamer\n156 Switch battery woonkamer\n157 Switch battery slaapkamer\n\nSelector MANUAL=0, AUTO=10, VACATION=20",
        "x": 490,
        "y": 40,
        "wires": []
    },
    {
        "id": "2a920ca0.ab3044",
        "type": "comment",
        "z": "ca492a55.506508",
        "name": "Todo",
        "info": "Add 'BOOST' to selector\n",
        "x": 110,
        "y": 40,
        "wires": []
    },
    {
        "id": "985ea0e5.e3d77",
        "type": "mqtt-broker",
        "z": "",
        "name": "B202 Mosquitto",
        "broker": "192.168.1.153",
        "port": "1883",
        "clientid": "",
        "usetls": false,
        "compatmode": true,
        "keepalive": "60",
        "cleansession": true,
        "birthTopic": "",
        "birthQos": "0",
        "birthPayload": "",
        "closeTopic": "",
        "closeQos": "0",
        "closePayload": "",
        "willTopic": "",
        "willQos": "0",
        "willPayload": ""
    },
    {
        "id": "f3616d46.a04ae",
        "type": "maxcube-server",
        "z": "",
        "host": "192.168.1.205",
        "port": "62910",
        "disabled": false
    }
]
Todo :
- Add 'Boost' mode to selector
- Update setpoint / mode selector when setting is changed from valve and/or thermostat
- Check what happens (mqtt output) when thermostat is set to max temp ('On' mode).

Feedback is welcome...

Eric

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest