Improve templating in master bedroom climate flows
This commit is contained in:
@ -10,11 +10,11 @@ if (ac === 'on') {
|
||||
if (temp >= threshold) {
|
||||
if (sleeping === 'on') {
|
||||
msg.set = bedTemp
|
||||
node.status({fill:"green",shape:"dot",text:"Shower Mode On: " + bedTemp})
|
||||
node.status({fill:"green",shape:"dot",text:`Shower Mode On: ${bedTemp}`})
|
||||
return msg
|
||||
} else {
|
||||
msg.set = nightTemp
|
||||
node.status({fill:"green",shape:"dot",text:"Shower Mode On: " + nightTemp})
|
||||
node.status({fill:"green",shape:"dot",text:`Shower Mode On: ${nightTemp}`})
|
||||
return msg
|
||||
}
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user