Hi,
I use astro configuration from here`.
Starting from 2019-05-19 I have problem with astro binding. Some of events on channel are undefined.
majherek@atom:/opt/openhab/userdata/logs$ grep "Rule 'Generate Time of Day Events'" openhab.log|head
2019-05-19 00:00:48.865 [ERROR] [ntime.internal.engine.RuleEngineImpl] - Rule 'Generate Time of Day Events': Could not cast UNDEF to org.eclipse.smarthome.core.library.types.DateTimeType; line 66, column 27, length 37
2019-05-19 00:01:48.863 [ERROR] [ntime.internal.engine.RuleEngineImpl] - Rule 'Generate Time of Day Events': Could not cast UNDEF to org.eclipse.smarthome.core.library.types.DateTimeType; line 66, column 27, length 37
2019-05-19 00:02:48.865 [ERROR] [ntime.internal.engine.RuleEngineImpl] - Rule 'Generate Time of Day Events': Could not cast UNDEF to org.eclipse.smarthome.core.library.types.DateTimeType; line 66, column 27, length 37
2019-05-19 00:03:48.863 [ERROR] [ntime.internal.engine.RuleEngineImpl] - Rule 'Generate Time of Day Events': Could not cast UNDEF to org.eclipse.smarthome.core.library.types.DateTimeType; line 66, column 27, length 37
Line 66 is night:
rule "Generate Time of Day Events"
when
Item CurrentDateTime received update
then
val now = new Date()
val dawn = new Date((CivilDawnStart_Time.state as DateTimeType).calendar.timeInMillis)
val day = new Date((DayStart_Time.state as DateTimeType).calendar.timeInMillis)
val dusk = new Date((CivilDuskStart_Time.state as DateTimeType).calendar.timeInMillis)
val night = new Date((NightStart_Time.state as DateTimeType).calendar.timeInMillis)
val sunset = new Date((SunsetStart_Time.state as DateTimeType).calendar.timeInMillis)
val sunrise = new Date((SunriseStart_Time.state as DateTimeType).calendar.timeInMillis)
I have several items with UNDEF value:
openhab> smarthome:items list |grep -i gAstro|grep UNDEF
EveningNightStart_Time (Type=DateTimeItem, State=UNDEF, Label=Początek wieczornej części nocy, Category=moon, Groups=[gAstro])
NightStop_Time (Type=DateTimeItem, State=UNDEF, Label=Koniec nocy, Category=moon, Groups=[gAstro])
EveningNightStop_Time (Type=DateTimeItem, State=UNDEF, Label=Koniec wieczornej części nocy, Category=moon, Groups=[gAstro])
AstroDawnStart_Time (Type=DateTimeItem, State=UNDEF, Label=Początek świtu astronomicznego, Category=sunrise, Groups=[gAstro])
AstroDuskStop_Time (Type=DateTimeItem, State=UNDEF, Label=Koniec zmierzchu astronomicznego, Category=sunset, Groups=[gAstro])
MorningNightStart_Time (Type=DateTimeItem, State=UNDEF, Label=Początek porannej części nocy, Category=moon, Groups=[gAstro])
NightStart_Time (Type=DateTimeItem, State=UNDEF, Label=Początek nocy, Category=moon, Groups=[gAstro])
MorningNightStop_Time (Type=DateTimeItem, State=UNDEF, Label=Koniec porannej części nocy, Category=moon, Groups=[gAstro])
The problem is with Night, Astro and Dusk:
DateTime MorningNightStart_Time "Początek porannej części nocy [%1$tH:%1$tM]" <moon> (gAstro) { channel="astro:sun:local:morningNight#start" }
DateTime MorningNightStop_Time "Koniec porannej części nocy [%1$tH:%1$tM]" <moon> (gAstro) { channel="astro:sun:local:morningNight#end" }
DateTime NightStop_Time "Koniec nocy [%1$tH:%1$tM]" <moon> (gAstro) { channel="astro:sun:local:night#end" }
DateTime NightStart_Time "Początek nocy [%1$tH:%1$tM]" <moon> (gAstro) { channel="astro:sun:local:night#start" }
DateTime EveningNightStart_Time "Początek wieczornej części nocy [%1$tH:%1$tM]" <moon> (gAstro) { channel="astro:sun:local:eveningNight#start" }
DateTime EveningNightStop_Time "Koniec wieczornej części nocy [%1$tH:%1$tM]" <moon> (gAstro) { channel="astro:sun:local:eveningNight#end" }
DateTime AstroDuskStart_Time "Początek zmierzchu astronomicznego [%1$tH:%1$tM]" <sunset> (gAstro) { channel="astro:sun:local:astroDusk#start" }
DateTime AstroDawnStart_Time "Początek świtu astronomicznego [%1$tH:%1$tM]" <sunrise> (gAstro) { channel="astro:sun:local:astroDawn#start" }
Can anybody tell me why the problem start appearing yesterday -> 19th od May?
I use OH 2.4 Release Build.
openhab> bundle:list |grep -i astro
223 │ Active │ 80 │ 0.10.0.oh240 │ Eclipse SmartHome Astro Binding
openhab> feature:list |grep -i astro
openhab-binding-astro1 │ 1.13.0 │ │ Uninstalled │ openhab-addons-legacy-2.4.0 │ Astro Binding (1.x)
esh-binding-astro │ 0.10.0.oh240 │ │ Started │ openhab-addons-2.4.0 │
openhab-binding-astro │ 2.4.0 │ x │ Started │ openhab-addons-2.4.0 │ Astro Binding