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. Bug Reports
  3. ESP8266 WiFi gateway issue

ESP8266 WiFi gateway issue

Scheduled Pinned Locked Moved Bug Reports
49 Posts 6 Posters 19.9k Views 3 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.
  • snowS Offline
    snowS Offline
    snow
    wrote on last edited by
    #10

    The development version is working OK :satisfied:
    Thanks guys for your hard work.

    YveauxY 1 Reply Last reply
    0
    • snowS snow

      The development version is working OK :satisfied:
      Thanks guys for your hard work.

      YveauxY Offline
      YveauxY Offline
      Yveaux
      Mod
      wrote on last edited by
      #11

      @snow great to hear!
      Glad I could help (and my hunch was correct :-) )

      http://yveaux.blogspot.nl

      1 Reply Last reply
      0
      • HoffanH Offline
        HoffanH Offline
        Hoffan
        wrote on last edited by
        #12

        @snow

        Did you use the Development version of the ESP8266 Wifi gatewavy or for the sensor

        snowS 1 Reply Last reply
        0
        • hekH Offline
          hekH Offline
          hek
          Admin
          wrote on last edited by
          #13

          @Hoffan
          You should probably use it on both sides to be sure to get the same size on the data types.

          1 Reply Last reply
          0
          • HoffanH Offline
            HoffanH Offline
            Hoffan
            wrote on last edited by Hoffan
            #14

            All the sensors that i have include before i upgrade the ESP8266 Wifi GW is now working

            But its not working to include more, Nothing happens in Veran when i press start
            but the gateway say this

            0;0;3;0;9Client 0: 0;0;3;0;5;1t version

            every time i press start

            hekH 1 Reply Last reply
            0
            • HoffanH Hoffan

              @snow

              Did you use the Development version of the ESP8266 Wifi gatewavy or for the sensor

              snowS Offline
              snowS Offline
              snow
              wrote on last edited by snow
              #15

              @Hoffan said:

              Did you use the Development version of the ESP8266 Wifi gatewavy or for the sensor

              At the moment I only changed the gateway. It's already solved my problem with incorrect values.

              HoffanH 1 Reply Last reply
              0
              • snowS snow

                @Hoffan said:

                Did you use the Development version of the ESP8266 Wifi gatewavy or for the sensor

                At the moment I only changed the gateway. It's already solved my problem with incorrect values.

                HoffanH Offline
                HoffanH Offline
                Hoffan
                wrote on last edited by
                #16

                @snow

                But is your include button working now?
                Or maybe you don't use Vera as a controller

                snowS 1 Reply Last reply
                0
                • HoffanH Hoffan

                  All the sensors that i have include before i upgrade the ESP8266 Wifi GW is now working

                  But its not working to include more, Nothing happens in Veran when i press start
                  but the gateway say this

                  0;0;3;0;9Client 0: 0;0;3;0;5;1t version

                  every time i press start

                  hekH Offline
                  hekH Offline
                  hek
                  Admin
                  wrote on last edited by
                  #17

                  @Hoffan

                  The print looks a bit weird. I'll have to do some tests.

                  HoffanH 1 Reply Last reply
                  0
                  • HoffanH Hoffan

                    @snow

                    But is your include button working now?
                    Or maybe you don't use Vera as a controller

                    snowS Offline
                    snowS Offline
                    snow
                    wrote on last edited by
                    #18

                    @Hoffan No. I'm using DomoticZ

                    1 Reply Last reply
                    0
                    • hekH hek

                      @Hoffan

                      The print looks a bit weird. I'll have to do some tests.

                      HoffanH Offline
                      HoffanH Offline
                      Hoffan
                      wrote on last edited by
                      #19

                      @hek

                      That sounds good, Just ask if you want me to test something..

                      1 Reply Last reply
                      0
                      • HoffanH Offline
                        HoffanH Offline
                        Hoffan
                        wrote on last edited by
                        #20

                        @hek

                        Any News here ?

                        1 Reply Last reply
                        0
                        • snowS Offline
                          snowS Offline
                          snow
                          wrote on last edited by
                          #21

                          Having another problem with a ESP8266 running as the gateway. Sensor build on Arduino Mini Pro loaded with example sketch DimmableLightWithRotaryEncoderButton.ino. Sensor and gateway firmware compiled from latest development branch v1.6 library.
                          The controller is a domoticz.

                          This is a output on the gateway console when I turn rotary encoder on the sensor.

                          0;0;3;0;14;Gateway startup complete.
                          0;0;3;0;2;1.6.0-beta
                          3;1;1;0;3;0
                          3;1;1;0;3;8
                          3;1;1;0;3;12
                          3;1;1;0;3;16
                          3;1;1;0;3;24
                          3;1;1;0;3;30
                          3;1;1;0;3;36
                          3;1;1;0;3;44
                          3;1;1;0;3;58
                          3;1;1;0;3;76
                          3;1;1;0;3;96
                          3;1;1;0;3;100
                          

                          This is the output from gateway console when I move dimmer slider on the Domoticz

                          3;1;1;1;3;87t Version
                          3;1;1;1;3;80t Version
                          3;1;1;1;3;53t Version
                          3;1;1;1;3;47t Version
                          3;1;1;1;3;33t Version
                          3;1;1;1;3;20t Version
                          3;1;1;1;3;13t Version
                          3;1;1;1;3;73t Version
                          

                          The problem is that the ESP8266 gateway append unnecessary characters t Version at the end of each line.
                          Also when dimmer slider is on the position 6%, gateway output is 3;1;1;1;3;73t Version Correct value should be 7 not 73

                          1 Reply Last reply
                          0
                          • hekH Offline
                            hekH Offline
                            hek
                            Admin
                            wrote on last edited by hek
                            #22

                            @snow

                            Could you perhaps enable "#define MY_DEBUG" in the gateway sketch?

                            Would alos be interesting to see the result when you add

                            Serial.println(inputString);

                            Here:
                            https://github.com/mysensors/Arduino/blob/development/libraries/MySensors/core/MyProtocolMySensors.cpp#L36

                            1 Reply Last reply
                            0
                            • snowS Offline
                              snowS Offline
                              snow
                              wrote on last edited by snow
                              #23

                              Here is the output from the gateway console when I rotate knob on the encoder.

                              connected with 00000000, channel 6
                              ip:192.168.0.110,mask:255.255.255.0,gw:192.168.0.1
                              .IP: 192.168.0.110
                              0;0;3;0;9;gateway started, id=0, parent=0, distance=0
                              0;0;3;0;9;read: 3-3-0 s=1,c=1,t=3,pt=2,l=2,sg=0:24
                              0;0;3;0;9;send: 0-0-3-3 s=1,c=1,t=3,pt=2,l=2,sg=0,st=ok:24
                              0;0;3;0;9;read: 3-3-0 s=1,c=1,t=3,pt=2,l=2,sg=0:26
                              0;0;3;0;9;send: 0-0-3-3 s=1,c=1,t=3,pt=2,l=2,sg=0,st=ok:26
                              0;0;3;0;9;read: 3-3-0 s=1,c=1,t=3,pt=2,l=2,sg=0:28
                              0;0;3;0;9;send: 0-0-3-3 s=1,c=1,t=3,pt=2,l=2,sg=0,st=ok:28
                              0;0;3;0;9;read: 3-3-0 s=1,c=1,t=3,pt=2,l=2,sg=0:30
                              0;0;3;0;9;send: 0-0-3-3 s=1,c=1,t=3,pt=2,l=2,sg=0,st=ok:30
                              0;0;3;0;9;read: 3-3-0 s=1,c=1,t=3,pt=2,l=2,sg=0:32
                              0;0;3;0;9;send: 0-0-3-3 s=1,c=1,t=3,pt=2,l=2,sg=0,st=ok:32
                              0;0;3;0;9;read: 3-3-0 s=1,c=1,t=3,pt=2,l=2,sg=0:34
                              0;0;3;0;9;send: 0-0-3-3 s=1,c=1,t=3,pt=2,l=2,sg=0,st=ok:34
                              0;0;3;0;9;read: 3-3-0 s=1,c=1,t=3,pt=2,l=2,sg=0:36
                              0;0;3;0;9;send: 0-0-3-3 s=1,c=1,t=3,pt=2,l=2,sg=0,st=ok:36
                              0;0;3;0;9;read: 3-3-0 s=1,c=1,t=3,pt=2,l=2,sg=0:38
                              0;0;3;0;9;send: 0-0-3-3 s=1,c=1,t=3,pt=2,l=2,sg=0,st=ok:38
                              0;0;3;0;9;read: 3-3-0 s=1,c=1,t=3,pt=2,l=2,sg=0:40
                              0;0;3;0;9;send: 0-0-3-3 s=1,c=1,t=3,pt=2,l=2,sg=0,st=ok:40
                              0;0;3;0;9;read: 3-3-0 s=1,c=1,t=3,pt=2,l=2,sg=0:42
                              0;0;3;0;9;send: 0-0-3-3 s=1,c=1,t=3,pt=2,l=2,sg=0,st=ok:42
                              

                              Here is output from the gateway console, when I slide down dimmer on the Domoticz

                              0;0;3;0;9;read: 3-3-0 s=1,c=1,t=2,pt=0,l=11,sg=0:03M Version
                              0;0;3;0;9;read: 3-3-0 s=1,c=1,t=3,pt=2,l=2,sg=0:0
                              0;0;3;0;9;send: 0-0-3-3 s=1,c=1,t=3,pt=2,l=2,sg=0,st=ok:0
                              0;0;3;0;9;Client 0: 3;1;1;1;3;93M Version
                              3;1;1;1;3;93M Version
                              0;0;3;0;9;send: 0-0-3-3 s=1,c=1,t=3,pt=0,l=11,sg=0,st=ok:93M Version
                              
                              0;0;3;0;9;read: 3-3-0 s=1,c=1,t=3,pt=0,l=11,sg=0:93M Version
                              0;0;3;0;9;Client 0: 3;1;1;1;3;87M Version
                              3;1;1;1;3;87M Version
                              0;0;3;0;9;send: 0-0-3-3 s=1,c=1,t=3,pt=0,l=11,sg=0,st=ok:87M Version
                              
                              0;0;3;0;9;read: 3-3-0 s=1,c=1,t=3,pt=0,l=11,sg=0:87M Version
                              0;0;3;0;9;Client 0: 3;1;1;1;3;93M Version
                              3;1;1;1;3;93M Version
                              0;0;3;0;9;send: 0-0-3-3 s=1,c=1,t=3,pt=0,l=11,sg=0,st=ok:93M Version
                              
                              0;0;3;0;9;read: 3-3-0 s=1,c=1,t=3,pt=0,l=11,sg=0:93M Version
                              0;0;3;0;9;Client 0: 3;1;1;1;2;03M Version
                              3;1;1;1;2;03M Version
                              0;0;3;0;9;send: 0-0-3-3 s=1,c=1,t=2,pt=0,l=11,sg=0,st=ok:03M Version
                              
                              0;0;3;0;9;read: 3-3-0 s=1,c=1,t=2,pt=0,l=11,sg=0:03M Version
                              0;0;3;0;9;read: 3-3-0 s=1,c=1,t=3,pt=2,l=2,sg=0:0
                              0;0;3;0;9;send: 0-0-3-3 s=1,c=1,t=3,pt=2,l=2,sg=0,st=ok:0
                              0;0;3;0;9;Client 0: 3;1;1;1;2;13M Version
                              3;1;1;1;2;13M Version
                              0;0;3;0;9;send: 0-0-3-3 s=1,c=1,t=2,pt=0,l=11,sg=0,st=ok:13M Version
                              
                              0;0;3;0;9;read: 3-3-0 s=1,c=1,t=2,pt=0,l=11,sg=0:13M Version
                              0;0;3;0;9;read: 3-3-0 s=1,c=1,t=3,pt=2,l=2,sg=0:93
                              0;0;3;0;9;send: 0-0-3-3 s=1,c=1,t=3,pt=2,l=2,sg=0,st=ok:93
                              0;0;3;0;9;Client 0: 3;1;1;1;3;93M Version
                              3;1;1;1;3;93M Version
                              0;0;3;0;9;send: 0-0-3-3 s=1,c=1,t=3,pt=0,l=11,sg=0,st=ok:93M Version
                              
                              0;0;3;0;9;read: 3-3-0 s=1,c=1,t=3,pt=0,l=11,sg=0:93M Version
                              0;0;3;0;9;read: 3-3-0 s=255,c=0,t=17,pt=0,l=10,sg=0:1.6.0-beta
                              0;0;3;0;9;read: 3-3-0 s=255,c=3,t=6,pt=1,l=1,sg=0:0
                              0;0;3;0;9;Client 0: 3;255;3;0;6;M Version
                              3;255;3;0;6;M Version
                              0;0;3;0;9;send: 0-0-3-3 s=255,c=3,t=6,pt=0,l=9,sg=0,st=ok:M Version
                              0;0;3;0;9;read: 3-3-0 s=1,c=0,t=4,pt=0,l=0,sg=0:
                              0;0;3;0;9;read: 3-3-0 s=255,c=3,t=11,pt=0,l=21,sg=0:DimmableLED /w bu
                              0;0;3;0;9;read: 3-3-0 s=255,c=3,t=12,pt=0,l=3,sg=0:1.2
                              0;0;3;0;9;read: 3-3-0 s=1,c=1,t=3,pt=1,l=1,sg=0:93
                              0;0;3;0;9;send: 0-0-3-3 s=1,c=1,t=3,pt=1,l=1,sg=0,st=ok:93
                              0;0;3;0;9;Client 0: 3;1;1;1;3;80M Version
                              3;1;1;1;3;80M Version
                              0;0;3;0;9;send: 0-0-3-3 s=1,c=1,t=3,pt=0,l=11,sg=0,st=ok:80M Version
                              
                              0;0;3;0;9;read: 3-3-0 s=1,c=1,t=3,pt=0,l=11,sg=0:80M Version
                              0;0;3;0;9;Client 0: 3;1;1;1;3;73M Version
                              3;1;1;1;3;73M Version
                              0;0;3;0;9;send: 0-0-3-3 s=1,c=1,t=3,pt=0,l=11,sg=0,st=ok:73M Version
                              
                              0;0;3;0;9;read: 3-3-0 s=1,c=1,t=3,pt=0,l=11,sg=0:73M Version
                              0;0;3;0;9;Client 0: 3;1;1;1;3;67M Version
                              3;1;1;1;3;67M Version
                              0;0;3;0;9;send: 0-0-3-3 s=1,c=1,t=3,pt=0,l=11,sg=0,st=ok:67M Version
                              
                              0;0;3;0;9;read: 3-3-0 s=1,c=1,t=3,pt=0,l=11,sg=0:67M Version
                              0;0;3;0;9;Client 0: 3;1;1;1;3;60M Version
                              3;1;1;1;3;60M Version
                              0;0;3;0;9;send: 0-0-3-3 s=1,c=1,t=3,pt=0,l=11,sg=0,st=ok:60M Version
                              
                              0;0;3;0;9;read: 3-3-0 s=1,c=1,t=3,pt=0,l=11,sg=0:60M Version
                              0;0;3;0;9;Client 0: 3;1;1;1;3;53M Version
                              3;1;1;1;3;53M Version
                              0;0;3;0;9;send: 0-0-3-3 s=1,c=1,t=3,pt=0,l=11,sg=0,st=ok:53M Version
                              
                              0;0;3;0;9;read: 3-3-0 s=1,c=1,t=3,pt=0,l=11,sg=0:53M Version
                              0;0;3;0;9;Client 0: 3;1;1;1;3;47M Version
                              3;1;1;1;3;47M Version
                              0;0;3;0;9;send: 0-0-3-3 s=1,c=1,t=3,pt=0,l=11,sg=0,st=ok:47M Version
                              
                              0;0;3;0;9;read: 3-3-0 s=1,c=1,t=3,pt=0,l=11,sg=0:47M Version
                              0;0;3;0;9;Client 0: 3;1;1;1;3;40M Version
                              3;1;1;1;3;40M Version
                              0;0;3;0;9;send: 0-0-3-3 s=1,c=1,t=3,pt=0,l=11,sg=0,st=ok:40M Version
                              
                              0;0;3;0;9;read: 3-3-0 s=1,c=1,t=3,pt=0,l=11,sg=0:40M Version
                              

                              The output from sensor console

                              Starting...
                              send: 3-3-0-0 s=255,c=0,t=17,pt=0,l=10,sg=0,st=ok:1.6.0-beta
                              send: 3-3-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0
                              read: 0-0-3 s=255,c=3,t=6,pt=0,l=9,sg=0:M Version
                              send: 3-3-0-0 s=1,c=0,t=4,pt=0,l=0,sg=0,st=ok:
                              send: 3-3-0-0 s=255,c=3,t=11,pt=0,l=21,sg=0,st=ok:DimmableLED /w button
                              send: 3-3-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.2
                              sensor started, id=3, parent=0, distance=1
                              Sending in last known light level to controller: 93
                              send: 3-3-0-0 s=1,c=1,t=3,pt=1,l=1,sg=0,st=ok:93
                              Ready to receive messages...
                              read: 0-0-3 s=1,c=1,t=3,pt=1,l=1,sg=0:93
                              New light level received: 93
                              Fading level: 1
                              Fading level: 2
                              Fading level: 3
                              Fading level: 4
                              Fading level: 5
                              Fading level: 6
                              Fading level: 7
                              Fading level: 8
                              Fading level: 9
                              Fading level: 10
                              Fading level: 11
                              Fading level: 12
                              Fading level: 13
                              Fading level: 14
                              Fading level: 15
                              Fading level: 16
                              Fading level: 17
                              Fading level: 18
                              Fading level: 19
                              Fading level: 20
                              Fading level: 21
                              Fading level: 22
                              Fading level: 23
                              Fading level: 24
                              Fading level: 25
                              Fading level: 26
                              Fading level: 27
                              Fading level: 28
                              Fading level: 29
                              Fading level: 30
                              Fading level: 31
                              Fading level: 32
                              Fading level: 33
                              Fading level: 34
                              Fading level: 35
                              Fading level: 36
                              Fading level: 37
                              Fading level: 38
                              Fading level: 39
                              Fading level: 40
                              Fading level: 41
                              Fading level: 42
                              Fading level: 43
                              Fading level: 44
                              Fading level: 45
                              Fading level: 46
                              Fading level: 47
                              Fading level: 48
                              Fading level: 49
                              Fading level: 50
                              Fading level: 51
                              Fading level: 52
                              Fading level: 53
                              Fading level: 54
                              Fading level: 55
                              Fading level: 56
                              Fading level: 57
                              Fading level: 58
                              Fading level: 59
                              Fading level: 60
                              Fading level: 61
                              Fading level: 62
                              Fading level: 63
                              Fading level: 64
                              Fading level: 65
                              Fading level: 66
                              Fading level: 67
                              Fading level: 68
                              Fading level: 69
                              Fading level: 70
                              Fading level: 71
                              Fading level: 72
                              Fading level: 73
                              Fading level: 74
                              Fading level: 75
                              Fading level: 76
                              Fading level: 77
                              Fading level: 78
                              Fading level: 79
                              Fading level: 80
                              Fading level: 81
                              Fading level: 82
                              Fading level: 83
                              Fading level: 84
                              Fading level: 85
                              Fading level: 86
                              Fading level: 87
                              Fading level: 88
                              Fading level: 89
                              Fading level: 90
                              Fading level: 91
                              Fading level: 92
                              Fading level: 93
                              read: 0-0-3 s=1,c=1,t=3,pt=0,l=11,sg=0:80M Version
                              send: 3-3-0-0 s=1,c=1,t=3,pt=0,l=11,sg=0,st=ok:80M Version
                              New light level received: 80
                              Fading level: 92
                              Fading level: 91
                              Fading level: 90
                              Fading level: 89
                              Fading level: 88
                              Fading level: 87
                              Fading level: 86
                              Fading level: 85
                              Fading level: 84
                              Fading level: 83
                              Fading level: 82
                              Fading level: 81
                              Fading level: 80
                              read: 0-0-3 s=1,c=1,t=3,pt=0,l=11,sg=0:73M Version
                              send: 3-3-0-0 s=1,c=1,t=3,pt=0,l=11,sg=0,st=ok:73M Version
                              New light level received: 73
                              Fading level: 79
                              Fading level: 78
                              Fading level: 77
                              Fading level: 76
                              Fading level: 75
                              Fading level: 74
                              Fading level: 73
                              read: 0-0-3 s=1,c=1,t=3,pt=0,l=11,sg=0:67M Version
                              send: 3-3-0-0 s=1,c=1,t=3,pt=0,l=11,sg=0,st=ok:67M Version
                              New light level received: 67
                              Fading level: 72
                              Fading level: 71
                              Fading level: 70
                              Fading level: 69
                              Fading level: 68
                              Fading level: 67
                              read: 0-0-3 s=1,c=1,t=3,pt=0,l=11,sg=0:60M Version
                              send: 3-3-0-0 s=1,c=1,t=3,pt=0,l=11,sg=0,st=ok:60M Version
                              New light level received: 60
                              Fading level: 66
                              Fading level: 65
                              Fading level: 64
                              Fading level: 63
                              Fading level: 62
                              Fading level: 61
                              Fading level: 60
                              read: 0-0-3 s=1,c=1,t=3,pt=0,l=11,sg=0:53M Version
                              send: 3-3-0-0 s=1,c=1,t=3,pt=0,l=11,sg=0,st=ok:53M Version
                              New light level received: 53
                              Fading level: 59
                              Fading level: 58
                              Fading level: 57
                              Fading level: 56
                              Fading level: 55
                              Fading level: 54
                              Fading level: 53
                              read: 0-0-3 s=1,c=1,t=3,pt=0,l=11,sg=0:47M Version
                              send: 3-3-0-0 s=1,c=1,t=3,pt=0,l=11,sg=0,st=ok:47M Version
                              New light level received: 47
                              Fading level: 52
                              Fading level: 51
                              Fading level: 50
                              Fading level: 49
                              Fading level: 48
                              Fading level: 47
                              read: 0-0-3 s=1,c=1,t=3,pt=0,l=11,sg=0:40M Version
                              send: 3-3-0-0 s=1,c=1,t=3,pt=0,l=11,sg=0,st=ok:40M Version
                              New light level received: 40
                              Fading level: 46
                              Fading level: 45
                              Fading level: 44
                              Fading level: 43
                              Fading level: 42
                              Fading level: 41
                              Fading level: 40
                              

                              I hope it will be helpful

                              1 Reply Last reply
                              0
                              • hekH Offline
                                hekH Offline
                                hek
                                Admin
                                wrote on last edited by
                                #24

                                It almost looks like Domoticz sends the "Version" stuff. Is it possible to see what Domoticz sends? Anot logs over there?

                                1 Reply Last reply
                                0
                                • snowS Offline
                                  snowS Offline
                                  snow
                                  wrote on last edited by
                                  #25

                                  Output from RPi console. pi@domoticz ~/domoticz $ sudo ./domoticz -verbose 1

                                  2015-11-08 15:06:57.916  MySensors: connected to: 192.168.0.110:5003
                                  2015-11-08 15:06:57.916  MySensors: Gateway Ready...
                                  2015-11-08 15:06:58.917  MySensors: Gateway Version: 1.6.0-beta
                                  2015-11-08 15:07:12.928  MySensors: Node: 3, Sketch Name: DimmableLED /w button
                                  2015-11-08 15:07:13.932  MySensors: Node: 3, Sketch Version: 1.2
                                  subtype       = AC
                                  Sequence nbr  = 0
                                  ID            = 0000003
                                  Unit          = 1
                                  Command       = On
                                  2015-11-08 15:07:13.936  (MySensors) Lighting 2 (LED Dimmer)
                                  subtype       = AC
                                  Sequence nbr  = 0
                                  ID            = 0000003
                                  Unit          = 1
                                  Command       = Set Level: 12
                                  2015-11-08 15:07:32.010  (MySensors) Lighting 2 (LED Dimmer)
                                  subtype       = AC
                                  Sequence nbr  = 1
                                  ID            = 0000003
                                  Unit          = 1
                                  Command       = Set Level: 11
                                  2015-11-08 15:07:33.981  (MySensors) Lighting 2 (LED Dimmer)
                                  subtype       = AC
                                  Sequence nbr  = 2
                                  ID            = 0000003
                                  Unit          = 1
                                  Command       = Set Level: 10
                                  2015-11-08 15:07:35.984  (MySensors) Lighting 2 (LED Dimmer)
                                  subtype       = AC
                                  Sequence nbr  = 3
                                  ID            = 0000003
                                  Unit          = 1
                                  Command       = Set Level: 9
                                  2015-11-08 15:07:38.055  (MySensors) Lighting 2 (LED Dimmer)
                                  subtype       = AC
                                  Sequence nbr  = 4
                                  ID            = 0000003
                                  Unit          = 1
                                  Command       = Set Level: 8
                                  

                                  I'll try to build Serial Gateway and do the same test

                                  1 Reply Last reply
                                  0
                                  • GizMoCuzG Offline
                                    GizMoCuzG Offline
                                    GizMoCuz
                                    wrote on last edited by
                                    #26

                                    There is a small problem with domoticz regarding the light level (fixed in beta #3563)
                                    When the slider was set to 100%, around 93% was send to the node

                                    BUT, what domoticz sends, is OK, there is NO version stuff added (really strange your seeing this!)

                                    I made a test sketch, and this is the output:

                                    Starting...
                                    send: 254-254-0-0 s=255,c=0,t=17,pt=0,l=10,sg=0,st=ok:1.6.0-beta
                                    send: 254-254-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0
                                    read: 0-0-254 s=255,c=3,t=6,pt=0,l=1,sg=0:M
                                    send: 254-254-0-0 s=1,c=0,t=4,pt=0,l=0,sg=0,st=ok:
                                    send: 254-254-0-0 s=255,c=3,t=11,pt=0,l=21,sg=0,st=ok:DimmableLED /w button
                                    send: 254-254-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.2
                                    sensor started, id=254, parent=0, distance=1
                                    Ready to receive messages...
                                    read: 0-0-254 s=1,c=1,t=2,pt=0,l=1,sg=0:0
                                    send: 254-254-0-0 s=1,c=1,t=2,pt=0,l=1,sg=0,st=ok:0
                                    V_LIGHT received: 0
                                    read: 0-0-254 s=1,c=1,t=2,pt=0,l=1,sg=0:1
                                    send: 254-254-0-0 s=1,c=1,t=2,pt=0,l=1,sg=0,st=ok:1
                                    V_LIGHT received: 1
                                    read: 0-0-254 s=1,c=1,t=3,pt=0,l=2,sg=0:43
                                    send: 254-254-0-0 s=1,c=1,t=3,pt=0,l=2,sg=0,st=ok:43
                                    V_DIMMER received: 43
                                    read: 0-0-254 s=1,c=1,t=3,pt=0,l=2,sg=0:86
                                    send: 254-254-0-0 s=1,c=1,t=3,pt=0,l=2,sg=0,st=ok:86
                                    V_DIMMER received: 86
                                    read: 0-0-254 s=1,c=1,t=3,pt=0,l=3,sg=0:100
                                    send: 254-254-0-0 s=1,c=1,t=3,pt=0,l=3,sg=0,st=ok:100
                                    V_DIMMER received: 100

                                    All perfect

                                    Sketch:
                                    // Enable debug prints
                                    #define MY_DEBUG

                                    // Enable and select radio type attached
                                    #define MY_RADIO_NRF24
                                    //#define MY_RADIO_RFM69

                                    #define MY_NODE_ID 254

                                    #include <SPI.h>
                                    #include <MySensor.h>

                                    #define SN "DimmableLED /w button"
                                    #define SV "1.2"

                                    #define CHILD_ID_LIGHT 1

                                    MyMessage dimmerMsg(CHILD_ID_LIGHT, V_DIMMER);

                                    void setup()
                                    {
                                    Serial.println("Ready to receive messages...");
                                    }

                                    void presentation() {
                                    // Send the Sketch Version Information to the Gateway
                                    present(CHILD_ID_LIGHT, S_DIMMER);
                                    sendSketchInfo(SN, SV);
                                    }

                                    void loop()
                                    {
                                    }

                                    void receive(const MyMessage &message)
                                    {
                                    if (message.type == V_LIGHT) {
                                    Serial.print("V_LIGHT received: ");
                                    Serial.println(message.getString());
                                    } else if (message.type == V_DIMMER) {
                                    Serial.print("V_DIMMER received: ");
                                    Serial.println(message.getString());
                                    }
                                    else {
                                    Serial.print("Unhandled message received: ");
                                    Serial.println(message.getString());
                                    }
                                    }

                                    snowS 1 Reply Last reply
                                    0
                                    • hekH Offline
                                      hekH Offline
                                      hek
                                      Admin
                                      wrote on last edited by
                                      #27

                                      @GizMoCuz
                                      How do you terminate the strings in Domoticz? Only \n or both \n and \r?

                                      Does the controller have exactly the same behaviour when communicating with an ethernet gateway as serial gateway?

                                      1 Reply Last reply
                                      0
                                      • GizMoCuzG GizMoCuz

                                        There is a small problem with domoticz regarding the light level (fixed in beta #3563)
                                        When the slider was set to 100%, around 93% was send to the node

                                        BUT, what domoticz sends, is OK, there is NO version stuff added (really strange your seeing this!)

                                        I made a test sketch, and this is the output:

                                        Starting...
                                        send: 254-254-0-0 s=255,c=0,t=17,pt=0,l=10,sg=0,st=ok:1.6.0-beta
                                        send: 254-254-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0
                                        read: 0-0-254 s=255,c=3,t=6,pt=0,l=1,sg=0:M
                                        send: 254-254-0-0 s=1,c=0,t=4,pt=0,l=0,sg=0,st=ok:
                                        send: 254-254-0-0 s=255,c=3,t=11,pt=0,l=21,sg=0,st=ok:DimmableLED /w button
                                        send: 254-254-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.2
                                        sensor started, id=254, parent=0, distance=1
                                        Ready to receive messages...
                                        read: 0-0-254 s=1,c=1,t=2,pt=0,l=1,sg=0:0
                                        send: 254-254-0-0 s=1,c=1,t=2,pt=0,l=1,sg=0,st=ok:0
                                        V_LIGHT received: 0
                                        read: 0-0-254 s=1,c=1,t=2,pt=0,l=1,sg=0:1
                                        send: 254-254-0-0 s=1,c=1,t=2,pt=0,l=1,sg=0,st=ok:1
                                        V_LIGHT received: 1
                                        read: 0-0-254 s=1,c=1,t=3,pt=0,l=2,sg=0:43
                                        send: 254-254-0-0 s=1,c=1,t=3,pt=0,l=2,sg=0,st=ok:43
                                        V_DIMMER received: 43
                                        read: 0-0-254 s=1,c=1,t=3,pt=0,l=2,sg=0:86
                                        send: 254-254-0-0 s=1,c=1,t=3,pt=0,l=2,sg=0,st=ok:86
                                        V_DIMMER received: 86
                                        read: 0-0-254 s=1,c=1,t=3,pt=0,l=3,sg=0:100
                                        send: 254-254-0-0 s=1,c=1,t=3,pt=0,l=3,sg=0,st=ok:100
                                        V_DIMMER received: 100

                                        All perfect

                                        Sketch:
                                        // Enable debug prints
                                        #define MY_DEBUG

                                        // Enable and select radio type attached
                                        #define MY_RADIO_NRF24
                                        //#define MY_RADIO_RFM69

                                        #define MY_NODE_ID 254

                                        #include <SPI.h>
                                        #include <MySensor.h>

                                        #define SN "DimmableLED /w button"
                                        #define SV "1.2"

                                        #define CHILD_ID_LIGHT 1

                                        MyMessage dimmerMsg(CHILD_ID_LIGHT, V_DIMMER);

                                        void setup()
                                        {
                                        Serial.println("Ready to receive messages...");
                                        }

                                        void presentation() {
                                        // Send the Sketch Version Information to the Gateway
                                        present(CHILD_ID_LIGHT, S_DIMMER);
                                        sendSketchInfo(SN, SV);
                                        }

                                        void loop()
                                        {
                                        }

                                        void receive(const MyMessage &message)
                                        {
                                        if (message.type == V_LIGHT) {
                                        Serial.print("V_LIGHT received: ");
                                        Serial.println(message.getString());
                                        } else if (message.type == V_DIMMER) {
                                        Serial.print("V_DIMMER received: ");
                                        Serial.println(message.getString());
                                        }
                                        else {
                                        Serial.print("Unhandled message received: ");
                                        Serial.println(message.getString());
                                        }
                                        }

                                        snowS Offline
                                        snowS Offline
                                        snow
                                        wrote on last edited by
                                        #28

                                        @GizMoCuz
                                        I have tested Your sketch and the same stuff is added at the end

                                        Starting...
                                        send: 254-254-0-0 s=255,c=0,t=17,pt=0,l=10,sg=0,st=ok:1.6.0-beta
                                        send: 254-254-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0
                                        read: 0-0-254 s=255,c=3,t=6,pt=0,l=7,sg=0:Mersion
                                        send: 254-254-0-0 s=1,c=0,t=4,pt=0,l=0,sg=0,st=ok:
                                        send: 254-254-0-0 s=255,c=3,t=11,pt=0,l=21,sg=0,st=ok:DimmableLED /w button
                                        send: 254-254-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.2
                                        sensor started, id=254, parent=0, distance=1
                                        Ready to receive messages...
                                        read: 0-0-254 s=1,c=1,t=2,pt=0,l=1,sg=0:0
                                        send: 254-254-0-0 s=1,c=1,t=2,pt=0,l=1,sg=0,st=ok:0
                                        V_LIGHT received: 0
                                        read: 0-0-254 s=1,c=1,t=2,pt=0,l=1,sg=0:1
                                        send: 254-254-0-0 s=1,c=1,t=2,pt=0,l=1,sg=0,st=ok:1
                                        V_LIGHT received: 1
                                        read: 0-0-254 s=1,c=1,t=3,pt=0,l=9,sg=0:93Mersion
                                        send: 254-254-0-0 s=1,c=1,t=3,pt=0,l=9,sg=0,st=ok:93Mersion
                                        V_DIMMER received: 93Mersion
                                        read: 0-0-254 s=1,c=1,t=3,pt=0,l=9,sg=0:86Mersion
                                        send: 254-254-0-0 s=1,c=1,t=3,pt=0,l=9,sg=0,st=ok:86Mersion
                                        V_DIMMER received: 86Mersion
                                        read: 0-0-254 s=1,c=1,t=3,pt=0,l=9,sg=0:79Mersion
                                        send: 254-254-0-0 s=1,c=1,t=3,pt=0,l=9,sg=0,st=ok:79Mersion
                                        V_DIMMER received: 79Mersion
                                        read: 0-0-254 s=1,c=1,t=3,pt=0,l=9,sg=0:71Mersion
                                        send: 254-254-0-0 s=1,c=1,t=3,pt=0,l=9,sg=0,st=ok:71Mersion
                                        V_DIMMER received: 71Mersion
                                        read: 0-0-254 s=1,c=1,t=3,pt=0,l=9,sg=0:64Mersion
                                        send: 254-254-0-0 s=1,c=1,t=3,pt=0,l=9,sg=0,st=ok:64Mersion
                                        V_DIMMER received: 64Mersion
                                        read: 0-0-254 s=1,c=1,t=3,pt=0,l=9,sg=0:57Mersion
                                        send: 254-254-0-0 s=1,c=1,t=3,pt=0,l=9,sg=0,st=ok:57Mersion
                                        V_DIMMER received: 57Mersion
                                        read: 0-0-254 s=1,c=1,t=3,pt=0,l=9,sg=0:50Mersion
                                        send: 254-254-0-0 s=1,c=1,t=3,pt=0,l=9,sg=0,st=ok:50Mersion
                                        V_DIMMER received: 50Mersion
                                        read: 0-0-254 s=1,c=1,t=3,pt=0,l=9,sg=0:43Mersion
                                        send: 254-254-0-0 s=1,c=1,t=3,pt=0,l=9,sg=0,st=ok:43Mersion
                                        V_DIMMER received: 43Mersion
                                        read: 0-0-254 s=1,c=1,t=3,pt=0,l=9,sg=0:36Mersion
                                        send: 254-254-0-0 s=1,c=1,t=3,pt=0,l=9,sg=0,st=ok:36Mersion
                                        V_DIMMER received: 36Mersion
                                        read: 0-0-254 s=1,c=1,t=3,pt=0,l=9,sg=0:29Mersion
                                        send: 254-254-0-0 s=1,c=1,t=3,pt=0,l=9,sg=0,st=ok:29Mersion
                                        V_DIMMER received: 29Mersion
                                        read: 0-0-254 s=1,c=1,t=3,pt=0,l=9,sg=0:21Mersion
                                        send: 254-254-0-0 s=1,c=1,t=3,pt=0,l=9,sg=0,st=ok:21Mersion
                                        V_DIMMER received: 21Mersion
                                        read: 0-0-254 s=1,c=1,t=3,pt=0,l=9,sg=0:14Mersion
                                        send: 254-254-0-0 s=1,c=1,t=3,pt=0,l=9,sg=0,st=ok:14Mersion
                                        V_DIMMER received: 14Mersion
                                        read: 0-0-254 s=1,c=1,t=3,pt=0,l=9,sg=0:74Mersion
                                        send: 254-254-0-0 s=1,c=1,t=3,pt=0,l=9,sg=0,st=ok:74Mersion
                                        V_DIMMER received: 74Mersion
                                        read: 0-0-254 s=1,c=1,t=2,pt=0,l=9,sg=0:04Mersion
                                        send: 254-254-0-0 s=1,c=1,t=2,pt=0,l=9,sg=0,st=ok:04Mersion
                                        V_LIGHT received: 04Mersion
                                        

                                        Is it possible as some crap is sitting in my ESP8266 EEPROM memory?

                                        1 Reply Last reply
                                        0
                                        • GizMoCuzG Offline
                                          GizMoCuzG Offline
                                          GizMoCuz
                                          wrote on last edited by GizMoCuz
                                          #29

                                          @hek, with \n
                                          MySensors is implemented in domoticz for a long time now... there should be nothing wrong with it.....

                                          Also in my sketches all is received perfectly

                                          Could there be a difference between the ESP8266 and nRF ?
                                          I only use the nRF currently (and probably will for ever as i have 20 more chips and a lot more arduino's g)

                                          Also i do not send anything with the word version in it, it looks this is a left over from sending the sketch information ?

                                          I dont know how you guys get that nice colors in the log (brown/white/green), but the green number is OK, that white behind it is not

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


                                          12

                                          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