Get Sensibo temp/humidity through Node-RED

Moderator: leecollings

Post Reply
delius
Posts: 11
Joined: Monday 02 January 2017 16:44
Target OS: Linux
Domoticz version: beta
Location: Netherlands
Contact:

Get Sensibo temp/humidity through Node-RED

Post by delius »

I have been in possession of Sensibo Airco Controllers for some time now. A temperature / humidity sensor is built into these controllers. I had already managed to read this sensor with a DZVents script, but with Node-RED it is a lot easier.

The image at the bottom of this post shows how this is structured. The basis is a working Domoticz - Mosquitto - NodeRED installation with Sensibo API access. Also a dummy temperature/humidity sensor per sensibo controller is needed.

How does the solution work?
- First, the Node-RED node node-red-contrib-sensibo must be added to Node-RED (manage palette).
- A flow must be created with the following elements:
- an inject / timestamp block
- a "sensibo in" block per sensibo
- a function block
- a mqtt out block
- a debug block for testing

The inject/timestamp block is simple. An interval every 10/15 minutes or so.
The sensibo in is also simple. The api-key and the key/name of the device (if more then one).
The function/extract data block does the magic.

Code: Select all

var TEMP = msg.result.measurements.temperature;
var HUM = msg.result.measurements.humidity;
var HUM_STAT=0;
if (HUM < 30) {
    HUM_STAT=2;
} else if ((HUM >= 30) & (HUM < 45)) {
    HUM_STAT=0;
} else if ((HUM >= 45) & (HUM < 70)) {
    HUM_STAT=1;
} else if (HUM >= 70) {
    HUM_STAT=3;
}
msg.payload = {"command":"udevice","idx":3510,"nvalue":0,"svalue":TEMP + ";" + HUM + ";" + HUM_STAT};
return msg;
The IDX is the dummy temperature/humidity device in domoticz.
The MQTT/IN, named "publish temp" is the domoticz/in MQTT channel
The debug block is useful to turn debugging on / off and see what the output is.

There is also a "Sensibo send" block. I have not yet been able to find information on how that is working. Constructing the message looks a bit complicatied.
Attachments
Screenshot_20210423_122154.png
Screenshot_20210423_122154.png (35.72 KiB) Viewed 2193 times
screenshot-airco-domo.png
screenshot-airco-domo.png (58.37 KiB) Viewed 2194 times
amadeusmozart
Posts: 1
Joined: Thursday 10 November 2022 9:05
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Get Sensibo temp/humidity through Node-RED

Post by amadeusmozart »

Hello Delius
I come from the Homematic/Neo world
I have hardly any experience or knowledge of Node Red.
I have Sensibo in operation and came across this forum and your post by accident. As expected, I have problems with the implementation.
What works:
- the Connect to Sensibo Cloud works
- I can see and select any AC of mine (name)
- I understood that you have to do it for everyone, as in your example
What my problem is:
i have no idea how the nodes for
- the inject (timer)
- the function (with your code which I copied)
- the debug evaluation
have to be set and I can then get the values for visualization in NEO.
I would therefore like to ask you to help me with the configuration (screenshot for the parameters).
Thank you very much for your efforts!!
Attachments
Node-Red_function.png
Node-Red_function.png (18.18 KiB) Viewed 1691 times
Node-Red_debug.png
Node-Red_debug.png (29.53 KiB) Viewed 1691 times
Node-Red.png
Node-Red.png (7.79 KiB) Viewed 1691 times
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests