# Openhab2 mysensors

**URL:** <https://community.openhab.org/t/openhab2-mysensors/14148>\
**Category:** Runtime\
**Created:** [September 15, 2016, 7:43pm UTC](https://community.openhab.org/t/openhab2-mysensors/14148 "2016-09-15T19:43:41Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![ikjes\_to](https://community.openhab.org/letter_avatar_proxy/v4/letter/i/ed655f/32.png) [@ikjes\_to](https://community.openhab.org/u/ikjes_to)\
**Post date:** [September 15, 2016, 7:43pm UTC](https://community.openhab.org/t/openhab2-mysensors/14148/1 "2016-09-15T19:43:41Z")

</div>

i installed openhab2 by following  
[http://docs.openhab.org/installation/linux.html#package-repository-installation](http://docs.openhab.org/installation/linux.html#package-repository-installation)

and after that i used

> **[Installation](https://github.com/tobof/openhab-addons/wiki/Installation)**
>
> The next-generation open Home Automation Bus (openHAB) - tobof/openhab-addons

i placed the latest mysensor in jar in usr/share/openhab2/addons folder

but still i cant find the mysensor binding in the paper ui  
(yes i installed the serial binding

016-09-15 19:15:04.023 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing ‘openhab-binding-mysensors’: No matching features for openhab-binding-mysensors/0.0.0

no other error any where

---

<div class="post-metadata">

**Author:** ![TimO](https://community.openhab.org/letter_avatar_proxy/v4/letter/t/c4cdca/32.png) [@TimO](https://community.openhab.org/u/TimO)\
**Post date:** [September 15, 2016, 8:53pm UTC](https://community.openhab.org/t/openhab2-mysensors/14148/2 "2016-09-15T20:53:07Z")

</div>

At which point of the instructions did you get the error message you posted?

The binding should install automatically after moving the jar in the addons folder and after fulfilling the requirement for the serial transport.

---

<div class="post-metadata">

**Author:** ![ikjes\_to](https://community.openhab.org/letter_avatar_proxy/v4/letter/i/ed655f/32.png) [@ikjes\_to](https://community.openhab.org/u/ikjes_to)\
**Post date:** [September 15, 2016, 9:14pm UTC](https://community.openhab.org/t/openhab2-mysensors/14148/3 "2016-09-15T21:14:28Z")

</div>

after i installed the the mysensor binding in de addon folder and restarted

only thing i did diffrent was. when i tried to  
“In the console enter feature:install openhab-transport-serial”  
i had a error:

rror executing command: Error installing bundles:  
Unable to install bundle openhab.transport-serial

so i installed it at the paper ui  
after that i downloaded the latest mysensor snapshot and installed in addon folder

---

<div class="post-metadata">

**Author:** ![ikjes\_to](https://community.openhab.org/letter_avatar_proxy/v4/letter/i/ed655f/32.png) [@ikjes\_to](https://community.openhab.org/u/ikjes_to)\
**Post date:** [September 15, 2016, 9:25pm UTC](https://community.openhab.org/t/openhab2-mysensors/14148/4 "2016-09-15T21:25:30Z")

</div>

```auto
2016-09-15 18:50:45.714 [INFO] [el.core.internal.ModelRepositoryImpl] - Loading model 'demo.items'
2016-09-15 18:50:50.308 [INFO] [el.core.internal.ModelRepositoryImpl] - Loading model 'rrd4j.persist'
2016-09-15 18:50:50.842 [INFO] [el.core.internal.ModelRepositoryImpl] - Loading model 'logging.persist'
2016-09-15 18:51:17.720 [INFO] [el.core.internal.ModelRepositoryImpl] - Loading model 'demo.rules'
2016-09-15 18:51:28.693 [INFO] [el.core.internal.ModelRepositoryImpl] - Loading model 'demo.script'
2016-09-15 18:51:37.185 [INFO] [el.core.internal.ModelRepositoryImpl] - Loading model 'demo.sitemap'
2016-09-15 18:55:04.413 [WARN] [nce.extensions.PersistenceExtensions] - There is no default persistence service configured!
2016-09-15 18:55:04.447 [WARN] [nce.extensions.PersistenceExtensions] - There is no queryable persistence service registered with the id 'null'
2016-09-15 18:55:04.521 [ERROR] [ntime.internal.engine.RuleEngineImpl] - Error during the execution of startup rule 'ut': cannot invoke method public abstract org.eclipse.smarthome.core.types.State org.eclipse.smarthome.core.persistence.HistoricItem.getState() on null
2016-09-15 18:55:05.549 [INFO] [el.core.internal.ModelRepositoryImpl] - Loading model 'demo.things'
2016-09-15 18:55:59.666 [INFO] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
2016-09-15 18:56:04.171 [INFO] [assic.internal.servlet.WebAppServlet] - Started Classic UI at /classicui/app
2016-09-15 18:56:10.741 [INFO] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /ui
2016-09-15 18:56:14.620 [INFO] [.dashboard.internal.DashboardService] - Started dashboard at /start
2016-09-15 18:56:34.441 [ERROR] [ome.core.thing.internal.ThingManager] - Exception occured while calling thing updated at ThingHandler 'org.eclipse.smarthome.binding.yahooweather.handler.YahooWeatherHandler@1200475: null
java.util.concurrent.TimeoutException
	at java.util.concurrent.FutureTask.get(FutureTask.java:205)[:1.8.0_65]
	at org.eclipse.smarthome.core.common.SafeMethodCaller.callAsynchronous(SafeMethodCaller.java:186)[96:org.eclipse.smarthome.core:0.9.0.b1]
	at org.eclipse.smarthome.core.common.SafeMethodCaller.call(SafeMethodCaller.java:79)[96:org.eclipse.smarthome.core:0.9.0.b1]
	at org.eclipse.smarthome.core.common.SafeMethodCaller.call(SafeMethodCaller.java:63)[96:org.eclipse.smarthome.core:0.9.0.b1]
	at org.eclipse.smarthome.core.thing.internal.ThingManager.thingUpdated(ThingManager.java:556)[102:org.eclipse.smarthome.core.thing:0.9.0.b1]
	at org.eclipse.smarthome.core.thing.internal.ThingRegistryImpl.notifyTrackers(ThingRegistryImpl.java:226)[102:org.eclipse.smarthome.core.thing:0.9.0.b1]
	at org.eclipse.smarthome.core.thing.internal.ThingRegistryImpl.notifyListenersAboutUpdatedElement(ThingRegistryImpl.java:149)[102:org.eclipse.smarthome.core.thing:0.9.0.b1]
	at org.eclipse.smarthome.core.thing.internal.ThingRegistryImpl.notifyListenersAboutUpdatedElement(ThingRegistryImpl.java:1)[102:org.eclipse.smarthome.core.thing:0.9.0.b1]
	at org.eclipse.smarthome.core.common.registry.AbstractRegistry.updated(AbstractRegistry.java:167)[96:org.eclipse.smarthome.core:0.9.0.b1]
	at org.eclipse.smarthome.core.common.registry.AbstractProvider.notifyListeners(AbstractProvider.java:57)[96:org.eclipse.smarthome.core:0.9.0.b1]
	at org.eclipse.smarthome.core.common.registry.AbstractProvider.notifyListenersAboutUpdatedElement(AbstractProvider.java:82)[96:org.eclipse.smarthome.core:0.9.0.b1]
	at org.eclipse.smarthome.model.thing.internal.GenericThingProvider.access$3(GenericThingProvider.java:1)[127:org.eclipse.smarthome.model.thing:0.9.0.b1]
	at org.eclipse.smarthome.model.thing.internal.GenericThingProvider$1$2.accept(GenericThingProvider.java:940)[127:org.eclipse.smarthome.model.thing:0.9.0.b1]
	at org.eclipse.smarthome.model.thing.internal.GenericThingProvider$1$2.accept(GenericThingProvider.java:1)[127:org.eclipse.smarthome.model.thing:0.9.0.b1]
	at java.util.ArrayList.forEach(ArrayList.java:1249)[:1.8.0_65]
	at org.eclipse.smarthome.model.thing.internal.GenericThingProvider$1.run(GenericThingProvider.java:949)[127:org.eclipse.smarthome.model.thing:0.9.0.b1]
	at java.lang.Thread.run(Thread.java:745)[:1.8.0_65]
2016-09-15 18:56:41.614 [WARN] [ome.core.thing.internal.ThingManager] - Initializing handler for thing 'astro:sun:home' takes more than 5000ms.
2016-09-15 18:56:41.762 [WARN] [ore.internal.events.OSGiEventManager] - Dispatching event to subscriber 'org.eclipse.smarthome.io.rest.sse.internal.listeners.SseEventSubscriber@8efed8' takes more than 5000ms.
2016-09-15 18:56:41.816 [WARN] [ome.core.thing.internal.ThingManager] - Initializing handler for thing 'astro:moon:home' takes more than 5000ms.
2016-09-15 18:56:45.851 [INFO] [ding.astro.handler.AstroThingHandler] - Scheduled astro DailyJob at midnight for thing astro:moon:home
2016-09-15 18:56:45.889 [INFO] [ding.astro.handler.AstroThingHandler] - Scheduled astro DailyJob at midnight for thing astro:sun:home
2016-09-15 18:58:22.423 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-binding-mysensors': No matching features for openhab-binding-mysensors/0.0.0
2016-09-15 19:01:56.700 [WARN] [oweather.handler.YahooWeatherHandler] - Error accessing Yahoo weather: Server returned HTTP response code: 504 for URL: https://query.yahooapis.com/v1/public/yql?format=json&q=SELECT%20*%20FROM%20weather.forecast%20WHERE%20u%20=%20%27c%27%20AND%20woeid%20=%20638242
2016-09-15 19:01:56.977 [WARN] [oweather.handler.YahooWeatherHandler] - Error accessing Yahoo weather: Connection refused
2016-09-15 19:02:53.430 [WARN] [oweather.handler.YahooWeatherHandler] - Error accessing Yahoo weather: Connection refused
2016-09-15 19:05:47.552 [INFO] [ding.astro.handler.AstroThingHandler] - Deleting astro DailyJob for thing 'astro:moon:home'
2016-09-15 19:05:47.633 [INFO] [ding.astro.handler.AstroThingHandler] - Deleting astro DailyJob for thing 'astro:sun:home'
2016-09-15 19:05:49.790 [INFO] [basic.internal.servlet.WebAppServlet] - Stopped Basic UI
2016-09-15 19:05:50.121 [INFO] [assic.internal.servlet.WebAppServlet] - Stopped Classic UI
2016-09-15 19:05:57.121 [INFO] [arthome.ui.paper.internal.PaperUIApp] - Stopped Paper UI
2016-09-15 19:05:57.333 [INFO] [.dashboard.internal.DashboardService] - Stopped dashboard
2016-09-15 19:09:27.543 [INFO] [el.core.internal.ModelRepositoryImpl] - Loading model 'demo.items'
2016-09-15 19:09:32.980 [INFO] [el.core.internal.ModelRepositoryImpl] - Loading model 'rrd4j.persist'
2016-09-15 19:09:33.479 [INFO] [el.core.internal.ModelRepositoryImpl] - Loading model 'logging.persist'
2016-09-15 19:10:00.462 [INFO] [el.core.internal.ModelRepositoryImpl] - Loading model 'demo.rules'
2016-09-15 19:10:14.750 [INFO] [el.core.internal.ModelRepositoryImpl] - Loading model 'demo.script'
2016-09-15 19:10:20.857 [INFO] [el.core.internal.ModelRepositoryImpl] - Loading model 'demo.sitemap'
2016-09-15 19:13:41.944 [WARN] [nce.extensions.PersistenceExtensions] - There is no default persistence service configured!
2016-09-15 19:13:41.970 [WARN] [nce.extensions.PersistenceExtensions] - There is no queryable persistence service registered with the id 'null'
2016-09-15 19:13:42.022 [ERROR] [ntime.internal.engine.RuleEngineImpl] - Error during the execution of startup rule 'ut': cannot invoke method public abstract org.eclipse.smarthome.core.types.State org.eclipse.smarthome.core.persistence.HistoricItem.getState() on null
2016-09-15 19:13:43.092 [INFO] [el.core.internal.ModelRepositoryImpl] - Loading model 'demo.things'
2016-09-15 19:14:41.483 [INFO] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
2016-09-15 19:14:45.573 [INFO] [assic.internal.servlet.WebAppServlet] - Started Classic UI at /classicui/app
2016-09-15 19:14:53.271 [INFO] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /ui
2016-09-15 19:14:57.138 [INFO] [.dashboard.internal.DashboardService] - Started dashboard at /start
2016-09-15 19:15:04.023 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-binding-mysensors': No matching features for openhab-binding-mysensors/0.0.0
2016-09-15 19:15:04.030 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-binding-mysensors': No matching features for openhab-binding-mysensors/0.0.0
2016-09-15 19:15:16.549 [WARN] [thome.binding.ntp.handler.NtpHandler] - ntp:ntp:demo couldn't establish network connection [host 'nl.pool.ntp.org'] -> returning current sytem time instead.
2016-09-15 19:15:25.248 [INFO] [ding.astro.handler.AstroThingHandler] - Scheduled astro DailyJob at midnight for thing astro:moon:home
2016-09-15 19:15:25.261 [INFO] [ding.astro.handler.AstroThingHandler] - Scheduled astro DailyJob at midnight for thing astro:sun:home

```

---

<div class="post-metadata">

**Author:** ![ikjes\_to](https://community.openhab.org/letter_avatar_proxy/v4/letter/i/ed655f/32.png) [@ikjes\_to](https://community.openhab.org/u/ikjes_to)\
**Post date:** [September 16, 2016, 11:30am UTC](https://community.openhab.org/t/openhab2-mysensors/14148/5 "2016-09-16T11:30:10Z")

</div>

also tried in addons.cfg

A comma-separated list of bindings to install (e.g. “sonos,knx,zwave”)  
binding =mysensors

---

<div class="post-metadata">

**Author:** ![TimO](https://community.openhab.org/letter_avatar_proxy/v4/letter/t/c4cdca/32.png) [@TimO](https://community.openhab.org/u/TimO)\
**Post date:** [September 16, 2016, 12:20pm UTC](https://community.openhab.org/t/openhab2-mysensors/14148/6 "2016-09-16T12:20:27Z")

</div>

Interesting error message, haven’t seen this yet.  
Which OH2 Version are you running? Did you try to download the binding (RAW) again? Adding mysensors to addons.cfg ist needless, it will work after the binding gets part of OH2.

---

<div class="post-metadata">

**Author:** ![ikjes\_to](https://community.openhab.org/letter_avatar_proxy/v4/letter/i/ed655f/32.png) [@ikjes\_to](https://community.openhab.org/u/ikjes_to)\
**Post date:** [September 16, 2016, 12:30pm UTC](https://community.openhab.org/t/openhab2-mysensors/14148/7 "2016-09-16T12:30:44Z")

</div>

i already did two clean installs off openhab2  
i use 2.0.0.b4 Build #477

also tried 3x times instal the mysensor snaphot  
ones wget direct link, ones raw version from github en ones from a drive

also one time, with rename (removed 2.0.0-SNAPSHOT) from the name  
yup have to try some things

---

<div class="post-metadata">

**Author:** ![ikjes\_to](https://community.openhab.org/letter_avatar_proxy/v4/letter/i/ed655f/32.png) [@ikjes\_to](https://community.openhab.org/u/ikjes_to)\
**Post date:** [September 16, 2016, 1:00pm UTC](https://community.openhab.org/t/openhab2-mysensors/14148/8 "2016-09-16T13:00:27Z")

</div>

Yesss

was a permission thing…pfff always…

wrong permision to the addons folder

---

<div class="post-metadata">

**Author:** ![TimO](https://community.openhab.org/letter_avatar_proxy/v4/letter/t/c4cdca/32.png) [@TimO](https://community.openhab.org/u/TimO)\
**Post date:** [September 16, 2016, 1:53pm UTC](https://community.openhab.org/t/openhab2-mysensors/14148/9 "2016-09-16T13:53:06Z")

</div>

Uff okay, I am glad you found it!  
I need to stop to run OH2 with root permission! 😃

---

<div class="post-metadata">

**Author:** ![Pendragon](https://community.openhab.org/letter_avatar_proxy/v4/letter/p/c0e974/32.png) [@Pendragon](https://community.openhab.org/u/Pendragon)\
**Post date:** [December 24, 2016, 1:16pm UTC](https://community.openhab.org/t/openhab2-mysensors/14148/10 "2016-12-24T13:16:23Z")

</div>

> so i installed it at the paper ui  
> after that i downloaded the latest mysensor snapshot and installed in addon folder

Where did you do this? I get the same error and don’t find the point to install this feature.

Perhaps there is a permission problem?

---

<div class="post-metadata">

**Author:** ![Pendragon](https://community.openhab.org/letter_avatar_proxy/v4/letter/p/c0e974/32.png) [@Pendragon](https://community.openhab.org/u/Pendragon)\
**Post date:** [December 24, 2016, 2:32pm UTC](https://community.openhab.org/t/openhab2-mysensors/14148/11 "2016-12-24T14:32:39Z")

</div>

OK, i dug into the logs and found the problem for the problem:

sudo chown -R openhab:openhab /var/lib/openhab2

The mv subdir is owned by root due to an update problem via apt-get…

---

<div class="post-metadata">

**Author:** ![marklavercombe](https://community.openhab.org/letter_avatar_proxy/v4/letter/m/ce7236/32.png) [@marklavercombe](https://community.openhab.org/u/marklavercombe)\
**Post date:** [December 25, 2016, 12:24pm UTC](https://community.openhab.org/t/openhab2-mysensors/14148/12 "2016-12-25T12:24:00Z")

</div>

Hi @TimO,  
Sorry to be a pain, but my installation seems to just sit on ‘initializing’ for ages without ever connecting to my ethernet bridge, then moving to Offline.  
The jar has openhab2 daemon ownership, so shouldn’t be an issue with that.  
I can confirm that my bridge is on the correct ip, and is working correctly.  
Any ideas?

---

<div class="post-metadata">

**Author:** ![TimO](https://community.openhab.org/letter_avatar_proxy/v4/letter/t/c4cdca/32.png) [@TimO](https://community.openhab.org/u/TimO)\
**Post date:** [December 25, 2016, 10:15pm UTC](https://community.openhab.org/t/openhab2-mysensors/14148/13 "2016-12-25T22:15:12Z")

</div>

Are you using the current snapshot of OH2 or beta5? The binding is not working anymore with beta4 due to the recent changes in the OH2 API.

---

<div class="post-metadata">

**Author:** ![marklavercombe](https://community.openhab.org/letter_avatar_proxy/v4/letter/m/ce7236/32.png) [@marklavercombe](https://community.openhab.org/u/marklavercombe)\
**Post date:** [December 25, 2016, 10:22pm UTC](https://community.openhab.org/t/openhab2-mysensors/14148/14 "2016-12-25T22:22:23Z")

</div>

Hi,  
Thanks for responding.  
I am using the 2.0.0.008-SNAPSHOT version.  
Is the binding incompatible?  
Cheers!

---

<div class="post-metadata">

**Author:** ![TimO](https://community.openhab.org/letter_avatar_proxy/v4/letter/t/c4cdca/32.png) [@TimO](https://community.openhab.org/u/TimO)\
**Post date:** [December 26, 2016, 9:13am UTC](https://community.openhab.org/t/openhab2-mysensors/14148/15 "2016-12-26T09:13:05Z")

</div>

Hi!  
Snapshot release should work fine, I’m using it myself. Please show me your debug log.  
Cheers! 🙂

---

<div class="post-metadata">

**Author:** ![marklavercombe](https://community.openhab.org/letter_avatar_proxy/v4/letter/m/ce7236/32.png) [@marklavercombe](https://community.openhab.org/u/marklavercombe)\
**Post date:** [December 27, 2016, 5:42am UTC](https://community.openhab.org/t/openhab2-mysensors/14148/16 "2016-12-27T05:42:10Z")

</div>

Hi.  
I get this in the openhab.log:

```
    2016-12-27 16:06:37.375 [ERROR] [al.protocol.ip.MySensorsIpConnection] - Error while trying to connect InputStreamReader
2016-12-27 16:06:37.377 [ERROR] [al.protocol.ip.MySensorsIpConnection] - Failed connecting to bridge...next retry in 10 seconds (Retry No.:478)

```

Is there another log you need?
