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. General Discussion
  3. Which sensor type to use for my gate controller?

Which sensor type to use for my gate controller?

Scheduled Pinned Locked Moved General Discussion
4 Posts 3 Posters 770 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.
  • P Offline
    P Offline
    Peter Marriott
    wrote on last edited by
    #1

    Hi,

    I'm really new to MySensors, and the first sensors I want are in my gate controller. This controls two swinging gates in my driveway. The controller is pretty well documented and will provide me with a very easy way to get the following 4 states:
    OPEN
    CLOSED
    OPENING
    CLOSING

    I couldn't find a sensor type that would match these states very well? What would be the best way to go about this?

    (I am familiar with Arduino coding, just not which Sensor types to use).

    Thanks

    1 Reply Last reply
    0
    • rejoe2R Offline
      rejoe2R Offline
      rejoe2
      wrote on last edited by
      #2

      Imo the "right choice" also depends a little on your controller software. As a first try, I'd go for S_COVER; this allows direction info and percentages. You may combine it with a S_DOOR type for direct indication of open/closed (in case of pure S_COVER derive info from percentage values).

      Have a look at https://www.mysensors.org/download/serial_api_20 on what MySensors offers and also a look how your controller handles the different types.

      Controller: FHEM; MySensors: 2.3.1, RS485,nRF24,RFM69, serial Gateways

      P 1 Reply Last reply
      1
      • rejoe2R rejoe2

        Imo the "right choice" also depends a little on your controller software. As a first try, I'd go for S_COVER; this allows direction info and percentages. You may combine it with a S_DOOR type for direct indication of open/closed (in case of pure S_COVER derive info from percentage values).

        Have a look at https://www.mysensors.org/download/serial_api_20 on what MySensors offers and also a look how your controller handles the different types.

        P Offline
        P Offline
        Peter Marriott
        wrote on last edited by
        #3

        @rejoe2 Thanks! I'll start there as see how I go. I am using Home Assistant and it has support for MySensors Covers.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          shabba
          wrote on last edited by
          #4

          I use a reed switch on my gates - when they are in contact the gate is closed.
          You could put more at the open points for fully open but I only cared about closed or not. I assumed for 20 secs after they started opening they are opening else they are open.

          When I close the gate I assume closing until the reed switch shows closed - of course opening the gate during closing will reopen (I also have IR to detect car so gate will not close onto a car).

          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.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