We usually use date in ioBroker context for fixed points in time (which sunrise and sunset are).
Also date.sunrise and date.sunset are defined in stateroles.md, time.sunrise and time.sunset are not.
I checked and found only accuweather adapter uses time.sunset and time.sunrise, but it still supplies a complete Date in both states. So the use of time seems to be confusing there, too. So currently adapters reading TIME_SUNRISE should expect a full date in there. The role should reflect that (especially the default role).
Openweathermap adapter already uses the correct role.
We usually use
date
in ioBroker context for fixed points in time (which sunrise and sunset are). Alsodate.sunrise
anddate.sunset
are defined in stateroles.md,time.sunrise
andtime.sunset
are not.I checked and found only accuweather adapter uses
time.sunset
andtime.sunrise
, but it still supplies a complete Date in both states. So the use oftime
seems to be confusing there, too. So currently adapters readingTIME_SUNRISE
should expect a full date in there. The role should reflect that (especially the default role).Openweathermap adapter already uses the correct role.