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
jogantJ

jogant

@jogant
About
Posts
36
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • IEC 62056-21 Energy meter
    jogantJ jogant

    @bns unfortunately not really. What I learned from reading alot on different internet pages is that there are many proprietary implementations of the standard IEC 62056-21 protocol.
    The Landis & Gyr UH550 expects 40 NUL chars before the initial sequence "/?!<CR><LF>". This seems to be a kind of wake up of the IR interface and has to be sent with 7 bit and 300 baud. After that the meter answers with its model number and than switches to 2400 baud with 7 bits and parity and then sends the rest of its current values. But unfortunately not common used OBIS datagrams but only the correct form with own OBIS number format.
    Hope this is of any help.

    Development

  • IEC 62056-21 Energy meter
    jogantJ jogant

    @diogoc do you have a working sketch? I worked on the same topic for a landys & gyr uh50 heat counter. It's not a real 62056-21 protocol, initialization is different.
    Best regards

    Development

  • Getting MySensors MQTT Gateway working on OpenHAB 2.2 (Stable)
    jogantJ jogant

    @masmat I just wanted to understand your configuration. So I read through whole thread and saw your problems began with upgrade to OH2.3.
    I mentioned eventbus as you wrote something about eventbus.cfg.
    You need eventbus only if you want to send all oh events to mqtt broker.
    I wanted to see your mqtt bridge configuration. You can either configure dynamicly via paper ui or you set it up via things file. The later is what I did. So here is my things file with bridge configuration.

    
    Bridge mysensors:bridge-mqtt:gateway [  brokerName="mosquittomys",
                                            topicPublish="mysensors1/in",
                                            topicSubscribe="mysensors1/out",
                                            startupCheckEnabled=true ] {
    
    }
    

    Here the brokername has to be the same as in mqttbroker.cfg. Fix topic names to match your mysensors gateway.
    Hope this is of any help.

    OpenHAB

  • Getting MySensors MQTT Gateway working on OpenHAB 2.2 (Stable)
    jogantJ jogant

    @masmat two things come to my mind: I have two different broker-names for eventbus connection and mysensors connection. For eventbus binding you need classic mqtt1 binding with its own configuration like this:

    mosquitto.url=tcp://127.0.0.1:1883
    mosquitto.retain=false
    mosquitto.clientId=openhab
    mosquitto.user=user
    mosquitto.pwd=pwd
    

    And second: can you show your mysensors bridge configuration? Not shure but debug log looks like an ethernet bridge and not a mqtt bridge.

    OpenHAB

  • Getting MySensors MQTT Gateway working on OpenHAB 2.2 (Stable)
    jogantJ jogant

    @timo I found the fault in my configuration: it was the missing secure=false config flag in the org.eclipse.smarthome.mqttbroker.cfg config file. I have no idea what happens when the flag is missing but without it one doesn't achieve a valid connection.

    name=mosquittomys
    host=192.168.96.8
    port=1883
    secure=false  <-- important !
    
    

    So now I have a working 2.3 installation! Thanks alot for your support.

    OpenHAB

  • Getting MySensors MQTT Gateway working on OpenHAB 2.2 (Stable)
    jogantJ jogant

    @timo with 2.2 I had two configurations which were very similar.
    I have one mosquitto mqtt broker on localhost, version 1.5.
    The mqtt1 binding is for my mqtt-eventbus connection is called mosquitto and the config file (mqtt.cfg) is as follows:

    mosquitto.url=tcp://192.168.96.8:1883
    mosquitto.retain=false
    mosquitto.clientId=openhab
    mosquitto.user=user
    mosquitto.pwd=pwd
    

    With OH2.2 this configuration works. It also works with 2.3 as I can see all openhab events on my mosquitto.
    My mysonsors binding is configured by org.eclipse.smarthome.mqttbroker.cfg config file which looks as follows:

    name=mosquittomys
    host=192.168.96.8
    port=1883
    retain=false
    username=username
    password=password
    clientId=openhabMys
    

    I also tried without authentication and also without clientId, all to no succuess.
    I cleaned /var/lib/openhab2/cache/ folder and /var/lib/openhab2/tmp/ folder.
    I looked at /var/lib/openhab2/config folder for resulting runtime configuration, but all looks fine. Do you have any further idea?

    OpenHAB

  • Getting MySensors MQTT Gateway working on OpenHAB 2.2 (Stable)
    jogantJ jogant

    @timo unfortunately this also does not work for me. I followed your manual very well but I always get errors. It starts after installing feature:install esh-io-transport-mqtt and mysensors binding:

    16:59:57.772 [ERROR] [protocol.mqtt.MySensorsMqttConnection] - MQTT connection offline - Reason unknown
    16:59:57.806 [INFO ] [o.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to '192.168.96.8' with clientid paho1135997459230242 and file store '/var/lib/openhab2/mqtt/192.168.96.8'
    16:59:57.867 [ERROR] [protocol.mqtt.MySensorsMqttConnection] - MQTT connection offline - {}
    org.eclipse.paho.client.mqttv3.MqttException: MqttException
            at org.eclipse.paho.client.mqttv3.internal.ExceptionHelper.createMqttException(ExceptionHelper.java:38) [229:org.eclipse.paho.client.mqttv3:1.0.2]
            at org.eclipse.paho.client.mqttv3.internal.ClientComms$ConnectBG.run(ClientComms.java:604) [229:org.eclipse.paho.client.mqttv3:1.0.2]
            at java.lang.Thread.run(Thread.java:748) [?:?]
    Caused by: java.net.SocketException: Connection reset
            at java.net.SocketInputStream.read(SocketInputStream.java:210) ~[?:?]
            at java.net.SocketInputStream.read(SocketInputStream.java:141) ~[?:?]
            at sun.security.ssl.InputRecord.readFully(InputRecord.java:465) ~[?:?]
            at sun.security.ssl.InputRecord.read(InputRecord.java:503) ~[?:?]
            at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:983) ~[?:?]
            at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1385) ~[?:?]
            at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413) ~[?:?]
            at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1397) ~[?:?]
            at org.eclipse.paho.client.mqttv3.internal.SSLNetworkModule.start(SSLNetworkModule.java:89) ~[?:?]
            at org.eclipse.paho.client.mqttv3.internal.ClientComms$ConnectBG.run(ClientComms.java:590) ~[?:?]
            ... 1 more
    
    

    and reconection starts every 10 seconds.
    It must be interference with mqtt1 bindung that I use for eventbus.
    The mqtt-bridge remains Offline.
    What is wrong?

    OpenHAB

  • Getting MySensors MQTT Gateway working on OpenHAB 2.2 (Stable)
    jogantJ jogant

    @TimO : are there any news concerning compatibility to version 2.3?
    Thanks for your work!

    OpenHAB

  • openHAB 2.3 (stable) MQTT binding troubleshooting
    jogantJ jogant

    @madelle-kamois this issue is already discussed in this thread. In 2.3 mqtt Implementation has basically changed. Develloper @TimO is working on it.

    OpenHAB

  • Getting MySensors MQTT Gateway working on OpenHAB 2.2 (Stable)
    jogantJ jogant

    @crankycoder in 2.2 with appropriate binding mysensors is working pretty well. All variables are presented with mysensors lib 2.2.
    I only updated openhab to 2.3 as this release was presented on my debian system. But I didn't get 2.3 working with mysensors mqtt.

    OpenHAB

  • Getting MySensors MQTT Gateway working on OpenHAB 2.2 (Stable)
    jogantJ jogant

    @crankycoder Unfortunately there are still issues with the mqtt implementation. I reverted back to 2.2 yesterday as all my fiddling didn't help.

    OpenHAB

  • Getting MySensors MQTT Gateway working on OpenHAB 2.2 (Stable)
    jogantJ jogant

    @timo unfortunately this solution doesn't work for me.
    After update oh to version 2.3 I don't get mqtt to work. Prior I used mqtt for mysensors and for eventbus. I configured two broker connections and set up a mysensors-mqtt-bridge via things-file. In the broker all events from openhab arrived and all mysensors-messages arrived in openhab.
    After update mysensors doesn't work at all, allthough I followed your instructions. If I setup mqtt1 binding I can see eventbus messages in mqtt broker but my mysensors-mqtt-gateway remains initializing.

    What I'm doing wrong?

    OpenHAB

  • openHAB 2.2 binding MQTT support
    jogantJ jogant

    @timo I enabled debugging and could see that all mqtt messages are received correct. I had a problem with caching through jsondb. I deleted some things and links and now everything is fine. So nothing wrong in the binding. Thanks for your helpful hint.

    OpenHAB

  • openHAB 2.2 binding MQTT support
    jogantJ jogant

    hi,
    first I would say thanks for the binding. Generally I got it working, but I build a special sensor for my district heating counter. It has two sensors in one node, power and watermeter. The power sensor also sends messages for value types VAR1-5. Unfortunately these value seem to have a problem. I see them in the mosquitto broker but in openhab I can't see them. In the logging there are some warnings concerning these values.
    Is it a known problem?

    thanks and best regards
    Joachim

    OpenHAB

  • openHAB 2.0 binding
    jogantJ jogant

    I had the same error messages on first boot of OH. After finishing upgrade procedure and restarting OH once again error message is gone. New version of the binding is working well. No hickups at the moment.

    OpenHAB

  • !TSM:RADIO:FAIL - Newby with Mini NRF24L01 + Mini Pro
    jogantJ jogant

    Another thing is that sensor and gateway need a minimum distance. I had gateway and sensor on my desktop for testing and had problems. So I put away the gateway 2 meters and problems are gone. Just a try.

    Troubleshooting

  • MySensors Ethernet Gateway goes to OFFLINE state
    jogantJ jogant

    @TimO

    now I tried the new combination of a recent OH2 snapshot as of 2016-12-21 with the recent mysensors binding. I had to restart the gateway and every single node but then everything works well. The nodes were found in the inbox and could be acknowledged as new things. Values are transmitted regularly and my relay node follows the switch items as desired. So no glitch at the moment.
    Well done @TimO.

    OpenHAB

  • MySensors Ethernet Gateway goes to OFFLINE state
    jogantJ jogant

    @TimO
    yesterday I tried the new binding with OH2 b4 and I have exactly the faulty behavior as described before. The gateway goes in online state but none of the mysensor node items goes online. They remain uninitialized. I restored the older binding and everything works well again. As it is the same behavior that @pentti12 describes I think it has to with the binding itself.

    @pentti12 : please try attached binding as that works for me. 0_1482134888619_org.openhab.binding.mysensors-2.0.0-SNAPSHOT.jar
    it is an older snapshot from November, 7th.
    Good luck

    OpenHAB

  • MySensors Ethernet Gateway goes to OFFLINE state
    jogantJ jogant

    @carlyler
    The issue with the oh2 binding is known. You have to restart oh2 or just the binding through oh console and binding:restart
    Maybe an update of the binding may help but I didn't try yet.

    OpenHAB

  • openHAB 2.0 binding
    jogantJ jogant

    @tademet
    as stated in the configuration wiki https://github.com/tobof/openhab2-addons/wiki/Configuration you have to define the bridge in your thing-configuration, depending on the type of your gateway serial or ethernet.

    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