Jump to content
[[Template core/global/global/poll is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]]

Recommended Posts

  • Replies 526
  • Created
  • Letzte Antwort

Top Posters In This Topic

Geschrieben

Hallo Theo,

 

ich versuche mich gerade an der Einbindung des OELD128x64. Folgenden Snapshot nutze ich: https://bintray.com/theoweiss/generic/download_file?file_path=dUS%2Forg.openhab.binding.tinkerforge-1.9.0-SNAPSHOT.jar

 

Leider kann ich nicht ausschlißen, dass das Problem zwischen meinen Ohren ist. 

 

Die Konfig habe ich wie folgt:

openhab.cfg

tinkerforge:hosts=192.168.178.39:4223 192.168.178.41:4223

# OLED Display IP:192.168.178.41
tinkerforge:oled128.uid=yj9
tinkerforge:oled128.type=bricklet_oled128x64
tinkerforge:oled128.contrast=143
tinkerforge:oled128.invert=false

 

*.rules

rule "write every 10 seconds"
    when
       Time cron "0/10 * * * * ?"
    then
        tfOLEDWriteLine("yj9", 1, 0, String::format("Füllstand     : %4s", Heizung_Test.state.format("%.0f")))
end

 

Folgendes habe ich aus dem log gezogen.

 

17:21:50.019 [openHAB-job-scheduler_Worker-1] DEBUG org.quartz.core.JobRunShell - Calling execute on job DEFAULT.Haus.rules#write every 10 seconds#0/10 * * * * ?
17:21:50.025 [openHAB-job-scheduler_Worker-1] DEBUG o.o.m.r.i.engine.ExecuteRuleJob - Executing scheduled rule 'write every 10 seconds'
17:21:50.050 [openHAB-job-scheduler_Worker-1] DEBUG o.e.x.l.impl.DefaultLinkingService - before getLinkedObjects: node: 'tfOLEDWriteLine'
17:21:50.054 [openHAB-job-scheduler_Worker-1] DEBUG o.e.x.x.scoping.XbaseScopeProvider - enter getScope(tfOLEDWriteLine(<XStringLiteralImpl>,<XNumberLiteralImpl>,<XNumberLiteralImpl>,<XStringLiteralImpl>), XAbstractFeatureCall#feature)
17:21:50.178 [openHAB-job-scheduler_Worker-1] DEBUG o.e.x.x.scoping.XbaseScopeProvider - sortedDescriptionsFromLowestToHighest:
FeatureScopeDescription [receiverType=null, descriptionProvider=XFeatureCallSugarDescriptionProvider [featuresForTypeProvider=StaticImplicitMethodsFeatureForTypeProvider [context=Haus.rules, isExtensionProvider=false], contextType=null, implicitReceiver=null, implicitArgument=null, priority=160]]
FeatureScopeDescription [receiverType=null, descriptionProvider=DefaultJvmFeatureDescriptionProvider [featuresForTypeProvider=StaticImplicitMethodsFeatureForTypeProvider [context=Haus.rules, isExtensionProvider=false], contextType=null, implicitReceiver=null, implicitArgument=null, priority=60]]
17:21:50.183 [openHAB-job-scheduler_Worker-1] DEBUG o.e.x.c.t.u.L.Primary - Initialized argument context for request ReceiverRequest [receiver=null]
17:21:50.186 [openHAB-job-scheduler_Worker-1] DEBUG o.e.x.c.t.u.L.Primary - Initialized argument context for request ReceiverRequest [receiver=null]
17:21:50.236 [scanner-1] DEBUG org.eclipse.jetty.util.Scanner - scanned [/volume1/@appstore/OpenHAB/webapps]: {}
17:21:50.238 [scanner-2] DEBUG org.eclipse.jetty.util.Scanner - scanned [/volume1/@appstore/OpenHAB/contexts]: {}
17:21:50.368 [openHAB-job-scheduler_Worker-1] DEBUG o.e.x.x.scoping.XbaseScopeProvider - leave getScope(tfOLEDWriteLine(<XStringLiteralImpl>,<XNumberLiteralImpl>,<XNumberLiteralImpl>,<XStringLiteralImpl>), XAbstractFeatureCall#feature)
17:21:50.373 [openHAB-job-scheduler_Worker-1] DEBUG o.o.m.s.s.ScriptExtensionClassNameProvider - Script actions have changed: TwitterActionService, HTTPActionService, ExecActionService, PingActionService, MiosActionService, AudioActionService, PushoverActionService, TransformationActionService, 
17:21:50.387 [Component Resolve Thread (Bundle 98)] DEBUG o.o.i.s.i.DiscoveryServiceImpl - Registering new service _openhab-cv-server-ssl._tcp.local. at port 8443
17:21:50.595 [openHAB-job-scheduler_Worker-1] DEBUG o.e.x.l.impl.DefaultLinkingService - after getLinkedObjects: node: 'tfOLEDWriteLine' result: null
17:21:50.603 [openHAB-job-scheduler_Worker-1] DEBUG o.e.x.l.impl.DefaultLinkingService - before getLinkedObjects: node: 'tfOLEDWriteLine'
17:21:50.603 [openHAB-job-scheduler_Worker-1] DEBUG o.e.x.x.scoping.XbaseScopeProvider - enter getScope(tfOLEDWriteLine(<XStringLiteralImpl>,<XNumberLiteralImpl>,<XNumberLiteralImpl>,<XStringLiteralImpl>), XAbstractFeatureCall#feature)
17:21:50.603 [openHAB-job-scheduler_Worker-1] DEBUG o.e.x.x.scoping.XbaseScopeProvider - sortedDescriptionsFromLowestToHighest:
FeatureScopeDescription [receiverType=null, descriptionProvider=XFeatureCallSugarDescriptionProvider [featuresForTypeProvider=StaticImplicitMethodsFeatureForTypeProvider [context=Haus.rules, isExtensionProvider=false], contextType=null, implicitReceiver=null, implicitArgument=null, priority=160]]
FeatureScopeDescription [receiverType=null, descriptionProvider=DefaultJvmFeatureDescriptionProvider [featuresForTypeProvider=StaticImplicitMethodsFeatureForTypeProvider [context=Haus.rules, isExtensionProvider=false], contextType=null, implicitReceiver=null, implicitArgument=null, priority=60]]
17:21:50.604 [openHAB-job-scheduler_Worker-1] DEBUG o.e.x.c.t.u.L.Primary - Initialized argument context for request ReceiverRequest [receiver=null]
17:21:50.604 [openHAB-job-scheduler_Worker-1] DEBUG o.e.x.c.t.u.L.Primary - Initialized argument context for request ReceiverRequest [receiver=null]
17:21:50.621 [openHAB-job-scheduler_Worker-1] DEBUG o.e.x.x.scoping.XbaseScopeProvider - leave getScope(tfOLEDWriteLine(<XStringLiteralImpl>,<XNumberLiteralImpl>,<XNumberLiteralImpl>,<XStringLiteralImpl>), XAbstractFeatureCall#feature)
17:21:50.626 [openHAB-job-scheduler_Worker-1] DEBUG o.e.x.l.impl.DefaultLinkingService - after getLinkedObjects: node: 'tfOLEDWriteLine' result: null
17:21:50.629 [openHAB-job-scheduler_Worker-1] DEBUG o.e.x.x.typing.AbstractTypeProvider - getExpectedType(parameterized) : org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.internalEvaluate(XbaseInterpreter.java:219)
17:21:50.629 [openHAB-job-scheduler_Worker-1] DEBUG o.e.x.x.typing.AbstractTypeProvider - getExpectedType: org.eclipse.xtext.xbase.impl.XStringLiteralImpl@130778f (value: yj9)
17:21:50.632 [openHAB-job-scheduler_Worker-1] DEBUG o.e.x.l.impl.DefaultLinkingService - before getLinkedObjects: node: 'tfOLEDWriteLine'
17:21:50.632 [openHAB-job-scheduler_Worker-1] DEBUG o.e.x.x.scoping.XbaseScopeProvider - enter getScope(tfOLEDWriteLine(<XStringLiteralImpl>,<XNumberLiteralImpl>,<XNumberLiteralImpl>,<XStringLiteralImpl>), XAbstractFeatureCall#feature)
17:21:50.633 [openHAB-job-scheduler_Worker-1] DEBUG o.e.x.x.scoping.XbaseScopeProvider - sortedDescriptionsFromLowestToHighest:
FeatureScopeDescription [receiverType=null, descriptionProvider=XFeatureCallSugarDescriptionProvider [featuresForTypeProvider=StaticImplicitMethodsFeatureForTypeProvider [context=Haus.rules, isExtensionProvider=false], contextType=null, implicitReceiver=null, implicitArgument=null, priority=160]]
FeatureScopeDescription [receiverType=null, descriptionProvider=DefaultJvmFeatureDescriptionProvider [featuresForTypeProvider=StaticImplicitMethodsFeatureForTypeProvider [context=Haus.rules, isExtensionProvider=false], contextType=null, implicitReceiver=null, implicitArgument=null, priority=60]]
17:21:50.633 [openHAB-job-scheduler_Worker-1] DEBUG o.e.x.c.t.u.L.Primary - Initialized argument context for request ReceiverRequest [receiver=null]
17:21:50.633 [openHAB-job-scheduler_Worker-1] DEBUG o.e.x.c.t.u.L.Primary - Initialized argument context for request ReceiverRequest [receiver=null]
17:21:50.651 [openHAB-job-scheduler_Worker-1] DEBUG o.e.x.x.scoping.XbaseScopeProvider - leave getScope(tfOLEDWriteLine(<XStringLiteralImpl>,<XNumberLiteralImpl>,<XNumberLiteralImpl>,<XStringLiteralImpl>), XAbstractFeatureCall#feature)
17:21:50.657 [openHAB-job-scheduler_Worker-1] DEBUG o.e.x.l.impl.DefaultLinkingService - after getLinkedObjects: node: 'tfOLEDWriteLine' result: null
17:21:50.657 [openHAB-job-scheduler_Worker-1] DEBUG o.e.x.l.impl.DefaultLinkingService - before getLinkedObjects: node: 'tfOLEDWriteLine'
17:21:50.659 [openHAB-job-scheduler_Worker-1] DEBUG o.e.x.x.scoping.XbaseScopeProvider - enter getScope(tfOLEDWriteLine(<XStringLiteralImpl>,<XNumberLiteralImpl>,<XNumberLiteralImpl>,<XStringLiteralImpl>), XAbstractFeatureCall#feature)
17:21:50.659 [openHAB-job-scheduler_Worker-1] DEBUG o.e.x.x.scoping.XbaseScopeProvider - sortedDescriptionsFromLowestToHighest:
FeatureScopeDescription [receiverType=null, descriptionProvider=XFeatureCallSugarDescriptionProvider [featuresForTypeProvider=StaticImplicitMethodsFeatureForTypeProvider [context=Haus.rules, isExtensionProvider=false], contextType=null, implicitReceiver=null, implicitArgument=null, priority=160]]
FeatureScopeDescription [receiverType=null, descriptionProvider=DefaultJvmFeatureDescriptionProvider [featuresForTypeProvider=StaticImplicitMethodsFeatureForTypeProvider [context=Haus.rules, isExtensionProvider=false], contextType=null, implicitReceiver=null, implicitArgument=null, priority=60]]
17:21:50.660 [openHAB-job-scheduler_Worker-1] DEBUG o.e.x.c.t.u.L.Primary - Initialized argument context for request ReceiverRequest [receiver=null]
17:21:50.660 [openHAB-job-scheduler_Worker-1] DEBUG o.e.x.c.t.u.L.Primary - Initialized argument context for request ReceiverRequest [receiver=null]
17:21:50.673 [openHAB-job-scheduler_Worker-1] DEBUG o.e.x.x.scoping.XbaseScopeProvider - leave getScope(tfOLEDWriteLine(<XStringLiteralImpl>,<XNumberLiteralImpl>,<XNumberLiteralImpl>,<XStringLiteralImpl>), XAbstractFeatureCall#feature)
17:21:50.677 [openHAB-job-scheduler_Worker-1] DEBUG o.e.x.l.impl.DefaultLinkingService - after getLinkedObjects: node: 'tfOLEDWriteLine' result: null
17:21:50.678 [openHAB-job-scheduler_Worker-1] DEBUG o.e.x.x.typing.AbstractTypeProvider -  cache skip: null
17:21:50.678 [openHAB-job-scheduler_Worker-1] DEBUG o.e.x.x.typing.AbstractTypeProvider -  cache hit: false for: org.eclipse.xtext.xbase.impl.XStringLiteralImpl@130778f (value: yj9)
17:21:50.678 [openHAB-job-scheduler_Worker-1] DEBUG o.e.x.x.typing.AbstractTypeProvider - result: null getExpectedType(parameterized) : org.eclipse.xtext.xbase.impl.XStringLiteralImpl@130778f (value: yj9)
17:21:50.678 [openHAB-job-scheduler_Worker-1] DEBUG o.e.x.l.impl.DefaultLinkingService - before getLinkedObjects: node: 'tfOLEDWriteLine'
17:21:50.679 [openHAB-job-scheduler_Worker-1] DEBUG o.e.x.x.scoping.XbaseScopeProvider - enter getScope(tfOLEDWriteLine(<XStringLiteralImpl>,<XNumberLiteralImpl>,<XNumberLiteralImpl>,<XStringLiteralImpl>), XAbstractFeatureCall#feature)
17:21:50.679 [openHAB-job-scheduler_Worker-1] DEBUG o.e.x.x.scoping.XbaseScopeProvider - sortedDescriptionsFromLowestToHighest:
FeatureScopeDescription [receiverType=null, descriptionProvider=XFeatureCallSugarDescriptionProvider [featuresForTypeProvider=StaticImplicitMethodsFeatureForTypeProvider [context=Haus.rules, isExtensionProvider=false], contextType=null, implicitReceiver=null, implicitArgument=null, priority=160]]
FeatureScopeDescription [receiverType=null, descriptionProvider=DefaultJvmFeatureDescriptionProvider [featuresForTypeProvider=StaticImplicitMethodsFeatureForTypeProvider [context=Haus.rules, isExtensionProvider=false], contextType=null, implicitReceiver=null, implicitArgument=null, priority=60]]
17:21:50.680 [openHAB-job-scheduler_Worker-1] DEBUG o.e.x.c.t.u.L.Primary - Initialized argument context for request ReceiverRequest [receiver=null]
17:21:50.680 [openHAB-job-scheduler_Worker-1] DEBUG o.e.x.c.t.u.L.Primary - Initialized argument context for request ReceiverRequest [receiver=null]
17:21:50.693 [openHAB-job-scheduler_Worker-1] DEBUG o.e.x.x.scoping.XbaseScopeProvider - leave getScope(tfOLEDWriteLine(<XStringLiteralImpl>,<XNumberLiteralImpl>,<XNumberLiteralImpl>,<XStringLiteralImpl>), XAbstractFeatureCall#feature)
17:21:50.697 [openHAB-job-scheduler_Worker-1] DEBUG o.e.x.l.impl.DefaultLinkingService - after getLinkedObjects: node: 'tfOLEDWriteLine' result: null
17:21:50.703 [openHAB-job-scheduler_Worker-1] ERROR o.o.m.r.i.engine.ExecuteRuleJob - Error during the execution of rule write every 10 seconds
java.lang.RuntimeException: The name 'tfOLEDWriteLine(<XStringLiteralImpl>,<XNumberLiteralImpl>,<XNumberLiteralImpl>,<XStringLiteralImpl>)' cannot be resolved to an item or type.
at org.openhab.model.script.interpreter.ScriptInterpreter.internalFeatureCallDispatch(ScriptInterpreter.java:67) ~[na:na]
at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter._evaluateAbstractFeatureCall(XbaseInterpreter.java:658) ~[na:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_77]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_77]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_77]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_77]
at org.eclipse.xtext.util.PolymorphicDispatcher.invoke(PolymorphicDispatcher.java:291) ~[na:na]
at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.internalEvaluate(XbaseInterpreter.java:218) ~[na:na]
at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter._evaluateBlockExpression(XbaseInterpreter.java:321) ~[na:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_77]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_77]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_77]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_77]
at org.eclipse.xtext.util.PolymorphicDispatcher.invoke(PolymorphicDispatcher.java:291) ~[na:na]
at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.internalEvaluate(XbaseInterpreter.java:218) ~[na:na]
at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.evaluate(XbaseInterpreter.java:204) ~[na:na]
at org.openhab.model.script.internal.engine.ScriptImpl.execute(ScriptImpl.java:59) ~[na:na]
at org.openhab.model.rule.internal.engine.ExecuteRuleJob.execute(ExecuteRuleJob.java:55) ~[na:na]
at org.quartz.core.JobRunShell.run(JobRunShell.java:213) [quartz-all-2.1.7.jar:na]
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557) [quartz-all-2.1.7.jar:na]

 

Gruß,

Christian

  • 1 month later...
Geschrieben

Hallo,

nach einer Weile Abstinenz habe ich mich mal wieder mit Openhab und TF beschäftigt -- OH2 diesmal. Das macht ja einen recht guten Eindruck; meine MaxCube-Teile hat's praktisch von allein gefunden und eingebunden. Mit TF habe ich allerdings Probleme. Das Binding kann ich installieren (via Extensions), aber es erscheint nicht bei "Bindings", und auch keine TF-Hardware im Überblick.

Im openhab.log finde ich dann errors und warnings dieser Art:

 

2016-08-16 17:07:23.706 [ERROR] [org.openhab.binding.tinkerforge     ] - FrameworkEvent ERROR - org.openhab.binding.tinkerforge
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.tinkerforge [198]
  Another singleton bundle selected: osgi.identity; osgi.identity="org.openhab.binding.tinkerforge"; type="osgi.bundle"; version:Version="1.8.3"; singleton:="true"

 

Legacy bindings sind "true" im addons.cfg. tinkerforge.cfg hat "hosts = localhost". Was läuft hier schief?

merci, macduff

 

Geschrieben

Das meldet sich mit "already installed" zurück; gefolgt von einem error, dass irgendwelche bundles nicht neu gestartet werden konnten...

ich habe auch keine alten konfigurationen von oha 1.x mehr, das ist alles mit einem computer-crash dahingegangen, sondern starte einen neuen versuch mit 2.0.

vielleicht am besten, auf 2.0 bindings zu warten...

danke & ciao

md

Geschrieben

Hallo Theo,

ich habe die Online-Distro als Standardversion (nicht Demo) auf meinem Win 8.1 Rechner installiert. Dann in der Paper UI die Tinkerforge-Bindings dazu installiert, aber sie scheinen halt nicht in der Liste der Bindings auf, und demzufolge wohl auch keine TF Komponenten...

Versuchsweise habe ich aus der Liste der Extensions das eine oder andere weitere Binding installiert; hängen geblieben sind in der Regel aber nur die "echten" 2.0-Bindings.

merci, md

 

  • 1 month later...
  • 3 weeks later...
Geschrieben

Hallo,

 

ich habe heute einen zweiten Master Brick mit eine Ethernet Master Extension versucht in mein Openhab 1.8.3 zu installieren. Es funktioniert nur der erste der zweite sendet keine Werte zu Openhab mit dem Brick Viewer funktionieren die Bricks.

 

Ich finde im Openhab Log eine Fehlermeldung:

 

2016-11-05 20:58:05.576 [ERROR] [.service.AbstractActiveService] - Error while executing background thread Tinkerforge Refresh Service
java.lang.NullPointerException: null
at org.openhab.binding.tinkerforge.internal.model.impl.MBrickletAmbientLightV2Impl.fetchSensorValue(MBrickletAmbientLightV2Impl.java:996) ~[na:na]
at org.openhab.binding.tinkerforge.internal.TinkerforgeBinding.updateItemValues(TinkerforgeBinding.java:625) ~[na:na]
at org.openhab.binding.tinkerforge.internal.TinkerforgeBinding.execute(TinkerforgeBinding.java:589) ~[na:na]
at org.openhab.core.binding.AbstractActiveBinding$BindingActiveService.execute(AbstractActiveBinding.java:156) ~[na:na]
at org.openhab.core.service.AbstractActiveService$RefreshThread.run(AbstractActiveService.java:173) ~[na:na]

 

 

Meine Openhab.cfg

 

##################################Tinkerforge-Binding######################

#

# IP address of the Tinkerforge-Server

tinkerforge:hosts=192.168.178.28 192.168.178.78

 

tinkerforge:rs1.uid=v3E

tinkerforge:rs1.type=bricklet_remote_switch

tinkerforge:rs1.typeADevices=rslr1 rslr2 rslr3

 

tinkerforge:riff_licht_1.uid=v3E

tinkerforge:riff_licht_1.subid=rslr1

tinkerforge:riff_licht_1.type=remote_switch_a

tinkerforge:riff_licht_1.houseCode=31

tinkerforge:riff_licht_1.receiverCode=8

 

tinkerforge:riff_licht_2.uid=v3E

tinkerforge:riff_licht_2.subid=rslr2

tinkerforge:riff_licht_2.type=remote_switch_a

tinkerforge:riff_licht_2.houseCode=31

tinkerforge:riff_licht_2.receiverCode=24

 

tinkerforge:riff_licht_3.uid=v3E

tinkerforge:riff_licht_3.subid=rslr3

tinkerforge:riff_licht_3.type=remote_switch_a

tinkerforge:riff_licht_3.houseCode=31

tinkerforge:riff_licht_3.receiverCode=1

 

##################Tinkerforge Temperatur PDC########

 

tinkerforge:brickletptc.uid=z3d

tinkerforge:brickletptc.type=bricklet_ptc

tinkerforge:brickletptc.wiremode=2

 

tinkerforge:ptctemperature.uid=z3d

tinkerforge:ptctemperature.subid=ptc_temperature

tinkerforge:ptctemperature.type=ptc_temperature

tinkerforge:ptctemperature.callbackPeriod=1000

 

##################Tinkerforge Barometer########

 

tinkerforge:barometer.uid=vNi

tinkerforge:barometer.type=bricklet_barometer

tinkerforge:barometer.callbackPeriod=10000

tinkerforge:barometer.threshold=1000

 

##################Tinkerforge Helligkeit########

 

tinkerforge:ambientlightv2.uid=yEi

tinkerforge:ambientlightv2.type=bricklet_ambient_lightv2

tinkerforge:ambientlightv2.illuminanceRange=10

tinkerforge:ambientlightv2.integrationTime=10

tinkerforge:ambientlightv2.callbackPeriod=10

tinkerforge:ambientlightv2.threshold=0

 

Die erste IP Adresse funktioniert, die zweite IP Adresse geht nicht kann mir jemand Helfen?

 

Gruss Michael

Geschrieben

Der Fehler dürfte hier sein:

tinkerforge:ambientlightv2.illuminanceRange=10
tinkerforge:ambientlightv2.integrationTime=10

illuminanceRange muss ein Wert zwischen 0 und 6 sein, integrationTime zwischen 0 und 7. Im log solltest du einen Fehler direkt beim Initialisieren des Bindings sehen.

 

Siehe auch Doku hier:

https://github.com/openhab/openhab/wiki/Tinkerforge-Binding#ambient-light-bricklet-v2 und hier http://www.tinkerforge.com/de/doc/Software/Bricklets/AmbientLightV2_Bricklet_Java.html#fortgeschrittene-funktionen

 

 

 

Geschrieben

Habe ich angeschaut und mit 3 probiert geht nicht bekomme Fehler.

 

tinkerforge:ambientlightv2.illuminanceRange=3
tinkerforge:ambientlightv2.integrationTime=3

 

Das ist der Fehler im LOG

 

[ERROR] [i.internal.GenericItemProvider] - Binding configuration of type 'tinkerforge' of item ?TF_AmbientLight? could not be parsed correctly.
org.openhab.model.item.binding.BindingConfigParseException: TinkerforgeGenericBindingProvider:processBindingConfiguration: invalid format, the entry must consist of key=value pair, but value was found.yEi
at org.openhab.binding.tinkerforge.internal.TinkerforgeGenericBindingProvider.processBindingConfiguration(TinkerforgeGenericBindingProvider.java:84) ~[na:na]
at org.openhab.model.item.internal.GenericItemProvider.internalDispatchBindings(GenericItemProvider.java:348) [org.openhab.model.item_1.8.3.jar:na]
at org.openhab.model.item.internal.GenericItemProvider.dispatchBindingsPerType(GenericItemProvider.java:309) [org.openhab.model.item_1.8.3.jar:na]
at org.openhab.model.item.internal.GenericItemProvider.addBindingConfigReader(GenericItemProvider.java:106) [org.openhab.model.item_1.8.3.jar:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0]
at java.lang.reflect.Method.invoke(Method.java:483) ~[na:1.8.0]
at org.eclipse.equinox.internal.ds.model.ComponentReference.bind(ComponentReference.java:376) [org.eclipse.equinox.ds_1.4.1.v20120926-201320.jar:na]
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bindReference(ServiceComponentProp.java:444) [org.eclipse.equinox.ds_1.4.1.v20120926-201320.jar:na]
at org.eclipse.equinox.internal.ds.InstanceProcess.dynamicBind(InstanceProcess.java:416) [org.eclipse.equinox.ds_1.4.1.v20120926-201320.jar:na]
at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:334) [org.eclipse.equinox.ds_1.4.1.v20120926-201320.jar:na]
at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222) [org.eclipse.equinox.ds_1.4.1.v20120926-201320.jar:na]
at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107) [org.eclipse.osgi_3.8.2.v20130124-134944.jar:na]
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861) [org.eclipse.osgi_3.8.2.v20130124-134944.jar:na]
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) [org.eclipse.osgi_3.8.2.v20130124-134944.jar:na]
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) [org.eclipse.osgi_3.8.2.v20130124-134944.jar:na]
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819) [org.eclipse.osgi_3.8.2.v20130124-134944.jar:na]
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771) [org.eclipse.osgi_3.8.2.v20130124-134944.jar:na]
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130) [org.eclipse.osgi_3.8.2.v20130124-134944.jar:na]
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214) [org.eclipse.osgi_3.8.2.v20130124-134944.jar:na]
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433) [org.eclipse.osgi_3.8.2.v20130124-134944.jar:na]
at org.eclipse.equinox.internal.ds.InstanceProcess.registerService(InstanceProcess.java:536) [org.eclipse.equinox.ds_1.4.1.v20120926-201320.jar:na]
at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:260) [org.eclipse.equinox.ds_1.4.1.v20120926-201320.jar:na]
at org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied(Resolver.java:473) [org.eclipse.equinox.ds_1.4.1.v20120926-201320.jar:na]
at org.eclipse.equinox.internal.ds.Resolver.enableComponents(Resolver.java:217) [org.eclipse.equinox.ds_1.4.1.v20120926-201320.jar:na]
at org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRManager.java:816) [org.eclipse.equinox.ds_1.4.1.v20120926-201320.jar:na]
at org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatch(SCRManager.java:783) [org.eclipse.equinox.ds_1.4.1.v20120926-201320.jar:na]
at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:89) [org.eclipse.equinox.ds_1.4.1.v20120926-201320.jar:na]
at org.eclipse.equinox.internal.util.impl.tpt.threadpool.Executor.run(Executor.java:70) [org.eclipse.equinox.util_1.0.400.v20120917-192807.jar:na]

 

gehören die ganzen Fehler zu diesem Bricklet. Alle anderen Bricklet funktionieren die aber an einem anderen Master Brick hängen.

Geschrieben

Hallo,

 

das item habe ich geändert in

 

Number Helligkeit "Helligkeit [%.0f lx]" {tinkerforge="yEi"}

  Im Log steht der Fehler

 

Binding configuration of type 'tinkerforge' of item ?Helligkeit? could not be parsed correctly.
org.openhab.model.item.binding.BindingConfigParseException: TinkerforgeGenericBindingProvider:processBindingConfiguration: invalid format, the entry must consist of key=value pair, but value was found.yEi
at org.openhab.binding.tinkerforge.internal.TinkerforgeGenericBindingProvider.processBindingConfiguration(TinkerforgeGenericBindingProvider.java:84) ~[na:na]
at org.openhab.model.item.internal.GenericItemProvider.internalDispatchBindings(GenericItemProvider.java:348) [org.openhab.model.item_1.8.3.jar:na]
at org.openhab.model.item.internal.GenericItemProvider.internalDispatchBindings(GenericItemProvider.java:324) [org.openhab.model.item_1.8.3.jar:na]
at org.openhab.model.item.internal.GenericItemProvider.processBindingConfigsFromModel(GenericItemProvider.java:171) [org.openhab.model.item_1.8.3.jar:na]
at org.openhab.model.item.internal.GenericItemProvider.modelChanged(GenericItemProvider.java:390) [org.openhab.model.item_1.8.3.jar:na]
at org.openhab.model.core.internal.ModelRepositoryImpl.notifyListeners(ModelRepositoryImpl.java:159) [org.openhab.model.core_1.8.3.jar:na]
at org.openhab.model.core.internal.ModelRepositoryImpl.addOrRefreshModel(ModelRepositoryImpl.java:100) [org.openhab.model.core_1.8.3.jar:na]
at org.openhab.model.core.internal.folder.FolderObserver.checkFolder(FolderObserver.java:142) [org.openhab.model.core_1.8.3.jar:na]
at org.openhab.model.core.internal.folder.FolderObserver.run(FolderObserver.java:99) [org.openhab.model.core_1.8.3.jar:na]

 

 

 

Geschrieben

Number Helligkeit "Helligkeit [%.0f lx]" {tinkerforge="yEi"}

 

Wenn im Wiki steht

 

Number illuminance "Illuminance [%.2f]" {tinkerforge="uid=<your_uid>"}

dann bedeutet das für dein Item:

 

Number Helligkeit "Helligkeit [%.0f lx]" {tinkerforge="uid=yEi"}

 

Have fun.

 

P.S.: die Sache mit dem "exakt" hatten wir doch gerade erst im anderen Forum  ;D

Geschrieben

Jetzt habe ich das item geändert funktioniert aber immer noch nicht

 

Number Helligkeit 		"Helligkeit 	[%.2f]" 	 {tinkerforge="uid=yEi"}

 

in der openhab.cfg

 

tinkerforge:ambientlightv2.uid=yEi
tinkerforge:ambientlightv2.type=bricklet_ambient_lightv2
tinkerforge:ambientlightv2.illuminanceRange=3
tinkerforge:ambientlightv2.integrationTime=3
tinkerforge:ambientlightv2.callbackPeriod=10
tinkerforge:ambientlightv2.threshold=0

 

im LOG steht der Fehler

 

[ERROR] [.service.AbstractActiveService] - Error while executing background thread Tinkerforge Refresh Service
java.lang.NullPointerException: null
at org.openhab.binding.tinkerforge.internal.model.impl.MBrickletAmbientLightV2Impl.fetchSensorValue(MBrickletAmbientLightV2Impl.java:879) ~[na:na]
at org.openhab.binding.tinkerforge.internal.TinkerforgeBinding.updateItemValues(TinkerforgeBinding.java:645) ~[na:na]
at org.openhab.binding.tinkerforge.internal.TinkerforgeBinding.execute(TinkerforgeBinding.java:608) ~[na:na]
at org.openhab.core.binding.AbstractActiveBinding$BindingActiveService.execute(AbstractActiveBinding.java:156) ~[na:na]
at org.openhab.core.service.AbstractActiveService$RefreshThread.run(AbstractActiveService.java:173) ~[na:na]

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Gast
Reply to this topic...

×   Du hast formatierten Text eingefügt.   Formatierung jetzt entfernen

  Only 75 emoji are allowed.

×   Dein Link wurde automatisch eingebettet.   Einbetten rückgängig machen und als Link darstellen

×   Dein vorheriger Inhalt wurde wiederhergestellt.   Clear editor

×   Du kannst Bilder nicht direkt einfügen. Lade Bilder hoch oder lade sie von einer URL.

×
×
  • Neu erstellen...