I entered coordinates in both HS and the NOAA calculator. The NOAA calculator doesn't seems to accept decimal numbers but even if I vary the longitude by 1 it only make a difference of 4 minutes so that doesn't explain why HS is another 10 minutes off.
Announcement
Collapse
No announcement yet.
Create Even With x Minutes Before/After Solar Noon
Collapse
X
-
This is not tested but should give you the concept. I do not know how to use Easy Trigger so it may be possible to do it in one event using it. The example below assumes you have a virtual device 1234 to hold the count of minutes before solar noon. It also assumes 20 minutes is your X delta time.
Code:Trigger: IF Recurring Trigger Happens 1 Minute Action: One Line Script Command hs.UpdateFeatureValueByRef(1234, DateDiff(DateInterval.Minute, hs.SolarNoon, Now)) Trigger: IF Device 1234 changes and becomes 20 Action: whatever Trigger: IF Device 1234 changes and becomes -20 Action: whatever
Comment
-
Thank you for the input. I have already abandoned this, though. It's not just that I now need a virtual device, an event to update that device with a script but the event trigger gets a bit more complicated plus hs.SolarNoon also doesn't match with what NOAA says. It's not that it's super complicated but I try to keep things as simple as possible in case somebody else has to take over the management of HS.
I ended up just setting the time half an hour earlier so I can accommodate the half hour variation of SolarNoon throughout the year. The reason why I wanted to be more precise is because I only want to extend the awning as much as I have to in order to minimize the chance that they retract automatically due to high wind of which we have a lot.
Thanks again!
Comment
-
Seems like what you're really looking for is the angle (azimuth) of the sun? The sparkman script referenced in post #5 gives you exactly that. You can zoom into your property in GoogleEarth, then the Ruler tool (Line tab) can be used to measure angles. Another useful tool is https://www.suncalc.org
Comment
-
I have already abandoned this, though. It's not just that I now need a virtual device, an event to update that device with a script
Comment
-
Interesting thread, as a week ago I was trying to figure out how to start my swim spa heater during peak solar production from my PV array to minimize importing expensive Californian electricity. Solar noon was exactly what I was looking for.
My solution, should anyone want another option without scripting (as I have Node Red running for Velux window/blind support) was to install the sun-position npm in Node Red, which has an enhanced trigger node that can configured to send a "run" message to a Homeseer node based on solar noon.
It has a great deal of additional functionality to calculate sun position and also provide blind control that I will get around to trying at some point with an Equinox Louvered roof system. But with just two nodes (1 sun-control and 1 Homeseer) it works great to run an event or control a device.
Would be nice if HS had an option for Sunrise + nn% (i.e. Sunrise +50% would be solar noon) at least as a starting point. I see there are options when creating events to do things based on the phase of the moon (what do people use this for???? ) but nothing beyond sunrise and sunset for the daylight hours.
Just an FYI . . . .
Comment
-
TC1 during my searching, yes there is a function that can be used in a script. I am unable to find an option for those of us that don't write scripts. Did I miss something? I've gone through the online docs, I use EasyTrigger and trying to get an event to run 90 minutes before solar noon each day did not seem possible without a script.
Comment
-
If being totally script/virtual-device free is a desire then I would open a ticket for a feature enhancement to expose solar-noon as GUI object in the interface the same as sunrise and sunset. It shouldn't take much for HST to do this. But if people don't ask for it formally (not in the forums) then it's never going to happen.
- Likes 1
Comment
-
Originally posted by Horse View Post<snip>
Would be nice if HS had an option for Sunrise + nn% (i.e. Sunrise +50% would be solar noon) at least as a starting point. I see there are options when creating events to do things based on the phase of the moon (what do people use this for???? ) but nothing beyond sunrise and sunset for the daylight hours.
Just an FYI . . . .
Comment
-
Originally posted by TC1 View PostUmm... HS already has a function/variable for Solar Noon.
Comment
-
Guest
Originally posted by mulu View Post
Please send a feature request to HS at https://dev.homeseer.com/servicedesk/customer/portals HS told me that very few people are interested in this so they won't implement it (despite the fact that it would be very easy to do so). Apparently there is some need because you want it, there is another thread for a script to use sun angle, etc.
Comment
-
request raised in Jira - Maybe I missed it, but as this is a ticketing platform, there is no way to see other feature requests or add a vote. If I could see other suggestions, there may have been a better, more though out approach that I would have voted for, instead of adding another isolated request. Coming from a technical support background, this all seems very alien.
If the answer is to always write a script, there are plenty of other platforms that I can use to do that. The entire point of paying for a HS license and its GUI is I don't have to develop, debug and maintain code. I just use it.
If I end up using more and more features via Node Red and other software hooks via MQTT, HS will become just a Webhook > Zwave gateway. I upgraded to HS4 to show support and provide additional revenue for development. As I have done for decades with some other software I use. Although I'm now glad I did as it gave me Node Red integration.
Edit
And the response I got from the Jira request was:
" This is our first request for this ever so it would be very unlikely that we add this functionality. I would recommend asking for scripting help on our message board as we have are very helpful user base when it comes to scripting help."
How many others before me have requested this?
Comment
Comment