I wil make e thermostat but is not working ; if you change the mintemp or maxtemp the funcioen should show a 1 or 0 in his debug

relay test.json (5.7 KB)

If you expect others to help, you need to provide more appropriate information than just a flow file.

What is not working? What is your expected result?

Also please see this post for how best to share flows. Using that technique will put the flow inline so we can just mark and copy it and export directly into node red from the clipboard, rather than having to download it.