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. Troubleshooting
  3. Simple BinarySwitchSensor configured as S_DOOR sends itself as S_LIGHT

Simple BinarySwitchSensor configured as S_DOOR sends itself as S_LIGHT

Scheduled Pinned Locked Moved Troubleshooting
3 Posts 3 Posters 1.7k 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.
  • L Offline
    L Offline
    lasicmk2
    wrote on last edited by
    #1

    Hi,

    i've made simple door/window sensor with example form newest (1.5 API ver).
    On serial out in gateway i can receive all messages ok, but sensor sends messages as Light Sensor?

    in example,

    on the top of file there is:

    "MyMessage msg(CHILD_ID,V_TRIPPED);"

    in setup() we have:

    "gw.present(CHILD_ID, S_DOOR); "

    and next everything like in example.

    When i connect UNO as gateway to Domoticz (running on RPI) it is presented as "Lighting 2" sensor type.
    I can change it to double arrows that is getting gray or red depending on its state but when i look at SERIAL OUT from GW i have:

    2;4;1;0;16;0

    and translating it from API wiki page:

    node-id: 2;
    child-sensor-id: 4;
    message-type: 1;
    ack: 0;
    sub-type: 16;
    payload 0; \n

    SUB TYPE 16 is:
    S_LIGHT_LEVEL 16 Light sensor V_LIGHT_LEVEL (uncalibrated percentage), V_LEVEL (light level in lux)

    and S_DOOR should be "0" in my case.

    Anyone have an idea whether it have impact on "Lighting 2" sensor type in Domoticz and why it isn't "0" as Seriap API says?

    BR
    Adam

    1 Reply Last reply
    0
    • S Offline
      S Offline
      stokni
      wrote on last edited by
      #2

      Hi,

      Did you ever figure this out? just started working with it, have sensor with 3 door nodes now, but all show up as Lightning 2 in Domoticz.

      Sensor is sending subtype 16 instead of 0

      1 Reply Last reply
      0
      • AWIA Offline
        AWIA Offline
        AWI
        Hero Member
        wrote on last edited by
        #3

        Domoticz treats all 'binary' devices the same and shows them as "lighting 2" which is an internal Domoticz type.
        In the Web interface you can set it to any specific type. So all the functionally (and more) for a door type is there

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


        15

        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