Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. lasicmk2
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    lasicmk2

    @lasicmk2

    0
    Reputation
    2
    Posts
    299
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    lasicmk2 Follow

    Best posts made by lasicmk2

    This user hasn't posted anything yet.

    Latest posts made by lasicmk2

    • RE: [Tutorial] Raspberry Pi NRF24l01 direct connection

      Hi

      the easiest way is to run directly in background:

      nohup sudo python script.py &
      

      or - run script as a service and use it as other services, but above is the easiest.

      Adam

      posted in Controllers
      lasicmk2
      lasicmk2
    • Simple BinarySwitchSensor configured as S_DOOR sends itself as S_LIGHT

      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

      posted in Troubleshooting
      lasicmk2
      lasicmk2