Hi all,
I just wanted to share a solution for displaying Shelly H&T data (temperature and humididy sensor) on my CerboGX, as i found no solution for this yet.
Prerequisites:
-CerboGX with large image and NodeRed
-Shelly device acting as Bluetooth Gateway
Setup:
First, the shelly device acting as the gateway need to be added in NodeRed.
Mode needs to be set as “Callback” and the bluetooth gateway script needs to be installed.
After the script is running, put the device node into a function with following code:
let d = msg.payload;
if (d && d.info && d.info.data) {
d = d.info.data;
} else {
return null;
}
// get values
let temperature = Number(d.temperature);
let humidity = Number(d.humidity);
// payload for virtual device
msg.payload = {
"/Temperature": Number(d.temperature),
"/Humidity": Number(d.humidity)
};
return msg;
After this, point the output of the function into a virtual temperatur sensor with humdidy activated
After this, the data will be displayed on the cerbo
If you have any improvements or questions, please let me know!
Best regards,
Erik


