I've looked through the community and nothing stands out so I thought I'd post a question if I may...
Is there a way of controlling modes by date or maybe a calendar? Some of my use cases would be to automatically override lighting automations in late spring/summer when I don't want them to run as it's light. I don't want the heating to be on in summer (even if the temperature drops below the threshold it's set too - UK resident).
Currently I pause any rules/automations I don't need.
If there's nothing built in, is there a community app available for this or would a node red flow be able to control what I want by switching seasonal modes I've created? (if so, what palette/flows do you recommend?)
First thing that comes to mind is creating a whole new set of modes, say "Summer - " modes for whatever you currently have, i.e. Day, Night, Away, etc. and then have a RM rule set the mode at the specific time/date to the new modes. The first issue with that is you need to make sure that the Mode Manager does not override it (last I checked you cannot disable apps in RM), and second you have to essentially make a whole new Mode Manager to automatically switch between the daily modes.
Ideally what you would want is two entirely separate Mode Managers that are only valid on certain dates, but I do not believe it currently has that functionality.
You may be able to use the "Set Mode with Switches" option in Mode Manager and then just modify said virtual switches via an automation on the date in question, but I do not know if that would override any time-of-day based options in Mode Manager.
I don't use Hubitat for logic any more, however; this is how I used to do the same thing
Create 4 virtual switches (One for each season)
Set up your apps/rules so that they only work when the correct 'season' switch is turned on
On my website you can find an app called "Switch Changeover" install and add your 4 virtual switches to this app
The app will only allow one switch on at a time (e.g turn on 'Summer' and all others turn off)
Another app on my website can be used to schedule the turning on of a switch on a certain date (e.g. June 23 - the start of summer - Turn on 'Summer' virtual switch)
You can set this up to turn on the relevant switch on the relevant date.
This app is called "Scheduled Switch"
In a nutshell, what happens is...
Scheduled Switch turns on a virtual switch (for example 'Summer') on the correct date
Switch changeover turns off any other switch (e.g 'Spring')
If you have configured any apps/rules to only work when the 'Spring' switch is on, then they won't operate any more but apps/rules that are configured to work when the 'Summer' switch is on will now operate.
If you donβt want to use custom code, Iβm sure you could achieve the same with rule machine and the 4 virtuals or 4 global variables