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. Controllers
  3. Domoticz
  4. Domoticz using wrong message Type

Domoticz using wrong message Type

Scheduled Pinned Locked Moved Domoticz
2 Posts 1 Posters 1.2k Views 1 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.
  • J Offline
    J Offline
    Jan Gatzke
    wrote on last edited by Jan Gatzke
    #1

    I just switched from openHAB to Domoticz. Getting MS to run with it was straight forward and done in a few minutes. But now I am facing a really strange problem. I have a node with a LED dimmer and a door contact. At first everything seemed to work as expected. But then the dimmer stopped working correctly when setting it to on (100%) or off (0%). All values in between continued to work as before. Using the serial monitor I found out, that Domoticz stopped using message type 2 for these values and instead was using type 36 (V_LOCK_STATUS). After some testing restarting Domoticz seems to be the only solution for this problem. This happened twice to me. Did some one see this happening before?

    Here is the code:

    MyMessage msg(2,V_LOCK_STATUS);
    MyMessage dimmerMsg(0, V_DIMMER);
    
     gw.present( 0, S_DIMMER );
     gw.present(2, S_DOOR);
    

    In Domoticz the switches are configured as dimmer and door lock. I am using the latest stable of Domoticz and MySensors 1.5.

    Any ideas what's happening?

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jan Gatzke
      wrote on last edited by
      #2

      Ok, solved it myself. V_LOCK_STATUS is wrong in this case. The expected subtype for S_DOOR is V_TRIPPED. Changed it in the sketch and everything works as expected.

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


      16

      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