I’m just working though that first automation:
So every hour, if “Winter Mode” is on, run a script that sets the timeout value to 24h?
Why every hour? You only need to set the timeout once before you change the storage command mode for it to work. Resetting it every hour may cause issues. In my experience, the system doesn’t like it and will do some weird things. It’s almost like the system wants or needs the timeout to return to the default regularly.
So in it’s current form, here’s what will happen: -
Every time your second automation changes the storage command mode, and that could be every minute, the system will start the timeout counting down from whatever value it is set at, in this case, 24hrs. My understanding of the system is that the timeout value is set in one register and held there. The actual countdown involves the transfer of the value in the timeout register into a counter that counts down. That happens when the storage command mode changes. The fact that the timeout value is held in a separate register allows the system to always be able to check what the value is set to before it starts the countdown. It doesn’t continue from where it left off last time it ran.
Remember, that’s my understanding of how it works. I’m an electrical/electronics engineer, but I didn’t design the SE system. There are probably many ways of running a countdown system that I haven’t even heard of.
Anyway, if we go on the premis that my understanding is correct, I would set the timeout to max once every day and then check the history after a couple of days to see what it’s actually doing. You might have to adjust the frequency to every 12 hours if it starts acting strangely, but once every 24 hours should do it. I know at least one other SE system user who holds his system’s timeout at 24 hours. I’m not sure how he does it, or how often he changes his system’s storage command mode, but it works for him.
In your second automation:
The condition to check the storage control mode is “Remote Control” is probably not needed. I leave my system in “Remote Control” all the time and it never changes. Why would you need to check it?
Additionally, you could potentially have the storage command mode changing every minute if conditions are such that supply and consumption levels flip every minute when the battery is below 40%. In my opinion, that’s probably not good for your system and could be problematic.
That said, you’ve created quite an adventurous automation. I’d be interested to see how/if it works as expected. My guess is that the timeout may be an issue and the storage command mode potentially flipping every minute might also be an issue.
I think all you can do is run it and see how it goes.