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. Controllers
  3. Domoticz
  4. Can't get controller to see contact switch status changes "binaryswitchsensor"

Can't get controller to see contact switch status changes "binaryswitchsensor"

Scheduled Pinned Locked Moved Domoticz
12 Posts 5 Posters 5.5k Views 2 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.
  • sundberg84S Offline
    sundberg84S Offline
    sundberg84
    Hardware Contributor
    wrote on last edited by
    #3

    Hi! As gertsanders said, and if that doesnt work - look at the gateway serial log and or Domoticz log to figure out if there is a fault in the radio traffic. All Switches are Ligtning 2, AC to me in Domoticz and that works fine.

    Controller: Proxmox VM - Home Assistant
    MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
    MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
    RFLink GW - Arduino Mega + RFLink Shield, 433mhz

    1 Reply Last reply
    0
    • GertSandersG GertSanders

      I would update to the latest BETA build. We are at v2.3790 right now. A bit further then the 3530 version (which I think is the "stable" version).

      The beta has been very solid for me, and has al the latest bugfixes.

      B Offline
      B Offline
      bp_968
      wrote on last edited by
      #4

      @GertSanders said:

      I would update to the latest BETA build. We are at v2.3790 right now. A bit further then the 3530 version (which I think is the "stable" version).

      The beta has been very solid for me, and has al the latest bugfixes.

      Thanks for the info guys, I'll try a reboot of the controller first and if that doesn't help I'll update to the beta. I installed the server by using the SD card image. Are there any instructions for upgrading my current install to the latest beta build or do I need to drop it on a SD card like I did to originally install it? (its on a Raspberry Pi B+).

      First I'm going to get some sleep so my brain will function again!
      Thanks!

      fetsF 1 Reply Last reply
      0
      • sundberg84S Offline
        sundberg84S Offline
        sundberg84
        Hardware Contributor
        wrote on last edited by
        #5

        All you need to do is turn om "Software Updates" and change "Release channel" to beta (in settings) and then upgrade in Domoticz.

        Controller: Proxmox VM - Home Assistant
        MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
        MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
        RFLink GW - Arduino Mega + RFLink Shield, 433mhz

        1 Reply Last reply
        0
        • B bp_968

          @GertSanders said:

          I would update to the latest BETA build. We are at v2.3790 right now. A bit further then the 3530 version (which I think is the "stable" version).

          The beta has been very solid for me, and has al the latest bugfixes.

          Thanks for the info guys, I'll try a reboot of the controller first and if that doesn't help I'll update to the beta. I installed the server by using the SD card image. Are there any instructions for upgrading my current install to the latest beta build or do I need to drop it on a SD card like I did to originally install it? (its on a Raspberry Pi B+).

          First I'm going to get some sleep so my brain will function again!
          Thanks!

          fetsF Offline
          fetsF Offline
          fets
          wrote on last edited by
          #6

          @bp_968 I have the same issue with my node with 2 contacts which gives the status of my garage door (fully opened, or closed).
          I'm using a serial gateway and in the console I can see incoming message from my node but no log in domoticz.
          I upgraded domoticz but still the same issue.
          My node is multisensor ( S_TEMP + S_HUM + 2 * S_LIGHT + 2 * S_LOCK + 2 * S_DOOR), I wonder if that matters .....

          1 Reply Last reply
          0
          • B Offline
            B Offline
            bp_968
            wrote on last edited by bp_968
            #7

            So I upgraded to the beta version and it didn't help. So I deleted the nodes under the "setup" section for the gateway and deleted the devices under the devices tab. Now even after resetting the controller, esp8266 gateway, and each "node" the controller won't find ANYTHING at all! At least before I had a functional temperature sensor attached and it saw the window contact sensor, it just wouldn't sense any changes in its status.

            I was so excited to have actually gotten something half working (OpenHAB was a total failure in my last attempt) and now it's doing nothing and doesn't seem to provide any errors or troubleshooting data!

            The LOG tab doesn't show anything other then the gateway being connected. Serial monitor shows the same stuff it did before, happily updating when I move the contacts on the door sensor or updating the temperature when I blow on the DHT11 node.

            Any ideas where to even begin? I'm half tempted to reinstall the controller and re flash all the microcontrollers.


            1 Reply Last reply
            0
            • B Offline
              B Offline
              bp_968
              wrote on last edited by
              #8

              I started watching the serial monitor for the gateway and it seems to crash and reboot about half the time when it receives data from one of the sensor nodes but it ONLY seems to do that when it's connected to the controller. If it's not paired with the controller (so not trying to forward data to it) it doesn't crash. That's a new problem that started with the beta upgrade.

              I'll toss the "stable" version of Domonticz on my other raspberry pi and see if the issue goes away. It probably won't resolve the original problem but will at least be back to actually seeing nodes!

              1 Reply Last reply
              0
              • B Offline
                B Offline
                bp_968
                wrote on last edited by
                #9

                Discovered my new problem was partially my fault, i screwed up the IP address on the controller config pointing to the ESP-gateway. Fixed that and now I see the sensors again, but I still don't get any updates from the contact sensor. I guess I'll try a motion sensor script just to see if I can get something other than the temp sensor working. I might also try a LAN-shield style gateway just in case that's a problem (I honestly have no clue).

                Here is the serial monitor dump from when the ESP8266 randomly decides to reset:

                ESP8266 MySensors Gateway
                Connecting to dd-wrt
                ...Connected!
                IP: 192.168.2.131
                0;0;3;0;9;gateway started, id=0, parent=0, distance=0
                0;0;3;0;9;read: 1-1-0 s=1,c=1,t=0,pt=7,l=5,sg=0:23.0
                1;1;1;0;0;23.0
                0;0;3;0;9;read: 1-1-0 s=1,c=1,t=0,pt=7,l=5,sg=0:24.0
                1;1;1;0;0;24.0
                Client 0 connected
                0;0;3;0;14;Gateway startup complete.
                Client 0: 0;0;3;0;2;

                Exception (28):
                epc1=0x4000bf80 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

                ctx: cont
                sp: 3ffeaca0 end: 3ffeaf20 offset: 01a0

                stack>>>
                3ffeae40: 00000080 3fffc6fc 3ffe97c7 40203ac0
                3ffeae50: 3ffeaf80 00000001 3ffe8fc9 4020b73c
                3ffeae60: 3ffeaf80 00000009 3ffe98bd 00000000
                3ffeae70: 00000003 00000000 3ffe98a8 4020ae11
                3ffeae80: 00000001 3ffe98b4 3ffeaf80 4020ae11
                3ffeae90: 3ffe98b4 3ffe98b4 3ffeaf80 3ffeaf80
                3ffeaea0: 3ffe98b4 3ffe97c0 3ffe97c7 402024b4
                3ffeaeb0: 3ffe9ab8 3ffe98b4 00000000 40202784
                3ffeaec0: 3ffe8e48 00000000 000003e8 3ffe9c4c
                3ffeaed0: 00000000 3fff4c88 3fff4c18 3ffeaf4c
                3ffeaee0: 00000000 0000000a 00000000 00000000
                3ffeaef0: 40201c35 8302a8c0 00000000 3ffeaf4c
                3ffeaf00: 3fffdc20 00000000 3ffeaf44 40201c92
                3ffeaf10: 00000000 00000000 3ffe9f00 40100378
                <<<stack<<<

                ets Jan 8 2013,rst cause:4, boot mode:(3,6)

                wdt reset
                load 0x4010f000, len 1264, room 16
                tail 0
                chksum 0x42
                csum 0x42
                ~ld

                ESP8266 MySensors Gateway
                Connecting to dd-wrt
                .......Connected!
                IP: 192.168.2.131
                0;0;3;0;9;gateway started, id=0, parent=0, distance=0

                1 Reply Last reply
                0
                • sundberg84S Offline
                  sundberg84S Offline
                  sundberg84
                  Hardware Contributor
                  wrote on last edited by sundberg84
                  #10

                  I have read other threads about the radio crashing connected to the controller, but works fine without. I Dont use that radio though, but search the forum and you find.

                  Controller: Proxmox VM - Home Assistant
                  MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                  MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                  RFLink GW - Arduino Mega + RFLink Shield, 433mhz

                  1 Reply Last reply
                  0
                  • B Offline
                    B Offline
                    bp_968
                    wrote on last edited by
                    #11

                    I switched to a wiz5100 based uno gateway and it all works fine. I'd still like to figure out whats going on with the ESP8266 setups. I'll do some searches like you suggested or post in the 8266 thread if I can't find anything.

                    Thanks!

                    1 Reply Last reply
                    0
                    • R Offline
                      R Offline
                      Rolo6442u
                      wrote on last edited by
                      #12

                      Today I had the same experiance with the ESP8266 gateway. Relay sensor and temp sensor working ok but the binary switch sensor did not work. It was correctly added in Domoticz but no status changes. When searching I found this post and build a quick and dirty USB gateway using an arduino Nano, plugged it in my Raspberry PI that runs Domoticz and bingo, it works ! So thanks for your post.

                      One thing I did see in the telnet session to the ESP gateway, there were long numbers (6 digits I believe) at the end of the message were there should be a 0 or 1, indicating the status of the input. The gateway did not crash.
                      Looks like a bug in the ESP gateway.

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


                      18

                      Online

                      11.7k

                      Users

                      11.2k

                      Topics

                      113.0k

                      Posts


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