-
Notifications
You must be signed in to change notification settings - Fork 499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Daylight features in v2.05.69 #1828
Comments
Ah good point haven't thought about that, I'll change it to UTC.
Currently it doesn't work ;) it's still work in progress and only contains the CLIP resource without the rules conditions and functionality behind it implemented. The main idea is it to define intervals consisting of two CLIPDaylightOffset sensors, with the interval defined via resourcelink(s) containing the sensor uniqueids. We are working on a UI in the Phoscon App where the user can define individual daylight related intervals like "morning" and then say, this automation (like motion sensor control or switch configuration) should be active in this interval. One side effect of the interval points being CLIPDaylightOffset sensors rather then condition values in rules is that they can be reused for multiple automations. So the user can just modify just a handful of intervals and all the related automations will automatically follow without rewriting the rules.
The rule condition operators need to be extended to support the CLIPDaylightOffset sensor as reference point, for example CLIPDaylightOffset sensors However the TSR/TSS additions are a great idea, these can be very useful and are simpler to implement for many applications which don't require the overhead of a CLIPDaylightOffset sensor. I would suggest going for both :) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I like the new
state.sunrise
andstate.sunset
attributes for the built-in Daylight sensor.However, I do think they should report UTC time instead of local time, for consistency with the rest of the API (particularly with
state.lastupdated
of the very same resource).I'm not sure how a
CLIPDaylightOffset
sensor would work. I would expect astate.flag
-like attribute that would betrue
from midnight to sunrise + offset (or from sunset + offset to midnight), cf.state.daylight
andstate.dark
.I'm not sure how to use a
CLIPDaylightOffset
sensor in a rule condition. Thein
operator expects a time range (e.g.T07:00:00/T23:00:00
). Currently there's no way to use a variable value in a condition. How would I enter aCLIPDaylightOffset
sensor?Wouldn't it make more sense to extend the ISO8601 syntax with special time values for sunrise +/- offset and sunset +/- offset, e.g.
T00:00:00/TSR-00:30
? for midnight to half an hour before sunrise, orTSR-00:30/TSS+00:30
for daylight.The text was updated successfully, but these errors were encountered: