Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Controllers
  3. OpenHAB
  4. openHAB 2.0 binding

openHAB 2.0 binding

Scheduled Pinned Locked Moved OpenHAB
534 Posts 88 Posters 479.6k Views 99 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Daniel OliveiraD Daniel Oliveira

    Hi @TimO

    I have a ESP8266 as Ethernet GW and a Nano with a S_HUM, S_TEMP and a S_LIGHT_LEVEL.
    I follow as described steps and the S_TEMP sensor is updated almost immediately, the S_HUM takes some minutes and the S_LIGHT_LEVEL is never updated.

    Can you take a look please?

    Launching the openHAB runtime...
    Listening for transport dt_socket at address: 8001
    2015-09-26 11:42:26 [DEBUG] [s.m.i.r.i.ItemRuntimeActivator:23   ] - Registered 'item' configuration parser
    2015-09-26 11:42:26 [INFO ] [uartz.impl.StdSchedulerFactory:1184 ] - Using default implementation for ThreadExecutor
    2015-09-26 11:42:26 [INFO ] [rtz.core.SchedulerSignalerImpl:61   ] - Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
    2015-09-26 11:42:26 [INFO ] [rg.quartz.core.QuartzScheduler:240  ] - Quartz Scheduler v.2.2.1 created.
    2015-09-26 11:42:26 [INFO ] [org.quartz.simpl.RAMJobStore  :155  ] - RAMJobStore initialized.
    2015-09-26 11:42:26 [INFO ] [rg.quartz.core.QuartzScheduler:305  ] - Scheduler meta-data: Quartz Scheduler (v2.2.1) 'openHAB-job-scheduler' with instanceId 'NON_CLUSTERED'
      Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
      NOT STARTED.
      Currently in standby mode.
      Number of jobs executed: 0
      Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 2 threads.
      Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.
    
    2015-09-26 11:42:26 [INFO ] [uartz.impl.StdSchedulerFactory:1339 ] - Quartz scheduler 'openHAB-job-scheduler' initialized from specified file: './runtime/etc/quartz.properties'
    2015-09-26 11:42:26 [INFO ] [uartz.impl.StdSchedulerFactory:1343 ] - Quartz scheduler version: 2.2.1
    2015-09-26 11:42:26 [DEBUG] [.i.PersistenceRuntimeActivator:23   ] - Registered 'persistence' configuration parser
    2015-09-26 11:42:26 [DEBUG] [s.m.r.r.i.RuleRuntimeActivator:35   ] - Registered 'rule' configuration parser
    2015-09-26 11:42:26 [DEBUG] [m.s.r.i.ScriptRuntimeActivator:22   ] - Registered 'script' configuration parser
    2015-09-26 11:42:26 [DEBUG] [.s.r.i.SitemapRuntimeActivator:23   ] - Registered 'sitemap' configuration parser
    2015-09-26 11:42:26 [DEBUG] [.m.t.r.i.ThingRuntimeActivator:23   ] - Registered 'thing' configuration parser
    osgi> 2015-09-26 11:42:27 [WARN ] [.j.s.handler.RequestLogHandler:137  ] - !RequestLog
    2015-09-26 11:42:27 [DEBUG] [.c.d.internal.ConfigDispatcher:222  ] - Processing config file 'services.cfg'
    2015-09-26 11:42:27 [DEBUG] [.c.d.internal.ConfigDispatcher:222  ] - Processing config file 'runtime.cfg'
    2015-09-26 11:42:28 [DEBUG] [.s.core.internal.CoreActivator:30   ] - Core bundle has been started.
    2015-09-26 11:42:28 [DEBUG] [.e.s.c.a.i.AutoUpdateActivator:29   ] - AutoUpdate binding has been started.
    2015-09-26 11:42:28 [DEBUG] [c.x.o.XmlDocumentBundleTracker:118  ] - Reading the XML document '/ESH-INF/binding/binding.xml' in module 'org.openhab.binding.mysensors'...
    2015-09-26 11:42:28 [DEBUG] [o.e.s.c.s.i.SchedulerActivator:34   ] - Scheduler has been started.
    2015-09-26 11:42:28 [INFO ] [rg.quartz.core.QuartzScheduler:575  ] - Scheduler openHAB-job-scheduler_$_NON_CLUSTERED started.
    2015-09-26 11:42:28 [DEBUG] [c.x.o.XmlDocumentBundleTracker:159  ] - Create an empty XmlDocumentProvider for the module 'org.openhab.binding.mysensors'.
    2015-09-26 11:42:28 [DEBUG] [c.x.o.XmlDocumentBundleTracker:118  ] - Reading the XML document '/ESH-INF/thing/channels.xml' in module 'org.openhab.binding.mysensors'...
    2015-09-26 11:42:28 [DEBUG] [.c.t.i.TransformationActivator:34   ] - Transformation Service has been started.
    2015-09-26 11:42:28 [DEBUG] [c.x.o.XmlDocumentBundleTracker:159  ] - Create an empty XmlDocumentProvider for the module 'org.openhab.binding.mysensors'.
    2015-09-26 11:42:28 [DEBUG] [c.x.o.XmlDocumentBundleTracker:118  ] - Reading the XML document '/ESH-INF/thing/thing-types.xml' in module 'org.openhab.binding.mysensors'...
    2015-09-26 11:42:28 [DEBUG] [.e.s.i.m.i.MultimediaActivator:32   ] - Multimedia I/O bundle has been started.
    2015-09-26 11:42:28 [DEBUG] [c.x.o.XmlDocumentBundleTracker:118  ] - Reading the XML document '/ESH-INF/thing/bridges.xml' in module 'org.openhab.binding.mysensors'...
    2015-09-26 11:42:28 [DEBUG] [io.rest.internal.RESTActivator:32   ] - REST API has been started.
    2015-09-26 11:42:28 [DEBUG] [s.i.t.m.internal.MDNSActivator:27   ] - mDNS service has been started.
    2015-09-26 11:42:28 [DEBUG] [.i.t.m.internal.MDNSClientImpl:37   ] - mDNS service has been started
    2015-09-26 11:42:28 [DEBUG] [i.t.m.internal.MDNSServiceImpl:85   ] - Registering new service _openhab-server._tcp.local. at port 8080
    2015-09-26 11:42:28 [DEBUG] [i.t.m.internal.MDNSServiceImpl:85   ] - Registering new service _openhab-server-ssl._tcp.local. at port 8443
    2015-09-26 11:42:28 [DEBUG] [.i.r.sse.internal.SseActivator:46   ] - SSE API - SseFeature registered.
    2015-09-26 11:42:28 [DEBUG] [.i.r.sse.internal.SseActivator:55   ] - SSE API has been started.
    2015-09-26 11:42:28 [DEBUG] [.io.transport.mqtt.MqttService:118  ] - Starting MQTT Service...
    2015-09-26 11:42:28 [DEBUG] [.s.s.mapdb.MapDbStorageService:50   ] - Opened MapDB file at 'D:\Downloads\openhab2\.\userdata\mapdb\storage.mapdb'.
    2015-09-26 11:42:28 [DEBUG] [.c.c.registry.AbstractRegistry:190  ] - Provider 'org.eclipse.smarthome.core.items.ManagedItemProvider' has been added.
    2015-09-26 11:42:28 [DEBUG] [.c.c.registry.AbstractRegistry:190  ] - Provider 'org.eclipse.smarthome.core.thing.ManagedThingProvider' has been added.
    2015-09-26 11:42:28 [DEBUG] [.core.common.ThreadPoolManager:141  ] - Created scheduled thread pool 'discovery' of size 3
    2015-09-26 11:42:28 [DEBUG] [.c.thing.internal.ThingManager:549  ] - Thing handler factory 'MySensorsHandlerFactory' added
    2015-09-26 11:42:28 [DEBUG] [.c.c.registry.AbstractRegistry:190  ] - Provider 'org.eclipse.smarthome.core.thing.link.ManagedItemChannelLinkProvider' has been added.
    2015-09-26 11:42:28 [DEBUG] [.c.c.registry.AbstractRegistry:190  ] - Provider 'org.eclipse.smarthome.core.thing.link.ManagedItemThingLinkProvider' has been added.
    2015-09-26 11:42:28 [DEBUG] [ui.internal.chart.ChartServlet:122  ] - Starting up chart servlet at /chart
    2015-09-26 11:42:28 [DEBUG] [u.i.chart.DefaultChartProvider:97   ] - Starting up default chart provider.
    2015-09-26 11:42:28 [DEBUG] [o.e.s.u.c.i.servlet.CmdServlet:56   ] - Starting up CMD servlet at /classicui/CMD
    2015-09-26 11:42:28 [DEBUG] [s.ui.icon.internal.IconServlet:76   ] - Starting up icon servlet at /icon
    2015-09-26 11:42:28 [INFO ] [ui.internal.servlet.PaperUIApp:31   ] - Started Paper UI at /ui
    2015-09-26 11:42:29 [DEBUG] [e.s.i.t.upnp.UpnpIOServiceImpl:152  ] - Starting UPnP IO service...
    2015-09-26 11:42:29 [INFO ] [.u.d.internal.DashboardService:55   ] - Started dashboard at /start
    2015-09-26 11:42:29 [DEBUG] [.c.c.registry.AbstractRegistry:190  ] - Provider 'org.eclipse.smarthome.model.item.internal.GenericItemProvider' has been added.
    2015-09-26 11:42:29 [INFO ] [rg.quartz.core.QuartzScheduler:2311 ] - JobFactory set to: org.eclipse.smarthome.model.rule.runtime.internal.engine.GuiceAwareJobFactory@1762bd77
    2015-09-26 11:42:29 [DEBUG] [.m.r.r.i.engine.RuleEngineImpl:96   ] - Started rule engine
    2015-09-26 11:42:29 [INFO ] [.s.u.c.i.servlet.WebAppServlet:85   ] - Started Classic UI at /classicui/app
    2015-09-26 11:42:29 [DEBUG] [e.s.m.t.i.GenericThingProvider:696  ] - ThingHandlerFactory added org.openhab.binding.mysensors.internal.MySensorsHandlerFactory@25ceff93
    2015-09-26 11:42:29 [DEBUG] [.c.c.registry.AbstractRegistry:190  ] - Provider 'org.eclipse.smarthome.model.thing.internal.GenericThingProvider' has been added.
    2015-09-26 11:42:29 [DEBUG] [.c.c.registry.AbstractRegistry:190  ] - Provider 'org.eclipse.smarthome.model.thing.internal.GenericItemChannelLinkProvider' has been added.
    2015-09-26 11:42:29 [DEBUG] [ui.internal.proxy.ProxyServlet:94   ] - Starting up proxy servlet at /proxy
    2015-09-26 11:42:29 [INFO ] [.o.core.internal.CoreActivator:41   ] - openHAB runtime has been started (v2.0.0, build 201509240103).
    2015-09-26 11:42:29 [DEBUG] [.o.core.internal.CoreActivator:47   ] - Startup took 6896 ms
    2015-09-26 11:42:36 [DEBUG] [io.rest.core.item.ItemResource:127  ] - Received HTTP GET request at 'items'
    2015-09-26 11:42:49 [DEBUG] [.c.c.r.AbstractManagedProvider:62   ] - Added new element home_group_daef4dc3 to ManagedItemProvider.
    2015-09-26 11:42:49 [DEBUG] [.core.common.ThreadPoolManager:171  ] - Created thread pool 'safeCall' with size 3-10
    2015-09-26 11:42:49 [INFO ] [smarthome.event.ItemAddedEvent:43   ] - Item 'home_group_daef4dc3' has been added.
    2015-09-26 11:43:31 [DEBUG] [.c.thing.internal.ThingManager:363  ] - Thing 'mysensors:bridge-eth:c27764bd' is tracked by ThingManager.
    2015-09-26 11:43:31 [INFO ] [marthome.event.ThingAddedEvent:43   ] - Thing 'mysensors:bridge-eth:c27764bd' has been added.
    2015-09-26 11:43:31 [DEBUG] [.c.thing.internal.ThingManager:487  ] - Calling registerHandler handler for thing 'mysensors:bridge-eth:c27764bd' at 'org.openhab.binding.mysensors.intern
    erFactory@25ceff93'.
    2015-09-26 11:43:31 [INFO ] [ome.event.ThingStatusInfoEvent:43   ] - mysensors:bridge-eth:c27764bd' updated: INITIALIZING
    2015-09-26 11:43:31 [DEBUG] [.core.common.ThreadPoolManager:141  ] - Created scheduled thread pool 'thingHandler' of size 3
    2015-09-26 11:43:31 [DEBUG] [o.b.m.h.MySensorsBridgeHandler:58   ] - Initialization of the MySensors Bridge
    2015-09-26 11:43:31 [DEBUG] [.e.s.config.core.Configuration:89   ] - Setting value (String) 192.168.0.17 to field 'ipAddress' in configuration class org.openhab.binding.mysensors.conf
    eConfiguration
    2015-09-26 11:43:31 [DEBUG] [.e.s.config.core.Configuration:89   ] - Setting value (String) 5003 to field 'tcpPort' in configuration class org.openhab.binding.mysensors.config.MySenso
    tion
    2015-09-26 11:43:31 [DEBUG] [b.m.p.ip.MySensorsIpConnection:40   ] - Connecting to bridge ...
    2015-09-26 11:43:31 [DEBUG] [b.m.p.ip.MySensorsIpConnection:56   ] - Connection to ethernet gateway successful!
    2015-09-26 11:43:31 [INFO ] [ome.event.ThingStatusInfoEvent:43   ] - mysensors:bridge-eth:c27764bd' updated: ONLINE
    2015-09-26 11:43:31 [DEBUG] [.c.thing.internal.ThingManager:84   ] - Thing handler for thing 'mysensors:bridge-eth:c27764bd' added.
    2015-09-26 11:43:31 [DEBUG] [.c.thing.internal.ThingManager:252  ] - Assigning handler for thing 'mysensors:bridge-eth:c27764bd'.
    2015-09-26 11:43:31 [DEBUG] [.c.c.r.AbstractManagedProvider:62   ] - Added new element mysensors:bridge-eth:c27764bd to ManagedThingProvider.
    2015-09-26 11:43:31 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 0;0;3;0;14;Gateway startup complete.
    2015-09-26 11:43:32 [DEBUG] [.c.c.r.AbstractManagedProvider:62   ] - Added new element mysensors_bridge_eth_c27764bd to ManagedItemProvider.
    2015-09-26 11:43:32 [INFO ] [smarthome.event.ItemAddedEvent:43   ] - Item 'mysensors_bridge_eth_c27764bd' has been added.
    2015-09-26 11:43:32 [DEBUG] [.c.t.internal.ThingLinkManager:328  ] - Assigning linked group item 'mysensors_bridge_eth_c27764bd' to thing 'mysensors:bridge-eth:c27764bd'.
    2015-09-26 11:43:32 [DEBUG] [.c.c.r.AbstractManagedProvider:62   ] - Added new element mysensors_bridge_eth_c27764bd -> mysensors:bridge-eth:c27764bd to ManagedItemThingLinkProvider.
    2015-09-26 11:43:32 [DEBUG] [i.DiscoveryServiceRegistryImpl:333  ] - Triggering scan for thing types '[mysensors:humidity, mysensors:temperature, mysensors:light, mysensors:volt, myse
    nsors:baro, mysensors:door, mysensors:motion, mysensors:smoke, mysensors:dimmer, mysensors:cover, mysensors:wind, mysensors:rain, mysensors:uv, mysensors:weight, mysensors:distance, m
    vel]' on 'MySensorsDiscoveryService'...
    2015-09-26 11:44:02 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;37
    2015-09-26 11:44:14 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;38
    2015-09-26 11:44:16 [DEBUG] [.c.thing.internal.ThingManager:363  ] - Thing 'mysensors:humidity:7d1da077' is tracked by ThingManager.
    2015-09-26 11:44:16 [DEBUG] [.c.thing.internal.ThingManager:487  ] - Calling registerHandler handler for thing 'mysensors:humidity:7d1da077' at 'org.openhab.binding.mysensors.internal
    Factory@25ceff93'.
    2015-09-26 11:44:16 [INFO ] [marthome.event.ThingAddedEvent:43   ] - Thing 'mysensors:humidity:7d1da077' has been added.
    2015-09-26 11:44:16 [INFO ] [ome.event.ThingStatusInfoEvent:43   ] - mysensors:humidity:7d1da077' updated: INITIALIZING
    2015-09-26 11:44:16 [INFO ] [ome.event.ThingStatusInfoEvent:43   ] - mysensors:humidity:7d1da077' updated: ONLINE
    2015-09-26 11:44:16 [DEBUG] [.e.s.config.core.Configuration:89   ] - Setting value (String) 1 to field 'nodeId' in configuration class org.openhab.binding.mysensors.config.MySensorsSe
    
    2015-09-26 11:44:16 [DEBUG] [.e.s.config.core.Configuration:89   ] - Setting value (String) 0 to field 'childId' in configuration class org.openhab.binding.mysensors.config.MySensorsS
    n
    2015-09-26 11:44:16 [INFO ] [ome.event.ThingStatusInfoEvent:43   ] - mysensors:humidity:7d1da077' updated: ONLINE
    2015-09-26 11:44:16 [DEBUG] [.c.thing.internal.ThingManager:84   ] - Thing handler for thing 'mysensors:humidity:7d1da077' added.
    2015-09-26 11:44:16 [DEBUG] [.c.thing.internal.ThingManager:252  ] - Assigning handler for thing 'mysensors:humidity:7d1da077'.
    2015-09-26 11:44:16 [DEBUG] [.c.c.r.AbstractManagedProvider:62   ] - Added new element mysensors:humidity:7d1da077 to ManagedThingProvider.
    2015-09-26 11:44:16 [INFO ] [smarthome.event.ItemAddedEvent:43   ] - Item 'mysensors_humidity_7d1da077' has been added.
    2015-09-26 11:44:16 [DEBUG] [.c.c.r.AbstractManagedProvider:62   ] - Added new element mysensors_humidity_7d1da077 to ManagedItemProvider.
    2015-09-26 11:44:16 [DEBUG] [.c.t.internal.ThingLinkManager:328  ] - Assigning linked group item 'mysensors_humidity_7d1da077' to thing 'mysensors:humidity:7d1da077'.
    2015-09-26 11:44:16 [DEBUG] [.c.c.r.AbstractManagedProvider:62   ] - Added new element mysensors_humidity_7d1da077 -> mysensors:humidity:7d1da077 to ManagedItemThingLinkProvider.
    2015-09-26 11:44:17 [DEBUG] [.c.c.r.AbstractManagedProvider:62   ] - Added new element mysensors_humidity_7d1da077_hum to ManagedItemProvider.
    2015-09-26 11:44:17 [INFO ] [smarthome.event.ItemAddedEvent:43   ] - Item 'mysensors_humidity_7d1da077_hum' has been added.
    2015-09-26 11:44:17 [DEBUG] [.c.t.internal.ThingLinkManager:317  ] - Adding linked item 'mysensors_humidity_7d1da077_hum' to channel 'mysensors:humidity:7d1da077:hum'.
    2015-09-26 11:44:17 [DEBUG] [.c.c.r.AbstractManagedProvider:62   ] - Added new element mysensors_humidity_7d1da077_hum -> mysensors:humidity:7d1da077:hum to ManagedItemChannelLinkProv
    2015-09-26 11:44:17 [DEBUG] [i.DiscoveryServiceRegistryImpl:333  ] - Triggering scan for thing types '[mysensors:humidity, mysensors:temperature, mysensors:light, mysensors:volt, myse
    nsors:baro, mysensors:door, mysensors:motion, mysensors:smoke, mysensors:dimmer, mysensors:cover, mysensors:wind, mysensors:rain, mysensors:uv, mysensors:weight, mysensors:distance, m
    vel]' on 'MySensorsDiscoveryService'...
    2015-09-26 11:44:27 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;37
    2015-09-26 11:44:48 [DEBUG] [.c.thing.internal.ThingManager:363  ] - Thing 'mysensors:light-level:9e706943' is tracked by ThingManager.
    2015-09-26 11:44:48 [INFO ] [marthome.event.ThingAddedEvent:43   ] - Thing 'mysensors:light-level:9e706943' has been added.
    2015-09-26 11:44:48 [DEBUG] [.c.thing.internal.ThingManager:487  ] - Calling registerHandler handler for thing 'mysensors:light-level:9e706943' at 'org.openhab.binding.mysensors.inter
    lerFactory@25ceff93'.
    2015-09-26 11:44:48 [DEBUG] [.e.s.config.core.Configuration:89   ] - Setting value (String) 1 to field 'nodeId' in configuration class org.openhab.binding.mysensors.config.MySensorsSe
    
    2015-09-26 11:44:48 [DEBUG] [.e.s.config.core.Configuration:89   ] - Setting value (String) 2 to field 'childId' in configuration class org.openhab.binding.mysensors.config.MySensorsS
    n
    2015-09-26 11:44:48 [INFO ] [ome.event.ThingStatusInfoEvent:43   ] - mysensors:light-level:9e706943' updated: INITIALIZING
    2015-09-26 11:44:48 [INFO ] [ome.event.ThingStatusInfoEvent:43   ] - mysensors:light-level:9e706943' updated: ONLINE
    2015-09-26 11:44:48 [DEBUG] [.c.thing.internal.ThingManager:84   ] - Thing handler for thing 'mysensors:light-level:9e706943' added.
    2015-09-26 11:44:48 [DEBUG] [.c.thing.internal.ThingManager:252  ] - Assigning handler for thing 'mysensors:light-level:9e706943'.
    2015-09-26 11:44:48 [INFO ] [ome.event.ThingStatusInfoEvent:43   ] - mysensors:light-level:9e706943' updated: ONLINE
    2015-09-26 11:44:48 [DEBUG] [.c.c.r.AbstractManagedProvider:62   ] - Added new element mysensors:light-level:9e706943 to ManagedThingProvider.
    2015-09-26 11:44:48 [INFO ] [smarthome.event.ItemAddedEvent:43   ] - Item 'mysensors_light_level_9e706943' has been added.
    2015-09-26 11:44:48 [DEBUG] [.c.c.r.AbstractManagedProvider:62   ] - Added new element mysensors_light_level_9e706943 to ManagedItemProvider.
    2015-09-26 11:44:48 [DEBUG] [.c.t.internal.ThingLinkManager:328  ] - Assigning linked group item 'mysensors_light_level_9e706943' to thing 'mysensors:light-level:9e706943'.
    2015-09-26 11:44:48 [DEBUG] [.c.c.r.AbstractManagedProvider:62   ] - Added new element mysensors_light_level_9e706943 -> mysensors:light-level:9e706943 to ManagedItemThingLinkProvider
    2015-09-26 11:44:48 [INFO ] [smarthome.event.ItemAddedEvent:43   ] - Item 'mysensors_light_level_9e706943_light_level' has been added.
    2015-09-26 11:44:48 [DEBUG] [.c.c.r.AbstractManagedProvider:62   ] - Added new element mysensors_light_level_9e706943_light_level to ManagedItemProvider.
    2015-09-26 11:44:48 [DEBUG] [.c.t.internal.ThingLinkManager:317  ] - Adding linked item 'mysensors_light_level_9e706943_light_level' to channel 'mysensors:light-level:9e706943:light-l
    2015-09-26 11:44:48 [DEBUG] [.c.c.r.AbstractManagedProvider:62   ] - Added new element mysensors_light_level_9e706943_light_level -> mysensors:light-level:9e706943:light-level to Mana
    kProvider.
    2015-09-26 11:44:48 [DEBUG] [i.DiscoveryServiceRegistryImpl:333  ] - Triggering scan for thing types '[mysensors:humidity, mysensors:temperature, mysensors:light, mysensors:volt, myse
    nsors:baro, mysensors:door, mysensors:motion, mysensors:smoke, mysensors:dimmer, mysensors:cover, mysensors:wind, mysensors:rain, mysensors:uv, mysensors:weight, mysensors:distance, m
    vel]' on 'MySensorsDiscoveryService'...
    2015-09-26 11:45:05 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;36
    2015-09-26 11:45:06 [INFO ] [marthome.event.ThingAddedEvent:43   ] - Thing 'mysensors:temperature:4a73d1fa' has been added.
    2015-09-26 11:45:06 [DEBUG] [.c.thing.internal.ThingManager:363  ] - Thing 'mysensors:temperature:4a73d1fa' is tracked by ThingManager.
    2015-09-26 11:45:06 [DEBUG] [.c.thing.internal.ThingManager:487  ] - Calling registerHandler handler for thing 'mysensors:temperature:4a73d1fa' at 'org.openhab.binding.mysensors.inter
    lerFactory@25ceff93'.
    2015-09-26 11:45:06 [INFO ] [ome.event.ThingStatusInfoEvent:43   ] - mysensors:temperature:4a73d1fa' updated: INITIALIZING
    2015-09-26 11:45:06 [DEBUG] [.e.s.config.core.Configuration:89   ] - Setting value (String) 1 to field 'nodeId' in configuration class org.openhab.binding.mysensors.config.MySensorsSe
    
    2015-09-26 11:45:06 [DEBUG] [.e.s.config.core.Configuration:89   ] - Setting value (String) 1 to field 'childId' in configuration class org.openhab.binding.mysensors.config.MySensorsS
    n
    2015-09-26 11:45:06 [INFO ] [ome.event.ThingStatusInfoEvent:43   ] - mysensors:temperature:4a73d1fa' updated: ONLINE
    2015-09-26 11:45:06 [DEBUG] [.c.thing.internal.ThingManager:84   ] - Thing handler for thing 'mysensors:temperature:4a73d1fa' added.
    2015-09-26 11:45:06 [INFO ] [ome.event.ThingStatusInfoEvent:43   ] - mysensors:temperature:4a73d1fa' updated: ONLINE
    2015-09-26 11:45:06 [DEBUG] [.c.thing.internal.ThingManager:252  ] - Assigning handler for thing 'mysensors:temperature:4a73d1fa'.
    2015-09-26 11:45:06 [DEBUG] [.c.c.r.AbstractManagedProvider:62   ] - Added new element mysensors:temperature:4a73d1fa to ManagedThingProvider.
    2015-09-26 11:45:06 [INFO ] [smarthome.event.ItemAddedEvent:43   ] - Item 'mysensors_temperature_4a73d1fa' has been added.
    2015-09-26 11:45:06 [DEBUG] [.c.c.r.AbstractManagedProvider:62   ] - Added new element mysensors_temperature_4a73d1fa to ManagedItemProvider.
    2015-09-26 11:45:06 [DEBUG] [.c.t.internal.ThingLinkManager:328  ] - Assigning linked group item 'mysensors_temperature_4a73d1fa' to thing 'mysensors:temperature:4a73d1fa'.
    2015-09-26 11:45:06 [DEBUG] [.c.c.r.AbstractManagedProvider:62   ] - Added new element mysensors_temperature_4a73d1fa -> mysensors:temperature:4a73d1fa to ManagedItemThingLinkProvider
    2015-09-26 11:45:06 [INFO ] [smarthome.event.ItemAddedEvent:43   ] - Item 'mysensors_temperature_4a73d1fa_temp' has been added.
    2015-09-26 11:45:06 [DEBUG] [.c.c.r.AbstractManagedProvider:62   ] - Added new element mysensors_temperature_4a73d1fa_temp to ManagedItemProvider.
    2015-09-26 11:45:06 [DEBUG] [.c.t.internal.ThingLinkManager:317  ] - Adding linked item 'mysensors_temperature_4a73d1fa_temp' to channel 'mysensors:temperature:4a73d1fa:temp'.
    2015-09-26 11:45:06 [DEBUG] [.c.c.r.AbstractManagedProvider:62   ] - Added new element mysensors_temperature_4a73d1fa_temp -> mysensors:temperature:4a73d1fa:temp to ManagedItemChannel
    2015-09-26 11:45:06 [DEBUG] [i.DiscoveryServiceRegistryImpl:333  ] - Triggering scan for thing types '[mysensors:humidity, mysensors:temperature, mysensors:light, mysensors:volt, myse
    nsors:baro, mysensors:door, mysensors:motion, mysensors:smoke, mysensors:dimmer, mysensors:cover, mysensors:wind, mysensors:rain, mysensors:uv, mysensors:weight, mysensors:distance, m
    vel]' on 'MySensorsDiscoveryService'...
    2015-09-26 11:45:14 [DEBUG] [io.rest.core.item.ItemResource:127  ] - Received HTTP GET request at 'items'
    2015-09-26 11:45:40 [DEBUG] [io.rest.core.item.ItemResource:127  ] - Received HTTP GET request at 'items'
    2015-09-26 11:46:00 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 0;0;3;0;14;Gateway startup complete.
    2015-09-26 11:46:09 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;37
    2015-09-26 11:46:21 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;38
    2015-09-26 11:46:27 [DEBUG] [io.rest.core.item.ItemResource:127  ] - Received HTTP GET request at 'items'
    2015-09-26 11:48:03 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;1;1;0;0;22.2
    2015-09-26 11:48:03 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_temperature_4a73d1fa_temp updated to 22.2
    2015-09-26 11:48:03 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;37
    2015-09-26 11:49:32 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;36
    2015-09-26 11:49:45 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;1;1;0;0;22.1
    2015-09-26 11:49:45 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_temperature_4a73d1fa_temp updated to 22.1
    2015-09-26 11:49:45 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;35
    2015-09-26 11:49:57 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;36
    2015-09-26 11:50:10 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;35
    2015-09-26 11:50:23 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;0;1;0;1;45
    2015-09-26 11:50:23 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_humidity_7d1da077_hum updated to 45
    2015-09-26 11:50:23 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;34
    2015-09-26 11:50:36 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;35
    2015-09-26 11:51:01 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;36
    2015-09-26 11:51:14 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;35
    2015-09-26 11:52:05 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;34
    2015-09-26 11:52:30 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;35
    2015-09-26 11:53:08 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2; 7
    2015-09-26 11:53:21 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;1;1;0;0;22.2
    2015-09-26 11:53:21 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_temperature_4a73d1fa_temp updated to 22.2
    2015-09-26 11:53:21 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;33
    2015-09-26 11:53:33 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2; 6
    2015-09-26 11:53:46 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;33
    2015-09-26 11:53:59 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;34
    2015-09-26 11:56:06 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2; 5
    2015-09-26 11:56:19 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;1;1;0;0;23.8
    2015-09-26 11:56:19 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_temperature_4a73d1fa_temp updated to 23.8
    2015-09-26 11:56:19 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;0;1;0;1;69
    2015-09-26 11:56:19 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_humidity_7d1da077_hum updated to 69
    2015-09-26 11:56:19 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2; 3
    2015-09-26 11:56:31 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;1;1;0;0;22.5
    2015-09-26 11:56:31 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_temperature_4a73d1fa_temp updated to 22.5
    2015-09-26 11:56:31 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;0;1;0;1;81
    2015-09-26 11:56:31 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_humidity_7d1da077_hum updated to 81
    2015-09-26 11:56:31 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;32
    2015-09-26 11:56:44 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;1;1;0;0;22.2
    2015-09-26 11:56:44 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_temperature_4a73d1fa_temp updated to 22.2
    2015-09-26 11:56:44 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;0;1;0;1;77
    2015-09-26 11:56:44 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_humidity_7d1da077_hum updated to 77
    2015-09-26 11:56:44 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2; 8
    2015-09-26 11:56:57 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;1;1;0;0;22.4
    2015-09-26 11:56:57 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_temperature_4a73d1fa_temp updated to 22.4
    2015-09-26 11:56:57 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;0;1;0;1;65
    2015-09-26 11:56:57 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_humidity_7d1da077_hum updated to 65
    2015-09-26 11:56:57 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;34
    2015-09-26 11:57:10 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;0;1;0;1;57
    2015-09-26 11:57:10 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_humidity_7d1da077_hum updated to 57
    2015-09-26 11:57:22 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;0;1;0;1;53
    2015-09-26 11:57:22 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_humidity_7d1da077_hum updated to 53
    2015-09-26 11:57:22 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;35
    2015-09-26 11:57:35 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;0;1;0;1;50
    2015-09-26 11:57:35 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_humidity_7d1da077_hum updated to 50
    2015-09-26 11:57:35 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;19
    2015-09-26 11:57:48 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;0;1;0;1;49
    2015-09-26 11:57:48 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_humidity_7d1da077_hum updated to 49
    2015-09-26 11:57:48 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;30
    2015-09-26 11:58:00 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;1;1;0;0;22.3
    2015-09-26 11:58:00 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_temperature_4a73d1fa_temp updated to 22.3
    2015-09-26 11:58:00 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;0;1;0;1;48
    2015-09-26 11:58:00 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_humidity_7d1da077_hum updated to 48
    2015-09-26 11:58:00 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;26
    2015-09-26 11:58:13 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;0;1;0;1;47
    2015-09-26 11:58:13 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_humidity_7d1da077_hum updated to 47
    2015-09-26 11:58:26 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;29
    2015-09-26 11:58:39 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;0;1;0;1;46
    2015-09-26 11:58:39 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_humidity_7d1da077_hum updated to 46
    2015-09-26 11:58:39 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;27
    2015-09-26 11:58:51 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;1;1;0;0;22.2
    2015-09-26 11:59:09 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;1;1;0;0;22.3
    2015-09-26 11:59:09 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_temperature_4a73d1fa_temp updated to 22.2
    2015-09-26 11:59:09 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_temperature_4a73d1fa_temp updated to 22.3
    2015-09-26 11:59:17 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;32
    

    Thank you

    T Offline
    T Offline
    TimO
    Hero Member
    wrote on last edited by
    #74

    Hello @Daniel-Oliveira!

    1. S_Temp looks good:
    2015-09-26 11:56:57 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;1;1;0;0;22.4
    2015-09-26 11:56:57 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_temperature_4a73d1fa_temp updated to 22.4
    
    1. S_HUM looks good too:
    2015-09-26 11:56:57 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;0;1;0;1;65
    2015-09-26 11:56:57 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_humidity_7d1da077_hum updated to 65
    

    I can't see a reason why it should not update correctly. Could be a bug in the OH2 runtime? Does this bug persist with a current runtime?

    1. S_LIGHT_LEVEL
    1;2;1;0;2;36
    

    With subtype 2 (V_STATUS) the binding is expecting 1 == ON or 2 == OFF.
    For light level the binding is expecting V_PERCENTAGE.

    So a message like this should work:

    1;2;1;0;3;36
    
    1 Reply Last reply
    0
    • S Offline
      S Offline
      SiLeX
      wrote on last edited by
      #75

      Hi @TimO . Great work so far. I'd like to join in and extend your module with a lot more S_ and V_ types. Your Github repo code was updated 3 months ago. Do you want to push your commits so I can fork it?

      Also another question: Do I need something special or is the default OpenHAB 2 IDE as described on the OpenHAB2 page enough to start?

      1 Reply Last reply
      0
      • T Offline
        T Offline
        TimO
        Hero Member
        wrote on last edited by
        #76

        Hi @SiLeX !

        I would really appreciate your help!
        My Repo is up to date, there are no open code changes. I've merged my Repo with the master/upstream, so OH2 too is up to date.

        The instructions here should work just fine, although I didn't set up my environment this way:
        https://github.com/wishmoooop/openhab2/blob/master/docs/sources/development/ide.md

        There is only one step needed to activate the MySensors binding, it is an addition to the step 8 in the instructions:

        1. Click on "Run"
        2. Click on "Run Configurations ..."
        3. Select "OpenHAB_Runtime" on the left
        4. Switch to "Plug-Ins" on the right
        5. Search for "org.openhab.binding.mysensors" and mark it
          (At this step I disable yahooweather and astro so they stop to annoy me with newly discovered locations) ;-)

        If "strange" errors occure while testing code changes, delete the content of the "userdata" directory in "distribution/openhabhome".

        1 Reply Last reply
        1
        • S Offline
          S Offline
          SiLeX
          wrote on last edited by SiLeX
          #77

          @TimO said:

          Search for "org.openhab.binding.mysensors" and mark it

          Unfortunately I cannot find this in the list. I already added your fork as upstream master and pulled it. Anything else to change in there?snapshot1.png

          edit: solved by throwing away the openhab2 dev repo and cloning @TimO 's repo richt after installing the OpenHAB IDE. Alternatively you can create a new workspace and import/clone @TimO 's repo from there.

          Run a product stays empty, interesting files are in addons/binding/org.openhab.binding.mysensors/ESH-INF/thing/

          1 Reply Last reply
          0
          • T Offline
            T Offline
            TimO
            Hero Member
            wrote on last edited by
            #78

            @powermta : What is your problem? :)

            1 Reply Last reply
            1
            • T TimO

              @BenCranston I finally found some time to further investigate this issue. Your guess according to the serial port issue was right. I've managed to "fix" the zwave binding using the code found while following the thread you mentioned.

              I've created a modified version of the zwave binding:
              org.openhab.binding.zwave-1.8.0-SNAPSHOT.jar
              org.openhab.binding.mysensors-2.0.0-SNAPSHOT.jar
              (I've not changed the mysensors binding, just added it for reference)

              Could you please test it? The binding is throwing messages and trying to contact the zwave gateway/stick:

              2015-10-13 08:32:44 [DEBUG] [o.b.z.i.protocol.SerialMessage:109  ] - NODE 255: Creating empty message of class = GetVersion (0x15), type = Request (0x00)
              2015-10-13 08:32:44 [DEBUG] [b.z.i.protocol.ZWaveController:637  ] - Enqueueing message. Queue length = 1
              2015-10-13 08:32:44 [DEBUG] [WaveController$ZWaveSendThread:1228 ] - Took message from queue for sending. Queue length = 0
              2015-10-13 08:32:44 [DEBUG] [o.b.z.i.protocol.SerialMessage:233  ] - Assembled message buffer = 01 03 00 15 E9 
              2015-10-13 08:32:44 [DEBUG] [o.b.z.i.protocol.SerialMessage:109  ] - NODE 255: Creating empty message of class = MemoryGetId (0x20), type = Request (0x00)
              2015-10-13 08:32:44 [DEBUG] [b.z.i.protocol.ZWaveController:637  ] - Enqueueing message. Queue length = 1
              2015-10-13 08:32:44 [DEBUG] [WaveController$ZWaveSendThread:1285 ] - NODE 255: Sending REQUEST Message = 01 03 00 15 E9 
              2015-10-13 08:32:44 [DEBUG] [o.b.z.i.protocol.SerialMessage:109  ] - NODE 255: Creating empty message of class = SerialApiGetCapabilities (0x07), type = Request (0x00)
              2015-10-13 08:32:44 [DEBUG] [b.z.i.protocol.ZWaveController:637  ] - Enqueueing message. Queue length = 2
              2015-10-13 08:32:44 [DEBUG] [o.b.z.i.protocol.SerialMessage:109  ] - NODE 255: Creating empty message of class = SerialApiSetTimeouts (0x06), type = Request (0x00)
              2015-10-13 08:32:44 [DEBUG] [b.z.i.protocol.ZWaveController:637  ] - Enqueueing message. Queue length = 3
              2015-10-13 08:32:44 [DEBUG] [i.p.s.GetSucNodeIdMessageClass:30   ] - Get SUC NodeID
              2015-10-13 08:32:44 [DEBUG] [o.b.z.i.protocol.SerialMessage:109  ] - NODE 255: Creating empty message of class = GetSucNodeId (0x56), type = Request (0x00)
              2015-10-13 08:32:44 [DEBUG] [b.z.i.protocol.ZWaveController:637  ] - Enqueueing message. Queue length = 4
              2015-10-13 08:32:46 [DEBUG] [z.internal.ZWaveNetworkMonitor:315  ] - Network Monitor: Queue length is 4 - deferring network monitor functions.
              2015-10-13 08:32:49 [ERROR] [WaveController$ZWaveSendThread:1326 ] - NODE 255: Timeout while sending message. Requeueing - 2 attempts left!
              2015-10-13 08:32:49 [DEBUG] [b.z.i.protocol.ZWaveController:637  ] - Enqueueing message. Queue length = 5
              2015-10-13 08:32:49 [DEBUG] [WaveController$ZWaveSendThread:1228 ] - Took message from queue for sending. Queue length = 4
              2015-10-13 08:32:49 [DEBUG] [o.b.z.i.protocol.SerialMessage:233  ] - Assembled message buffer = 01 03 00 15 E9 
              2015-10-13 08:32:49 [DEBUG] [WaveController$ZWaveSendThread:1285 ] - NODE 255: Sending REQUEST Message = 01 03 00 15 E9
              
              B Offline
              B Offline
              BenCranston
              wrote on last edited by
              #79

              @TimO Sorry it took so long to test this. I've been flat on my back due to illness. Regardless, I tested it a bunch this morning and the changes to the zwave binding totally broke zwave functionality. The USB stick initializes but then the port gets "lost" and any attempts to interact with it fail. The change does allow for the MySensors binding to run. I removed the MySensors binding and just left your modified zwave binding in the addons folder to try to isolate the issue. It would appear that the modified zwave binding is broken. I'm going to pull the latest build from cloudbees and try your latest build of the MySensors binding and see what happens.

              1 Reply Last reply
              0
              • K Offline
                K Offline
                kolaf
                Hero Member
                wrote on last edited by
                #80

                For what it's worth, I'm using openhab 2 with a version from yesterday together with the latest my sensor binding I found here. Serial gateway and serial aeon stick zwave controller (latest binding from the build server). Absolutely no issues for me.

                B 1 Reply Last reply
                0
                • K kolaf

                  For what it's worth, I'm using openhab 2 with a version from yesterday together with the latest my sensor binding I found here. Serial gateway and serial aeon stick zwave controller (latest binding from the build server). Absolutely no issues for me.

                  B Offline
                  B Offline
                  BenCranston
                  wrote on last edited by
                  #81

                  @kolaf I concur. I just refreshed everything to latest snapshots and holy smokes it all works. :) I'm watching my zwave rules and MySensors controls all working together. At this point, I'm not sure what was broken with my install, but both bindings are now playing with each other very well without issue.

                  1 Reply Last reply
                  0
                  • B Offline
                    B Offline
                    BenCranston
                    wrote on last edited by
                    #82

                    I can report continued success with the MySensors binding playing nice with the Z-Wave binding. :) Today I'm working out some more rules and have a situation, where when a switch state is changed we send out command to another MySensor to change two childIDs on the same nodeID and another childID on a different nodeID. Two of the messages get out to gateway with the third not going out. Here's the debug:

                    2015-11-11 09:49:00 [DEBUG] [.b.m.p.s.MySensorsSerialWriter:40   ] - Sending to MySensors: 10;1;1;0;2;1
                    2015-11-11 09:49:00 [DEBUG] [.b.m.p.s.MySensorsSerialWriter:40   ] - Sending to MySensors: 9;2;1;0;2;1
                    2015-11-11 09:49:00 [DEBUG] [.b.m.p.s.MySensorsSerialWriter:40   ] - Sending to MySensors: 9;4;1;0;2;1
                    2015-11-11 09:49:00 [DEBUG] [.p.s.MySensorsSerialConnection:83   ] - 0;0;3;0;9;send: 0-0-10-10 s=1,c=1,t=2,pt=0,l=1,sg=0,st=ok:1
                    2015-11-11 09:49:00 [DEBUG] [.p.s.MySensorsSerialConnection:83   ] - 0;0;3;0;9;read: 10-10-0 s=1,c=1,t=2,pt=2,l=2,sg=0:1
                    2015-11-11 09:49:00 [DEBUG] [.p.s.MySensorsSerialConnection:83   ] - 0;0;3;0;9;send: 0-0-10-10 s=1,c=1,t=2,pt=2,l=2,sg=0,st=ok:1
                    2015-11-11 09:49:00 [DEBUG] [.p.s.MySensorsSerialConnection:83   ] - 10;1;1;0;2;1
                    2015-11-11 09:49:00 [DEBUG] [.p.s.MySensorsSerialConnection:83   ] - 0;0;3;0;9;send: 0-0-9-9 s=2,c=1,t=2,pt=0,l=1,sg=0,st=ok:1
                    2015-11-11 09:49:00 [DEBUG] [.p.s.MySensorsSerialConnection:83   ] - 0;0;3;0;9;read: 9-9-0 s=2,c=1,t=2,pt=2,l=2,sg=0:1
                    2015-11-11 09:49:00 [DEBUG] [.p.s.MySensorsSerialConnection:83   ] - 0;0;3;0;9;send: 0-0-9-9 s=2,c=1,t=2,pt=2,l=2,sg=0,st=ok:1
                    2015-11-11 09:49:00 [DEBUG] [.p.s.MySensorsSerialConnection:83   ] - 9;2;1;0;2;1
                    

                    It appears that all three messages are queued, but only the first two are actually sent. I switched the order around in the rule to send the messages in a different order and only the first two make it out to the nodes. Do I need to delay some after each command? Anyone else able to reproduce this? Thanks.

                    the driving rule looks like this:

                    rule "g01_Stair"
                    when
                            Item home_group_5a59cc99 changed
                    then
                      if (mysensors_light_508ef404_Light_10_1_status.state == ON) {
                        // sendCommand(mysensors_light_508ef404_Light_9_2_status, ON)
                        sendCommand(mysensors_light_508ef404_Light_9_4_status, ON)
                      }
                      else if (mysensors_light_508ef404_Light_10_1_status.state == OFF) {
                        // sendCommand(mysensors_light_508ef404_Light_9_2_status, OFF)
                        sendCommand(mysensors_light_508ef404_Light_9_4_status, OFF)
                      }
                    end
                    
                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      mirko.ugolini
                      wrote on last edited by mirko.ugolini
                      #83

                      Hello Timo,
                      Great Work !!:smiley:

                      Could You suggest a good Tutorial for understanding how to develope Bindings for HopenHab2?
                      Anyway I will study your code too

                      Regards

                      Mirko Ugolini

                      1 Reply Last reply
                      0
                      • Dave DanD Offline
                        Dave DanD Offline
                        Dave Dan
                        wrote on last edited by Dave Dan
                        #84

                        I've been testing this on my side and I have to say that is excellent.

                        Very well integrated with the 'Things' discovery model for OH2, etc.

                        The only thing that is really stopping me to move forward is OH itself. I have several (and somehow disapointing) experiences that makes me feel that is still very beta. Not sure if anyone have any update on when the RTM is expected???

                        Great work @TimO ! ! !

                        1 Reply Last reply
                        0
                        • T Offline
                          T Offline
                          TimO
                          Hero Member
                          wrote on last edited by
                          #85

                          @mirko-ugolini The documentation on how to develop bindings for OH2 is rather thin. :(
                          Starting point is here: https://github.com/openhab/openhab2/blob/master/docs/sources/development/ide.md

                          From that point I've looked into the existing bindings and into the eclipse smarthome documentation, that does not work all the time, but the concepts match.

                          If you would like to contribute to the MySensors binding I will gladly help you to find the entrance. :)

                          @BenCranston I will have a look at it. Thanks for testing! The queue currently is rather basic (but should work). Maybe the data is written too fast to the serial output. I have a similar problem with OH 1.X and my rules, where I need to define a delay between commands.

                          Something I plan to do, is adding the ACK functionality to the binding, so if no ACK is received the command is repeated for 5 times or so.

                          S 1 Reply Last reply
                          1
                          • T Offline
                            T Offline
                            TimO
                            Hero Member
                            wrote on last edited by
                            #86

                            @Dave-Dan said:

                            The only thing that is really stopping me to move forward is OH itself. I have several (and somehow disapointing) experiences that makes me feel that is still very beta. Not sure if anyone have any update on when the RTM is expected???

                            Yeah, I see your point. As far as I know there currently is no real roadmap for OH2, which is rather annoying. On the other side there is a really healthy discussion running on how to maintain the code. There are so many developers with bindings, bugfixes and pull requests that want to contribute, that the OH organisation has to change its structure.

                            At the moment the number of open pull requests for OH and OH2 is huge, so I hesitate to give the MySensors binding a shot.

                            1 Reply Last reply
                            0
                            • T TimO

                              @mirko-ugolini The documentation on how to develop bindings for OH2 is rather thin. :(
                              Starting point is here: https://github.com/openhab/openhab2/blob/master/docs/sources/development/ide.md

                              From that point I've looked into the existing bindings and into the eclipse smarthome documentation, that does not work all the time, but the concepts match.

                              If you would like to contribute to the MySensors binding I will gladly help you to find the entrance. :)

                              @BenCranston I will have a look at it. Thanks for testing! The queue currently is rather basic (but should work). Maybe the data is written too fast to the serial output. I have a similar problem with OH 1.X and my rules, where I need to define a delay between commands.

                              Something I plan to do, is adding the ACK functionality to the binding, so if no ACK is received the command is repeated for 5 times or so.

                              S Offline
                              S Offline
                              SiLeX
                              wrote on last edited by
                              #87

                              @TimO said:

                              Something I plan to do, is adding the ACK functionality to the binding, so if no ACK is received the command is repeated for 5 times or so.

                              +1 for the ack functionality. In my opinion this is a Transport-Layer functionality and should be built into the gateway (Arduino or whatever) itself. But the main developer doesn't like the idea because he is fearful that the serial buffer (or even an arduino queue system) will be unable queue enough messages while resends happen.

                              On the other hand: we have plenty of RAM on our openhab hosts, so your idea seems like it will solve the problem completely, because we could even react on continous fails with putting the device offline (or whatever the openhab2 terms are for this) :grin:

                              1 Reply Last reply
                              0
                              • T Offline
                                T Offline
                                TimO
                                Hero Member
                                wrote on last edited by
                                #88

                                @BenCranston : I'm pretty sure now, OH2 is sending the data too fast, because if I use terminal emulation instead of hardware all three commands are transmitted.

                                Just curious: are you using an ethernet or serial gateway?

                                1 Reply Last reply
                                0
                                • T Offline
                                  T Offline
                                  TimO
                                  Hero Member
                                  wrote on last edited by
                                  #89

                                  I've added an option to influence the delay between messages send to gateway.

                                  Possible values are 1 to 1000 milliseconds.

                                  upload-0d7698f4-f0b0-4440-811b-0694740f9f9d

                                  1 Reply Last reply
                                  0
                                  • K Offline
                                    K Offline
                                    kolaf
                                    Hero Member
                                    wrote on last edited by kolaf
                                    #90

                                    @TimO Would it be too much trouble for you to implement support for S_MULTIMETER? It seems that this is required for me to get the voltage reading from my battery driven sensors. Alternatively, is there anything you can do with the battery percentage that is sent using sendBatteryPercent? I don't know if OH2 has any notion of the sensors battery level?

                                    I notice you have support for the type S_VOLTAGE, but I cannot find that this is present in the master branch of MySensors?

                                    1 Reply Last reply
                                    0
                                    • K Offline
                                      K Offline
                                      kolaf
                                      Hero Member
                                      wrote on last edited by
                                      #91

                                      Also, from where can we download the latest versions of your binding?

                                      1 Reply Last reply
                                      0
                                      • K Offline
                                        K Offline
                                        kolaf
                                        Hero Member
                                        wrote on last edited by
                                        #92

                                        And finally, GREAT WORK :-)

                                        1 Reply Last reply
                                        0
                                        • T Offline
                                          T Offline
                                          TimO
                                          Hero Member
                                          wrote on last edited by
                                          #93

                                          @kolaf Thank you! :)

                                          I update the download in the first post here, whenever I upload a new version.

                                          Newest update 1 minute ago: Implementation of S_MULTIMETER!

                                          upload-fa96d617-5c91-4a7a-abc2-21c1a4457444

                                          Please let me know if this works for you.

                                          I'm planning to add a battery channel for every sensor. So if a sensor is added via UI, you are able to select/deselect a channel you don't need it. In *.items you are free to define the channel too.

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          16

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.0k

                                          Posts


                                          Copyright 2019 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • MySensors
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular