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
A

Andreas Kräuchi

@Andreas Kräuchi
About
Posts
4
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • OH3 - MySensors Binding
    A Andreas Kräuchi

    hmm maybe I go back to the binding as well. Just spent several hours migrating all to the mqtt binding. It's working now but much slower.... So when I press a button the mqtt is slower to react as with the mysensor binding is. Why so?

    OpenHAB

  • 💬 Sensebender Gateway
    A Andreas Kräuchi

    Ok solved it by adding:

    #undef PRId8
    #undef PRIi8
    #undef PRIo8
    #undef PRIu8
    #undef PRIx8
    #undef PRIX8
    #undef PRIdLEAST8
    #undef PRIiLEAST8
    #undef PRIoLEAST8
    #undef PRIuLEAST8
    #undef PRIxLEAST8
    #undef PRIXLEAST8
    #undef PRIdFAST8
    #undef PRIiFAST8
    #undef PRIoFAST8
    #undef PRIuFAST8
    #undef PRIxFAST8
    #undef PRIXFAST8
    #define PRId8    "d"
    #define PRIi8   "i"
    #define PRIo8   "o"
    #define PRIu8   "u"
    #define PRIx8   "x"
    #define PRIX8   "X"
    #define PRIdLEAST8  "d"
    #define PRIiLEAST8  "i"
    #define PRIoLEAST8  "o"
    #define PRIuLEAST8  "u"
    #define PRIxLEAST8  "x"
    #define PRIXLEAST8  "X"
    #define PRIdFAST8 "d"
    #define PRIiFAST8 "i"
    #define PRIoFAST8 "o"
    #define PRIuFAST8 "u"
    #define PRIxFAST8 "x"
    #define PRIXFAST8 "X"
    
    OpenHardware.io mysensors gateway samd

  • 💬 Sensebender Gateway
    A Andreas Kräuchi

    I just got my Sensebender Gateway and loaded the Sensebender Gateway Serial sketch. When I use the MYSController I get those wired infos...
    Currently there is no other Snesor runing just the Sensebender Gateway with an RF24. Why does it see a new child and what are all thos "hu;hu;hu" errors?

    0_1576828002699_6e42e2a3-f57c-472c-9b59-c30670be617a-image.png

    OpenHardware.io mysensors gateway samd

  • OpenHAB 2.4 Serial Gateway problem
    A Andreas Kräuchi

    I have a hard time getting the Serial GW working with OpenHAB in a docker container.
    I have a discussion running over at OpenHAB but they can't help me further maybe someone here has some experince in installing a serial GW. Here is the URL of the discussion and here is the main problem:
    https://community.openhab.org/t/dev-ttyusb0-no-such-port-again/85021/20

    I use the binding MySensors. The instillation went well and I could add the Port Settings in the PaperUI.

    However I get this error:

    06:13:46.071 [DEBUG] [ocol.serial.MySensorsSerialConnection] - Connecting to /dev/ttyUSB0 [baudRate:115200]
    06:13:46.072 [ERROR] [ocol.serial.MySensorsSerialConnection] - No such port: /dev/ttyUSB0
    

    gnu.io.NoSuchPortException: null
    at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:273) ~[260:com.neuronrobotics.nrjavaserial:3.15.0.OH2]
    at org.openhab.binding.mysensors.internal.protocol.serial.MySensorsSerialConnection.establishConnection(MySensorsSerialConnection.java:51) [275:org.openhab.binding.mysensors:2.4.0.201812040738]
    at org.openhab.binding.mysensors.internal.protocol.MySensorsAbstractConnection.connect(MySensorsAbstractConnection.java:148) [275:org.openhab.binding.mysensors:2.4.0.201812040738]
    at org.openhab.binding.mysensors.internal.protocol.MySensorsAbstractConnection.run(MySensorsAbstractConnection.java:127) [275:org.openhab.binding.mysensors:2.4.0.201812040738]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [?:?]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [?:?]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [?:?]
    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) [?:?]

    OpenHab is running in a docker container with those additional arguments:

    EXTRA_JAVA_OPTS = -Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB0

    devices:

    /dev/USB0:/dev/USB0

    So /dev/ttyUSB0 is for sure the right port.
    I can read the data with

    cat /dev/ttyUSB0

    On the linux server and when I go to the docker with:

    docker exec -it openhab /bin/bash

    I can also read the serial port by using the same command:

    cat /dev/ttyUSB0

    I also added:

    adduser openhab dialout
    adduser openhab tty

    but somehow each time I restart the docker I need to add the

    adduser openhab tty

    command again....

    when I enter this command:

    docker logs openhab

    I get a long list with this error:

    java.lang.NoClassDefFoundError: Could not initialize class gnu.io.RXTXCommDriver thrown while loading gnu.io.RXTXCommDriver

    And here is the log when OpenHAB is booting up:

    06:37:25.990 [DEBUG] [org.openhab.binding.mysensors        ] - BundleEvent STOPPED - org.openhab.binding.mysensors
    06:37:25.992 [DEBUG] [org.openhab.binding.mysensors        ] - BundleEvent STARTING - org.openhab.binding.mysensors
    06:37:25.993 [DEBUG] [org.openhab.binding.mysensors        ] - BundleEvent STARTED - org.openhab.binding.mysensors
    06:37:25.999 [DEBUG] [org.openhab.binding.mysensors        ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.core.thing.binding.ThingHandlerFactory}={service.id=507, service.bundleid=275, service.scope=bundle, component.name=org.openhab.binding.mysensors.factory.MySensorsHandlerFactory, component.id=339} - org.openhab.binding.mysensors
    06:37:26.054 [DEBUG] [ensors.handler.MySensorsBridgeHandler] - Initialization of the MySensors bridge
    06:37:26.054 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'mysensors:bridge-ser:616dc2bb' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to INITIALIZING
    06:37:26.055 [DEBUG] [sensors.factory.MySensorsCacheFactory] - Cache file: given_ids.cached exist.
    06:37:26.056 [DEBUG] [sensors.factory.MySensorsCacheFactory] - Cache (given_ids) content: []
    06:37:26.057 [DEBUG] [ocol.serial.MySensorsSerialConnection] - Enabling connection watchdog
    06:37:26.066 [DEBUG] [ocol.serial.MySensorsSerialConnection] - Connecting to /dev/ttyUSB0 [baudRate:115200]
    06:37:26.066 [DEBUG] [org.openhab.binding.mysensors        ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.config.discovery.DiscoveryService}={service.id=508, service.bundleid=275, service.scope=singleton} - org.openhab.binding.mysensors
    06:37:26.066 [ERROR] [ocol.serial.MySensorsSerialConnection] - No such port: /dev/ttyUSB0
    

    What else can I do what might be the problem?

    OpenHAB
  • Login

  • Don't have an account? Register

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