Skip to content
  • 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. sensebender sketch with door sensor help needed
  • Getting Started
  • Controller
  • Build
  • Hardware
  • Download/API
  • Forum
  • Store

sensebender sketch with door sensor help needed

Scheduled Pinned Locked Moved Troubleshooting
5 Posts 3 Posters 1.8k 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.
  • BigDogB Offline
    BigDogB Offline
    BigDog
    wrote on last edited by
    #1

    hi guys

    i am new to mysensors been a domoticz user for some time now
    and have made the doorbell hack and works like a charm
    the gateway is also working
    i now have several sensebenders
    and have them working with temp and humunity
    only i want to add a doorsensor to the sensebender
    but how do i insert the doorcontact in the sensebender script without damaging it low power usage things

    can someone help me with this how i can merge the door sensor script into to sensebender script

    i hope you guys can help me out :)

    Thanks in andvance!

    Greetz Bob

    1x Raspberry With Domoticz V2.3011 [Linux version 4.1.6+]
    PiRack With
    -1X PiFace Digital
    -1X RaZberry - OpenZWave
    1X RFXtrx433 USB Firmware: 183
    5X Arduino: mysensors V1.5(including)

    • First DoorBel Project -> WORKS! :)
      6x ESP8266: easy firmware(Testing)
    DwaltD 1 Reply Last reply
    0
    • BigDogB BigDog

      hi guys

      i am new to mysensors been a domoticz user for some time now
      and have made the doorbell hack and works like a charm
      the gateway is also working
      i now have several sensebenders
      and have them working with temp and humunity
      only i want to add a doorsensor to the sensebender
      but how do i insert the doorcontact in the sensebender script without damaging it low power usage things

      can someone help me with this how i can merge the door sensor script into to sensebender script

      i hope you guys can help me out :)

      Thanks in andvance!

      Greetz Bob

      DwaltD Offline
      DwaltD Offline
      Dwalt
      wrote on last edited by Dwalt
      #2

      @BigDog What kind of door sensor do you have? Normally Open (NO) or Normally Closed(NC)? Adding a Reed Switch is fairly straightforward using the available interrupt on D3 and folding in the code from the binary switch example. Keeping it low power, however depends on your hardware.

      Most reed switches sold as window/door sensors are NO, which means the circuit is closed when the magnet is present. In the case of a door or window, this means the circuit is closed when the door or window are in their secure state, closed, and current is flowing. This is because window/door sensors were developed for wired alarm systems and having the current constant provided a additional level of security to detect tampering or wire breaks. For battery powered sensors, you cannot afford this constant current. A NC reed switch is preferable which means no current is flowing when the magnet is nearby (actually a little current flows with most NC switches but still acceptable for battery sensors, most off the shelf zwave wireless window/door sensors are NC).

      One problem with this system is most Asian vendors randomly switch the NC and NO terminology and you never know what you are buying. I can't speak for European vendors, they use that silly metric system.

      Veralite UI5 :: IBoard Ethernet GW :: MyS 1.5

      1 Reply Last reply
      1
      • BigDogB Offline
        BigDogB Offline
        BigDog
        wrote on last edited by
        #3

        i am going to try it when i am @ home
        had a busy weekend with "sinterklaas"coming and all of the other things
        and going to check of its a NC or NO is what i have got from aliexpress
        when i am finished i wil post the script becose this will be my first zelf modified script
        i realy want to know if what i have done is right and what can be better :) :)

        Greetz Bob

        1x Raspberry With Domoticz V2.3011 [Linux version 4.1.6+]
        PiRack With
        -1X PiFace Digital
        -1X RaZberry - OpenZWave
        1X RFXtrx433 USB Firmware: 183
        5X Arduino: mysensors V1.5(including)

        • First DoorBel Project -> WORKS! :)
          6x ESP8266: easy firmware(Testing)
        TheoLT 1 Reply Last reply
        0
        • BigDogB BigDog

          i am going to try it when i am @ home
          had a busy weekend with "sinterklaas"coming and all of the other things
          and going to check of its a NC or NO is what i have got from aliexpress
          when i am finished i wil post the script becose this will be my first zelf modified script
          i realy want to know if what i have done is right and what can be better :) :)

          Greetz Bob

          TheoLT Offline
          TheoLT Offline
          TheoL
          Contest Winner
          wrote on last edited by
          #4

          @BigDog were you able to finish this sensor? I've just received my sensorbender and would like to create a door sensor as well. Already found an NC reed relais (thanx for the tip @Dwalt ), just waiting for it to arrive.

          BigDogB 1 Reply Last reply
          0
          • TheoLT TheoL

            @BigDog were you able to finish this sensor? I've just received my sensorbender and would like to create a door sensor as well. Already found an NC reed relais (thanx for the tip @Dwalt ), just waiting for it to arrive.

            BigDogB Offline
            BigDogB Offline
            BigDog
            wrote on last edited by
            #5

            @TheoL Hi i have been waiting for the NC sensor aswel
            it is arived and stil needs the time to finish it :)
            been a little busy @ work But i keep you uptodate

            Greetz Bob

            1x Raspberry With Domoticz V2.3011 [Linux version 4.1.6+]
            PiRack With
            -1X PiFace Digital
            -1X RaZberry - OpenZWave
            1X RFXtrx433 USB Firmware: 183
            5X Arduino: mysensors V1.5(including)

            • First DoorBel Project -> WORKS! :)
              6x ESP8266: easy firmware(Testing)
            1 Reply Last reply
            1
            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
            • OpenHardware.io
            • Categories
            • Recent
            • Tags
            • Popular