Når jeg sætte en af ovenstående værdier i openhab bliver den ikke sendt til IHC, men får følgende fejl i OH loggen
2018-02-25 11:28:39.082 [ERROR] [nhab.binding.ihc.internal.IhcBinding] - Error occurred during item update
java.lang.NullPointerException: null
at org.openhab.binding.ihc.internal.IhcDataConverter.convertCommandToResourceValue(IhcDataConverter.java:325) [209:org.openhab.binding.ihc:1.11.0]
at org.openhab.binding.ihc.internal.IhcBinding.updateResource(IhcBinding.java:435) [209:org.openhab.binding.ihc:1.11.0]
at org.openhab.binding.ihc.internal.IhcBinding.internalReceiveUpdate(IhcBinding.java:359) [209:org.openhab.binding.ihc:1.11.0]
at org.openhab.core.binding.AbstractBinding.receiveUpdate(AbstractBinding.java:113) [210:org.openhab.core.compat1x:2.2.0]
at org.openhab.core.events.AbstractEventSubscriber.handleEvent(AbstractEventSubscriber.java:39) [210:org.openhab.core.compat1x:2.2.0]
at org.apache.felix.eventadmin.impl.handler.EventHandlerProxy.sendEvent(EventHandlerProxy.java:415) [3:org.apache.karaf.services.eventadmin:4.1.3]
at org.apache.felix.eventadmin.impl.tasks.HandlerTask.runWithoutBlacklistTiming(HandlerTask.java:82) [3:org.apache.karaf.services.eventadmin:4.1.3]
at org.apache.felix.eventadmin.impl.tasks.SyncDeliverTasks.execute(SyncDeliverTasks.java:104) [3:org.apache.karaf.services.eventadmin:4.1.3]
at org.apache.felix.eventadmin.impl.tasks.AsyncDeliverTasks$TaskExecuter.run(AsyncDeliverTasks.java:166) [3:org.apache.karaf.services.eventadmin:4.1.3]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
at java.lang.Thread.run(Thread.java:748) [?:?]
==> /var/log/openhab2/events.log <==
2018-02-25 11:28:39.085 [vent.ItemStateChangedEvent] - tilihcalarm changed from NULL to Alarm
Question
Mads M
Hej
Jeg vil gerne sende en Ensum til IHC fra Openhab, jeg ved ikke om det er muligt at sende ensum værdier til IHC, den anden vej fungere det fint.
Jeg har denne ihc ensum
<resource_enum id="_0x159900f" name="Tekst fra Myelas" typedef="_0x1597147" inivalue="_0x159b648" icon="_0x22"/>
Jeg har lavet dette OH item:
String tilihcalarm "til ihc alarm [%s]" {ihc=">0x159900f"}
Min ensum kan så være følgende værdier:
Ukendt
Frakoblet
Tilkoblet
Alarm
Når jeg sætte en af ovenstående værdier i openhab bliver den ikke sendt til IHC, men får følgende fejl i OH loggen
2018-02-25 11:28:39.082 [ERROR] [nhab.binding.ihc.internal.IhcBinding] - Error occurred during item update java.lang.NullPointerException: null at org.openhab.binding.ihc.internal.IhcDataConverter.convertCommandToResourceValue(IhcDataConverter.java:325) [209:org.openhab.binding.ihc:1.11.0] at org.openhab.binding.ihc.internal.IhcBinding.updateResource(IhcBinding.java:435) [209:org.openhab.binding.ihc:1.11.0] at org.openhab.binding.ihc.internal.IhcBinding.internalReceiveUpdate(IhcBinding.java:359) [209:org.openhab.binding.ihc:1.11.0] at org.openhab.core.binding.AbstractBinding.receiveUpdate(AbstractBinding.java:113) [210:org.openhab.core.compat1x:2.2.0] at org.openhab.core.events.AbstractEventSubscriber.handleEvent(AbstractEventSubscriber.java:39) [210:org.openhab.core.compat1x:2.2.0] at org.apache.felix.eventadmin.impl.handler.EventHandlerProxy.sendEvent(EventHandlerProxy.java:415) [3:org.apache.karaf.services.eventadmin:4.1.3] at org.apache.felix.eventadmin.impl.tasks.HandlerTask.runWithoutBlacklistTiming(HandlerTask.java:82) [3:org.apache.karaf.services.eventadmin:4.1.3] at org.apache.felix.eventadmin.impl.tasks.SyncDeliverTasks.execute(SyncDeliverTasks.java:104) [3:org.apache.karaf.services.eventadmin:4.1.3] at org.apache.felix.eventadmin.impl.tasks.AsyncDeliverTasks$TaskExecuter.run(AsyncDeliverTasks.java:166) [3:org.apache.karaf.services.eventadmin:4.1.3] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?] at java.lang.Thread.run(Thread.java:748) [?:?] ==> /var/log/openhab2/events.log <== 2018-02-25 11:28:39.085 [vent.ItemStateChangedEvent] - tilihcalarm changed from NULL to Alarm
Er der nogen ideer ?
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.