Variable control Zwave thermostat

#1

Hello,

I set the temperature on my Zwave thermostat with this command (Picture 1). This works without problems.
Now I want to replace the fixed value ("26") with a variable. A slider is used to set a variable value. The set value should replace the "26".
This allows the Zwave thermostat to send a variable command.
My problem is a purely mathematical function.
Does anyone have a solution for me?
Many Thanks.

ThoralfPicture%201

0 Likes

#2

This page shows you how you can use the debug panel to find the path to anything
https://nodered.org/docs/user-guide/messages

Once you have that, it should be simple to either change the value in a function or within the dashboard. What have you tried?

0 Likes

#3

Hello,
Thank you for your quick reply.
I have already been on this page. Unfortunately, I could not find an answer for my problem.
I think I lack the basic knowledge.
Have tried some variants, but unfortunately without success.

Many Thanks.

Thoralf

0 Likes

#4

That page won't give you the answer to your problem but it should help you understand your data, which you can then manipulate.

But using that page, you should be able to find the path to the data you want to change.
Using that information you should be able to change it with an inject node and a change node.

But perhaps it would be worthwhile you following one of the online tutorials to Node-RED?

0 Likes

#5

Hello,

since I can only speak a little English, it is very difficult for me.
I was hoping somebody could offer me a ready solution. Nevertheless, they are right to understand the problem more deeply.
Maybe someone else will find you.

Many Thanks.

Thoralf

0 Likes

#6

Here is a simple example using the slider from the node-red-dashboard

hope this helps.

[{"id":"9a6cbdcd.17723","type":"ui_slider","z":"68704546.3d0e0c","name":"","label":"slider","tooltip":"","group":"8c6774a4.06e158","order":4,"width":0,"height":0,"passthru":true,"outs":"all","topic":"setValue","min":"10","max":"80","step":1,"x":160,"y":640,"wires":[["42eb1e3f.981bd"]]},{"id":"42eb1e3f.981bd","type":"function","z":"68704546.3d0e0c","name":"","func":"msg.payload = {\n    nodeid: 5,\n    cmdclass: 67,\n    cmdidx: 1,\n    value: msg.payload\n}\nreturn msg;","outputs":1,"noerr":0,"x":330,"y":640,"wires":[["412bcda4.751964"]]},{"id":"412bcda4.751964","type":"debug","z":"68704546.3d0e0c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":540,"y":640,"wires":[]},{"id":"8c6774a4.06e158","type":"ui_group","z":"","name":"Default","tab":"3df105b2.37ac4a","order":2,"disp":true,"width":"6","collapse":false},{"id":"3df105b2.37ac4a","type":"ui_tab","z":"","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]
1 Like

#7

Hello,

Great, it works !!!!!
The slider now gives a variable value. This is transmitted via Zwave to the thermostat. That was exactly what I was looking for.
Now I can extend the control. The basis was your solution. For you a trifle, for me unsolvable.
I am very happy.

Thank you very much

Thoralf

1 Like