Initial commit

This commit is contained in:
2023-09-28 12:28:27 -04:00
commit 25780c8c5d
30 changed files with 1777 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
var daynight = msg.payload
if (daynight === 0) {
node.status({fill:"red",shape:"ring",text:"Off"});
msg.payload = "off"
} else if (daynight === 1) {
node.status({fill:"green",shape:"dot",text:"On"});
msg.payload = "on"
}
return msg;