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. Troubleshooting
  3. problem with sending sketch names to controllers

problem with sending sketch names to controllers

Scheduled Pinned Locked Moved Troubleshooting
4 Posts 3 Posters 1.8k Views 1 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    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

    DammeD 2 Replies Last reply
    0
    • hekH Offline
      hekH Offline
      hek
      Admin
      wrote on last edited by hek
      #2

      You probably need to ping @Damme .

      1 Reply Last reply
      0
      • ? A Former User

        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

        DammeD Offline
        DammeD Offline
        Damme
        Code Contributor
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0
        • ? A Former User

          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

          DammeD Offline
          DammeD Offline
          Damme
          Code Contributor
          wrote on last edited by
          #4

          @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/

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


          22

          Online

          11.7k

          Users

          11.2k

          Topics

          113.1k

          Posts


          Copyright 2025 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