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,13 @@
var states = global.get('homeassistant.homeAssistant.states')
var holidayMode = states['input_boolean.holiday_mode'].state
var currentHoliday = states['input_select.holiday_animation'].state
var holiday = currentHoliday.toLowerCase()
if (holidayMode === 'on') {
msg.holiday = holiday
node.status({fill:"green",shape:"dot",text:"Holiday On"});
return msg;
} else {
node.status({fill:"red",shape:"ring",text:"Holiday Off"});
return null;
}