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. Feature Requests
  3. Requesting a garage door sensor type.

Requesting a garage door sensor type.

Scheduled Pinned Locked Moved Feature Requests
21 Posts 6 Posters 6.0k Views 5 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.
  • dbemowskD dbemowsk

    @172pilot I have some code that worked most of the time. I would occasionally get some false obstruction notifications, but other than that it worked well for opening and closing the door. The obstruction issues could possibly have been from the way my node was set up and not from the code. I have a thread that I started to document the project. My latest 2.0 code that I used with Domotics is posted at the end of the thread. I had another thread going where I posted some icon files that I created for Domoticz. One of the icon sets that I did was for my garage door controller. I didn't have one for the door position, but it wouldn't be that hard to do one for that. Here is the link to that. The way I had my nightly routine set up in Domotics was that at 11PM every night the system would check to see if the door was open, and close it if it was. Between 11PM and 4AM I had a constant check on the door and if it was open, it would close it again within a minute for security. I didn't do much with the obstruction other than to send push notifications to my phone that there was an obstruction event.

    I have since switched to a Vera Plus controller and am working on converting things for that. I was planning on re-visiting this thread a little bit before I saw your post here. Having a dedicated garage door sensor type and node object in Vera for a garage door would be really nice. My thinking is that the Vera device would have the opener control and door position combined into one device definition file. That is still a big work in progress though.

    RoushRS3R Offline
    RoushRS3R Offline
    RoushRS3
    wrote on last edited by
    #12

    @dbemowsk
    Hi there I built a garage door opener sensor using the "Relay Actuator" sensor from the "Built" section , which is perfect for me. My issue is that I want the relay to activate for half a second to a second and than deactivate, and the existing code on the Relay Actuator Sensor would have to be modified a bit and that's where I get stuck, any input would be greatly appreciated.
    Thanks

    172pilot1 1 Reply Last reply
    0
    • dbemowskD dbemowsk

      @172pilot I have some code that worked most of the time. I would occasionally get some false obstruction notifications, but other than that it worked well for opening and closing the door. The obstruction issues could possibly have been from the way my node was set up and not from the code. I have a thread that I started to document the project. My latest 2.0 code that I used with Domotics is posted at the end of the thread. I had another thread going where I posted some icon files that I created for Domoticz. One of the icon sets that I did was for my garage door controller. I didn't have one for the door position, but it wouldn't be that hard to do one for that. Here is the link to that. The way I had my nightly routine set up in Domotics was that at 11PM every night the system would check to see if the door was open, and close it if it was. Between 11PM and 4AM I had a constant check on the door and if it was open, it would close it again within a minute for security. I didn't do much with the obstruction other than to send push notifications to my phone that there was an obstruction event.

      I have since switched to a Vera Plus controller and am working on converting things for that. I was planning on re-visiting this thread a little bit before I saw your post here. Having a dedicated garage door sensor type and node object in Vera for a garage door would be really nice. My thinking is that the Vera device would have the opener control and door position combined into one device definition file. That is still a big work in progress though.

      172pilot1 Offline
      172pilot1 Offline
      172pilot
      wrote on last edited by
      #13

      @dbemowsk I'm on a VeraLite controller, but have been thinking of switching to the plus too.. Having the object type defined in MySensors and Vera would be very nice, but that is beyond anything I've done in either environment.. I'd love to learn though, so if there's any way to contribute, I'm all ears.. forcing garage door functionality into a 'switch' type object just doesn't quite fit the bill..

      One difference between your concept and mine I guess is that my close door timer logic is built into the sensor itself... I didn't want any communication problem with a controller to accidentally leave the garage open. If the sensor is working, it is self sufficient.. One other thing I didn't mention is that I've got an RFID reader on it so that I can open the door with an RFID token.. Not sure how or if this would fit in to a garage door object.. In a perfect world, I'd love to manage the list of active tokens on the host side, so it might make sense to have the RFID section defined as a separate device that then remotely triggers a garage open event..

      All this activity on the thread has inspired me to bring back up my old code and check it out after 3 months of walking away, and I think I may have found my reboot problem - I think I'm using the generic softwareserial to read the RFID reader.. I think there's a specific ESP SoftSerial module that may work better.. Maybe I'm tripping the WDT.

      If there's a place to post my code for comment or inclusion into someone else's code, I'd be happy to do so.. It's messy but maybe having others look at it will help, and/or someone who is more famliar with the MySensors stuff can help put in the hooks to the controller. Right now, I have removed all the MySensors stuff for troubleshooting my basic functionality and reboots..

      dbemowskD 1 Reply Last reply
      0
      • RoushRS3R RoushRS3

        @dbemowsk
        Hi there I built a garage door opener sensor using the "Relay Actuator" sensor from the "Built" section , which is perfect for me. My issue is that I want the relay to activate for half a second to a second and than deactivate, and the existing code on the Relay Actuator Sensor would have to be modified a bit and that's where I get stuck, any input would be greatly appreciated.
        Thanks

        172pilot1 Offline
        172pilot1 Offline
        172pilot
        wrote on last edited by
        #14

        @RoushRS3 said:

        @dbemowsk
        Hi there I built a garage door opener sensor using the "Relay Actuator" sensor from the "Built" section ,

        Yeah.. With that, it's just a device to open/close your door, right? Can you use that to detect the state of the door? (open/closed) And as for the button, yeah.. I haven't looked hard, but I think a "doorbell' kind of device object would be perfect, but I haven't seen that..

        Ultimately, a full implementation of a garage door object would be awesome.. I just wish I knew where to start..

        RoushRS3R 1 Reply Last reply
        0
        • 172pilot1 172pilot

          @dbemowsk I'm on a VeraLite controller, but have been thinking of switching to the plus too.. Having the object type defined in MySensors and Vera would be very nice, but that is beyond anything I've done in either environment.. I'd love to learn though, so if there's any way to contribute, I'm all ears.. forcing garage door functionality into a 'switch' type object just doesn't quite fit the bill..

          One difference between your concept and mine I guess is that my close door timer logic is built into the sensor itself... I didn't want any communication problem with a controller to accidentally leave the garage open. If the sensor is working, it is self sufficient.. One other thing I didn't mention is that I've got an RFID reader on it so that I can open the door with an RFID token.. Not sure how or if this would fit in to a garage door object.. In a perfect world, I'd love to manage the list of active tokens on the host side, so it might make sense to have the RFID section defined as a separate device that then remotely triggers a garage open event..

          All this activity on the thread has inspired me to bring back up my old code and check it out after 3 months of walking away, and I think I may have found my reboot problem - I think I'm using the generic softwareserial to read the RFID reader.. I think there's a specific ESP SoftSerial module that may work better.. Maybe I'm tripping the WDT.

          If there's a place to post my code for comment or inclusion into someone else's code, I'd be happy to do so.. It's messy but maybe having others look at it will help, and/or someone who is more famliar with the MySensors stuff can help put in the hooks to the controller. Right now, I have removed all the MySensors stuff for troubleshooting my basic functionality and reboots..

          dbemowskD Offline
          dbemowskD Offline
          dbemowsk
          wrote on last edited by
          #15

          @172pilot Mine will detect the state of the door. I tapped into the internal limit switches on my opener to do the detection. That part works well. I like your idea of putting the timer logic on the node itself, but do you have a way to set that from Vera? If not, I would have to reprogram the node if I ever wanted to change that. I do get not wanting to have a controller communication issue not close the door as I have experienced this.

          Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
          Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

          172pilot1 1 Reply Last reply
          0
          • dbemowskD dbemowsk

            @172pilot Mine will detect the state of the door. I tapped into the internal limit switches on my opener to do the detection. That part works well. I like your idea of putting the timer logic on the node itself, but do you have a way to set that from Vera? If not, I would have to reprogram the node if I ever wanted to change that. I do get not wanting to have a controller communication issue not close the door as I have experienced this.

            172pilot1 Offline
            172pilot1 Offline
            172pilot
            wrote on last edited by
            #16

            @dbemowsk said:

            @172pilot I like your idea of putting the timer logic on the node itself, but do you have a way to set that from Vera? If not, I would have to reprogram the node if I ever wanted to change that.

            I have the timer hardcoded in the node to 3 minutes, but I have a button that disables the timer until the next time the door is closed, which is how the one I've been using for the last 6 years works, but the new version I'm working on, I'm thinking of also making it so that if I manually stop the door between the limits, it wont start the timer..

            dbemowskD 1 Reply Last reply
            0
            • 172pilot1 172pilot

              @dbemowsk said:

              @172pilot I like your idea of putting the timer logic on the node itself, but do you have a way to set that from Vera? If not, I would have to reprogram the node if I ever wanted to change that.

              I have the timer hardcoded in the node to 3 minutes, but I have a button that disables the timer until the next time the door is closed, which is how the one I've been using for the last 6 years works, but the new version I'm working on, I'm thinking of also making it so that if I manually stop the door between the limits, it wont start the timer..

              dbemowskD Offline
              dbemowskD Offline
              dbemowsk
              wrote on last edited by
              #17

              @172pilot So you don't have the node set to close the door at a certain time of the day?

              Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
              Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

              1 Reply Last reply
              0
              • 172pilot1 Offline
                172pilot1 Offline
                172pilot
                wrote on last edited by 172pilot
                #18

                @dbemowsk said:

                @172pilot So you don't have the node set to close the door at a certain time of the day?

                Nope.. My current system was an old arduino uno based thing that I only did for the RFID and auto-close timer.. I've never successfully gotten one integrated with Vera or MySensors so it really hasn't been an option.. I probably will once I get all this done.. Hopefully as a Vera Scheduled event

                1 Reply Last reply
                0
                • 172pilot1 172pilot

                  @RoushRS3 said:

                  @dbemowsk
                  Hi there I built a garage door opener sensor using the "Relay Actuator" sensor from the "Built" section ,

                  Yeah.. With that, it's just a device to open/close your door, right? Can you use that to detect the state of the door? (open/closed) And as for the button, yeah.. I haven't looked hard, but I think a "doorbell' kind of device object would be perfect, but I haven't seen that..

                  Ultimately, a full implementation of a garage door object would be awesome.. I just wish I knew where to start..

                  RoushRS3R Offline
                  RoushRS3R Offline
                  RoushRS3
                  wrote on last edited by
                  #19

                  @172pilot
                  yes it is a sensor/device to open and close, which is controlled via my Vera Lite Controller. I'm using the Door-Window Sensor (with simple Reed Switch) to detect the Door Status, and that works for me, but my issue is with the Relay-Actuator Sensor , it needs tot turn on and then immediately turn off, and it does not do that. I can have it turn on and then immediately turn off using a Scene on my Vera Controller, but it would me way more reliable if it was written in the code. We need the Gods of Mysensors Website to add it to the code.

                  dbemowskD 1 Reply Last reply
                  0
                  • mfalkviddM mfalkvidd

                    @Redguy how about using V_PERCENTAGE like in this roller shutter?

                    RoushRS3R Offline
                    RoushRS3R Offline
                    RoushRS3
                    wrote on last edited by
                    #20

                    @RoushRS3 said:

                    Hi there I built a garage door opener sensor using the "Relay Actuator" sensor from the "Built" section , which is perfect for me. My issue is that I want the relay to activate for half a second to a second and than deactivate, but the existing code on the Relay Actuator Sensor would have to be modified a bit and that's where I get stuck, any input would be greatly appreciated.
                    Thanks

                    1 Reply Last reply
                    0
                    • RoushRS3R RoushRS3

                      @172pilot
                      yes it is a sensor/device to open and close, which is controlled via my Vera Lite Controller. I'm using the Door-Window Sensor (with simple Reed Switch) to detect the Door Status, and that works for me, but my issue is with the Relay-Actuator Sensor , it needs tot turn on and then immediately turn off, and it does not do that. I can have it turn on and then immediately turn off using a Scene on my Vera Controller, but it would me way more reliable if it was written in the code. We need the Gods of Mysensors Website to add it to the code.

                      dbemowskD Offline
                      dbemowskD Offline
                      dbemowsk
                      wrote on last edited by
                      #21

                      @RoushRS3 said:

                      it needs tot turn on and then immediately turn off, and it does not do that.

                      If you look at the code for my garage door node, mine does that. Everything for that is handled by the node This is the code in the main loop that does that:

                        //If the relay is on, shut it off
                        if ( digitalRead( DOOR_ACTUATOR_RELAY ) == 1) {
                          relayOff();                       
                        }
                      

                      In the relayOff method the relay is shut off and then informs the controller that it has been shut off:

                      /**
                       * relayOff - Used to turn off the door opener relay after the TOGGLE_INTERVAL
                       */
                      void relayOff() {
                      
                        digitalWrite( DOOR_ACTUATOR_RELAY, RELAY_OFF );
                        //Added this to tell the controller that we shut off the relay
                        send( msgOpener.set(0) );
                        
                      } //End relayOff
                      

                      So on the controller, you should see the switch turn on, and then immediately shut off.

                      Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                      Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

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


                      14

                      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