Bei mir will das scheinbar nicht, habe das JAR aus dem #625-Jenkins Build zu meiner #624 Runtime kopiert. In den Dateien steht:
Items:
openhab.cfg:
Trotzdem werden die Items nicht gefüllt. Das Binding ist gestartet:
Die Items werden nicht gefüllt:
Irgendwelche Ideen?
LG
Sascha
EDIT:
Im Debug-Modus kommt auch nichts hilfreiches:
Mehr kommt von dem Binding nicht
Items:
Code:
/* Astro */ DateTime Sunrise_Time "Aufgang [%1$tH:%1$tM]" {astro="type=SUNRISE_TIME"} DateTime Noon_Time "Mittag [%1$tH:%1$tM]" {astro="type=NOON_TIME"} DateTime Sunset_Time "Untergang [%1$tH:%1$tM]" {astro="type=SUNSET_TIME"} Number Azimuth "Azimut [%.2f]" {astro="type=AZIMUTH"} Number Elevation "Höhe [%.2f]" {astro="type=ELEVATION"}
Code:
############################## Astro Binding ############################## # # Your latitude astro:latitude=51.xxxxxxx # Your longitude astro:longitude=8.xxxxxxx # Refresh interval for azimuth and elevation calculation in seconds (optional, defaults to disabled) astro:interval=60
Code:
osgi> ss astro "Framework is launched." id State Bundle 224 ACTIVE org.openhab.binding.astro_1.5.0.201404240105
Code:
openhab@HLW31:~/configurations$ tail -n6 items/hlw31.items | awk '{print $2}' | xargs oh_cmd get Sunrise_Time Uninitialized Noon_Time Uninitialized Sunset_Time Uninitialized Azimuth Uninitialized Elevation Uninitialized
LG
Sascha
EDIT:
Im Debug-Modus kommt auch nichts hilfreiches:
Code:
java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String at org.eclipse.equinox.console.commands.EquinoxCommandsConverter.convert(EquinoxCommandsConverter.java:61) at org.apache.felix.gogo.runtime.CommandProcessorImpl.convert(CommandProcessorImpl.java:254) at org.apache.felix.gogo.runtime.CommandSessionImpl.convert(CommandSessionImpl.java:374) at org.apache.felix.gogo.runtime.Reflective.coerce(Reflective.java:389) at org.apache.felix.gogo.runtime.Reflective.coerce(Reflective.java:310) at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:110) at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82) at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477) at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403) at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108) at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183) at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120) at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89) at org.apache.felix.gogo.shell.Console.run(Console.java:62) at org.apache.felix.gogo.shell.Shell.console(Shell.java:203) at org.apache.felix.gogo.shell.Shell.gosh(Shell.java:128) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:137) at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82) at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477) at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403) at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108) at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183) at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120) at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89) at org.apache.felix.gogo.shell.Activator.run(Activator.java:75) at java.lang.Thread.run(Thread.java:744) 15:35:16.449 DEBUG o.o.b.a.i.bus.AstroActivator[:32] - Astro binding has been started. 15:35:16.496 DEBUG o.o.m.i.i.GenericItemProvider[:334] - Start processing binding configuration of Item 'Sunrise_Time (Type=DateTimeItem, State=Uninitialized)' with 'AstroGenericBindingProvider' reader. 15:35:16.499 DEBUG o.o.b.a.i.b.AstroGenericBindingProvider[:57] - Adding item Sunrise_Time with AstroBindingConfigElement[type=SUNRISE_TIME] 15:35:16.503 DEBUG o.o.m.i.i.GenericItemProvider[:334] - Start processing binding configuration of Item 'Noon_Time (Type=DateTimeItem, State=Uninitialized)' with 'AstroGenericBindingProvider' reader. 15:35:16.507 DEBUG o.o.b.a.i.b.AstroGenericBindingProvider[:57] - Adding item Noon_Time with AstroBindingConfigElement[type=NOON_TIME] 15:35:16.510 DEBUG o.o.m.i.i.GenericItemProvider[:334] - Start processing binding configuration of Item 'Sunset_Time (Type=DateTimeItem, State=Uninitialized)' with 'AstroGenericBindingProvider' reader. 15:35:16.514 DEBUG o.o.b.a.i.b.AstroGenericBindingProvider[:57] - Adding item Sunset_Time with AstroBindingConfigElement[type=SUNSET_TIME] 15:35:16.517 DEBUG o.o.m.i.i.GenericItemProvider[:334] - Start processing binding configuration of Item 'Azimuth (Type=NumberItem, State=Uninitialized)' with 'AstroGenericBindingProvider' reader. 15:35:16.519 DEBUG o.o.b.a.i.b.AstroGenericBindingProvider[:57] - Adding item Azimuth with AstroBindingConfigElement[type=AZIMUTH] 15:35:16.522 DEBUG o.o.m.i.i.GenericItemProvider[:334] - Start processing binding configuration of Item 'Elevation (Type=NumberItem, State=Uninitialized)' with 'AstroGenericBindingProvider' reader. 15:35:16.525 DEBUG o.o.b.a.i.b.AstroGenericBindingProvider[:57] - Adding item Elevation with AstroBindingConfigElement[type=ELEVATION]

Kommentar