Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Netatmo 1.x binding is not running #97

Closed
robnielsen opened this issue Jan 18, 2016 · 4 comments
Closed

Netatmo 1.x binding is not running #97

robnielsen opened this issue Jan 18, 2016 · 4 comments

Comments

@robnielsen
Copy link

I am using build #89 of OH2. I followed the instructions at https://github.com/openhab/openhab-distro/blob/master/docs/sources/features/compatibilitylayer.md#how-to-use-openhab-1x-add-ons-that-are-not-part-of-the-distribution. The binding is loaded:

openhab> bundle:list -s |grep netatmo
166 | Active   |  80 | 1.9.0.201601172341    | org.openhab.binding.netatmo

I turned on debugging for netatmo and this is what's in the log:

2016-01-18 08:08:33.911 [DEBUG] [org.openhab.binding.netatmo         ] - BundleEvent STARTING - org.openhab.binding.netatmo
2016-01-18 08:08:33.912 [DEBUG] [ng.netatmo.internal.NetatmoActivator] - Netatmo binding has been started.
2016-01-18 08:08:33.939 [DEBUG] [org.openhab.binding.netatmo         ] - ServiceEvent REGISTERED - {org.osgi.service.cm.ManagedService}={service.pid=org.openhab.netatmo, component.name=org.openhab.binding.netatmo.binding, component.id=173, service.id=280, service.bundleid=166, service.scope=bundle} - org.openhab.binding.netatmo
2016-01-18 08:08:33.955 [DEBUG] [org.openhab.binding.netatmo         ] - ServiceEvent REGISTERED - {org.openhab.model.item.binding.BindingConfigReader, org.openhab.binding.netatmo.NetatmoBindingProvider}={component.name=org.openhab.binding.netatmo.genericbindingprovider, component.id=174, service.id=279, service.bundleid=166, service.scope=bundle} - org.openhab.binding.netatmo
2016-01-18 08:08:33.967 [DEBUG] [org.openhab.binding.netatmo         ] - BundleEvent STARTED - org.openhab.binding.netatmo
2016-01-18 08:08:34.086 [INFO ] [b.core.service.AbstractActiveService] - Netatmo Refresh Service has been started
2016-01-18 08:08:34.087 [INFO ] [b.core.service.AbstractActiveService] - Netatmo Refresh Service has been shut down

I also set up some items and they are getting loaded:

2016-01-18 08:08:35.496 [DEBUG] [ternal.NetatmoGenericBindingProvider] - Processing binding configuration: 'xx:xx:xx:xx:xx:xx#Temperature'
2016-01-18 08:08:35.499 [DEBUG] [ternal.NetatmoGenericBindingProvider] - Adding binding: NetatmoBindingConfig [userid=null, deviceId=xx:xx:xx:xx:xx:xx, moduleId=null, measure=Temperature]
2016-01-18 08:08:35.501 [DEBUG] [ternal.NetatmoGenericBindingProvider] - Processing binding configuration: 'xx:xx:xx:xx:xx:xx#Humidity'
2016-01-18 08:08:35.505 [DEBUG] [ternal.NetatmoGenericBindingProvider] - Adding binding: NetatmoBindingConfig [userid=null, deviceId=xx:xx:xx:xx:xx:xx, moduleId=null, measure=Humidity]
2016-01-18 08:08:35.505 [DEBUG] [ternal.NetatmoGenericBindingProvider] - Processing binding configuration: 'xx:xx:xx:xx:xx:xx#Noise'
2016-01-18 08:08:35.509 [DEBUG] [ternal.NetatmoGenericBindingProvider] - Adding binding: NetatmoBindingConfig [userid=null, deviceId=xx:xx:xx:xx:xx:xx, moduleId=null, measure=Noise]

But nothing else happens or is logged.

@kaikreuzer
Copy link
Member

As there are no signs that the distro has any problem here, please report this as an issue for the Netatmo binding itself, which is maintained at https://github.com/openhab/openhab/issues. Thanks!

@robnielsen
Copy link
Author

@kaikreuzer, this isn't helpful at all. Why OH2 start then shut it down within 1 ms?`

2016-01-18 08:08:34.086 [INFO ] [b.core.service.AbstractActiveService] - Netatmo Refresh Service has been started
2016-01-18 08:08:34.087 [INFO ] [b.core.service.AbstractActiveService] - Netatmo Refresh Service has been shut down

@robnielsen
Copy link
Author

I turned on debugging for everything and this is what I get:

2016-01-18 11:52:22.439 [DEBUG] [org.openhab.binding.netatmo         ] - BundleEvent STARTING - org.openhab.binding.netatmo
2016-01-18 11:52:22.441 [DEBUG] [ng.netatmo.internal.NetatmoActivator] - Netatmo binding has been started.
2016-01-18 11:52:22.442 [DEBUG] [mpl.info.InfoBundleTrackerCustomizer] - Ignore incorrect info null provided by bundle org.openhab.binding.netatmo
2016-01-18 11:52:22.442 [DEBUG] [org.openhab.binding.netatmo         ] - BundleEvent STARTED - org.openhab.binding.netatmo
2016-01-18 11:52:22.505 [INFO ] [b.core.service.AbstractActiveService] - Netatmo Refresh Service has been started
2016-01-18 11:52:22.507 [INFO ] [b.core.service.AbstractActiveService] - Netatmo Refresh Service has been shut down
2016-01-18 11:52:22.505 [DEBUG] [org.openhab.binding.netatmo         ] - ServiceEvent REGISTERED - {org.osgi.service.cm.ManagedService}={service.pid=org.openhab.netatmo, component.name=org.openhab.binding.netatmo.binding, component.id=173, service.id=281, service.bundleid=166, service.scope=bundle} - org.openhab.binding.netatmo
2016-01-18 11:52:22.513 [DEBUG] [org.openhab.binding.netatmo         ] - ServiceEvent REGISTERED - {org.openhab.model.item.binding.BindingConfigReader, org.openhab.binding.netatmo.NetatmoBindingProvider}={component.name=org.openhab.binding.netatmo.genericbindingprovider, component.id=174, service.id=280, service.bundleid=166, service.scope=bundle} - org.openhab.binding.netatmo

@kaikreuzer
Copy link
Member

Doing a scr:list I get:

179 |             | org.openhab.binding.netatmo.binding
180 | ACTIVE      | org.openhab.binding.netatmo.genericbindingprovider

which shows that the binding component is not active. So I guess it needs to be marked as immediate=true as it is done here for ZWave as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants