Improve templating in basement climate flows

This commit is contained in:
2025-03-23 04:42:41 -04:00
parent 09988333f7
commit 61c79ca0c0
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ if (outsideTemp > 32) {
if (allowed === 'on') { if (allowed === 'on') {
if (power === 'on') { if (power === 'on') {
msg.preset = preset msg.preset = preset
node.status({fill:'green',shape:'dot',text:'Preset ' + preset}) node.status({fill:'green',shape:'dot',text:`Preset ${preset}`})
node.send(msg,null) node.send(msg,null)
} else { } else {
node.status({fill:'red',shape:'ring',text:'Heater Shutoff'}) node.status({fill:'red',shape:'ring',text:'Heater Shutoff'})

View File

@ -22,7 +22,7 @@ if (todaysHighTemp < 55) {
if (allowed === 'on') { if (allowed === 'on') {
if (power === 'on') { if (power === 'on') {
node.status({fill:'green',shape:'dot',text:'Heater Needed: ' + reason}) node.status({fill:'green',shape:'dot',text:`Heater Needed: ${reason}`})
node.send(msg,null) node.send(msg,null)
} else { } else {
node.status({fill:'red',shape:'ring',text:'Heater Not Needed'}) node.status({fill:'red',shape:'ring',text:'Heater Not Needed'})