Domoticz using wrong message Type



  • 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?


    Log in to reply
     


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


Log in to reply
 

1 out of 2

Suggested Topics


  • Troubleshooting   30 Mar 2014, 07:20

    5

  • Domoticz   7 Feb 2023, 20:55

    1
  • 3

  • Domoticz   21 Jun 2022, 20:48

    8

  • Domoticz   28 Feb 2022, 03:39

    4

  • Domoticz   7 Aug 2023, 14:33

    2

0
Online

11.5k
Users

11.1k
Topics

112.8k
Posts