problem with sending sketch names to controllers



  • Hi all, just starting to setup a MyMQTT and openhab setup, and noticed that some all of the mysensors examples show how you should be able to fetch a sensors sketch name by listening for something like MyMQTT/20/255/V_SKETCH_NAME

    Now I can see messages such as the following on the serial console which proves that the message is getting from the sensor to the gateway, the gateway doesnt "forward" the message to the openhab connected via ethernet).
    0;0;3;0;9;read: 21-21-0 s=255,c=3,t=11,pt=0,l=13:Battery Meter

    I can construct a custom message like MyMQTT/21/255/V_VAR1 with a message in it and it works and sends to openhab, just not the internal one.

    whats the go here?

    I can see from examples that I by rights should be able to configure an openhab item as per below, but i can definitely be sure that the gateway isnt forwarding those messages through.

    String sketch20 "Sketch name 20 [%s]" (sketch,all) {mqtt="<[mysensor:MyMQTT/20/255/V_SKETCH_NAME:state:default]"}

    any help would be appreciated.

    ps here is an example dump from the gateway, I am trying to expose the text "battery meter" to openhab, and "test message" is making it fine with a custom message.
    0;0;3;0;9;read: 21-21-0 s=255,c=0,t=17,pt=0,l=3:1.4
    0;0;3;0;9;read: 21-21-0 s=255,c=3,t=6,pt=1,l=1:0
    0;0;3;0;9;send: 0-0-21-21 s=255,c=3,t=6,pt=0,l=1,st=ok:M
    <<C0 00

    D0 00
    0;0;3;0;9;read: 21-21-0 s=255,c=3,t=11,pt=0,l=13:Battery Meter
    0;0;3;0;9;read: 21-21-0 s=255,c=3,t=12,pt=0,l=3:1.0
    0;0;3;0;9;read: 21-21-0 s=1,c=0,t=13,pt=0,l=3:1.4
    0;0;3;0;9;read: 21-21-0 s=1,c=1,t=38,pt=2,l=2:102
    MyMQTT/21/1/V_VOLTAGE

    30 1A 00 15 4D 79 4D 51 54 54 2F 32 31 2F 31 2F 56 5F 56 4F 4C 54 41 47 45 31 30 32
    0;0;3;0;9;read: 21-21-0 s=255,c=1,t=24,pt=0,l=12:test message
    MyMQTT/21/255/V_VAR1

    30 22 00 14 4D 79 4D 51 54 54 2F 32 31 2F 32 35 35 2F 56 5F 56 41 52 31 74 65 73 74 20 6D 65 73 73 61 6


  • Admin

    You probably need to ping @Damme .


  • Code Contributor

    @goose I'm a bit busy atm but I'll look at it later!


  • Code Contributor

    @goose I've fixed this bug, I will do some tests tomorrow before I upload the changes.

    http://forum.mysensors.org/topic/303/mqtt-broker-gateway/


Log in to reply
 

Suggested Topics

  • 3
  • 3
  • 2
  • 4
  • 10
  • 24

0
Online

11.2k
Users

11.1k
Topics

112.5k
Posts