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

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.