Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How does this work?

Featured Replies

Posted

Obviously I am missing something but how does this node server work?

I would like to use this to do something like the following

If 2 weeks before Christmas

then

Turn on xmas lights

 

But I do not see the holidays mapped.  How is this suppose to work?

Solved by firstone

Go to solution

There are system variables for day-of-month, and month-of-year.  For Holidays with fixed dates, one could use these variables in a program condition.  Unfortunately, it gets a little harder for holidays that can have flexible dates.

@leonpc not sure on this one...haven't ever used it. 

Have you read the configure information?

https://github.com/UniversalDevicesInc-PG3/holidays-poly/blob/master/POLYGLOT_CONFIG.md

I know others have used the HolidaysGoogle in the past, but you have to setup a Google account to sync to on that one. 

In regular programming on admin console you can uncheck "daily" and it gives you calendar options you could put time from/to and include a date. You might not need to rely on a plugin at that point.

I've got this one:

ChristmasTime

If
        From     5:30:00PM on 2023/11/23
        To      12:21:12AM on 2024/01/01
 
Then
        Enable Program 'Christmas Lights'
 
Else
        Disable Program 'Christmas Lights'
 

Then let the "Christmas Lights" program control when things turn on/off. 

 

@leonpc This is an example of how I do my Christmas under eve LED Lights with the holiday plugin.

December Christmas Lights - [ID 00FA][Parent 0133][Not Enabled]

If
        'Holiday Controller / today Day Node' Month is December
    And 'Holiday Controller / today Day Node' Day >= 1
    And 'Holiday Controller / today Day Node' Day <= 31
 
Then
        Run Program 'Blue' (Then Path)
 
Else
   - No Actions - (To add one, press 'Action')

  • Author

Thanks for all the replies.  i have used other ways to set dates around holidays to turn lights on but they all seem to use multiple lines of code.  Seeing the Holidays node sever I thought I could simplify things but reading the instructions did not make sense to me. 

I also looked at the HolidaysGoogle node server but it currently has an issue with connecting the node server to Google.

@tlightneThanks this is what I was looking for..  I still have questions how to setup rules and define new holidays but it is a step in the right direction.

 

  • Solution
On 11/17/2023 at 1:45 PM, leonpc said:

Obviously I am missing something but how does this node server work?

I would like to use this to do something like the following

If 2 weeks before Christmas

then

Turn on xmas lights

 

But I do not see the holidays mapped.  How is this suppose to work?

Holidays either come from python lib, which has a lot defined. https://pypi.org/project/holidays/. Or you can set up your own by date. 

With that in mind, above use case is not something this was written for. It's more like day based. Something like if Today is a holiday, do not lower thermostat. Or if tomorrow is a holiday, keep outside lights longer. 

The more important part is its dynamic. You can turn it on of off. For example, you can set up WFH for Mon and Fri. But I can say "Alexa, turn tomorrow on" and tomorrow will become WFH, running all WFH schedules. Something like that.

For above use case I'd just use regular schedule as others have said. 

  • Author
On 11/22/2023 at 4:43 PM, firstone said:

Holidays either come from python lib, which has a lot defined. https://pypi.org/project/holidays/. Or you can set up your own by date. 

With that in mind, above use case is not something this was written for. It's more like day based. Something like if Today is a holiday, do not lower thermostat. Or if tomorrow is a holiday, keep outside lights longer. 

The more important part is its dynamic. You can turn it on of off. For example, you can set up WFH for Mon and Fri. But I can say "Alexa, turn tomorrow on" and tomorrow will become WFH, running all WFH schedules. Something like that.

For above use case I'd just use regular schedule as others have said. 

Thanks @firstone this makes a lot more sense.  Now that I understand the intent I see many possibilities on how to use this.

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.