How to req actuator status?



  • Hi,

    I currently have an actuator node working fine with MySensors MQTT Gateway. It is based on the Mysensors Example "SecureActuator".
    I'm able to turn on/off a LED via the commands:

    mosquitto_pub -h 192.168.2.180 -p 1883 -u mysensorsuser -P mysensorspassword -t mysensors-in/33/2/1/1/36 -m "1"
    mosquitto_pub -h 192.168.2.180 -p 1883 -u mysensorsuser -P mysensorspassword -t mysensors-in/33/2/1/1/36 -m "0"
    

    (pretty cool, also integrated with Google Home via NodeRed/NORA - I can say "Hey Google, turn on switch" and it turns on 😊 )

    Anyway, now, I want to request the status of the actuator. According to the Serial API documentation, the request string/topic should be something like 33/2/2/1/36/? where:

    33 - Node ID
    2 - Child ID
    2 - Req command
    1 - Ack required
    36 - V_LOCK_STATUS
    ? - Not sure what payload to specify in a REQ message. Putting it blank.

    This translates to the following MQTT command:

    mosquitto_pub -h 192.168.2.180 -p 1883 -u mysensorsuser -P mysensorspassword -t mysensors-in/33/2/2/1/36 -m "0"
    

    And I'm listening for the answer on mysensors-out/33/2/#:

    mosquitto_sub -h 192.168.2.180 -p 1883 -u mysensorsuser -P mysensorspassword -t mysensors-out/33/2/# -m ""
    

    I can see the node successfully receives the request and answers it, but it seems the payload goes empty:

    1551798 TSF:MSG:READ,0-0-33,s=2,c=3,t=16,pt=0,l=0,sg=1:
    1551804 SGN:SKP:MSG CMD=3,TYPE=16
    1551884 SGN:SKP:MSG CMD=3,TYPE=17
    1552144 TSF:MSG:SEND,33-33-0-0,s=255,c=3,t=17,pt=6,l=25,sg=1,ft=0,st=OK:<NONCE>
    1552152 SGN:NCE:XMT,TO=33
    1552211 TSF:MSG:READ,0-0-33,s=2,c=2,t=36,pt=0,l=0,sg=1:
    1552218 SGN:BND:NONCE=C00217CFDA07E9004AFB50A82FDBF9DF70694D160C143A7FFCAAAAAAAAAAAAAA
    1552338 SGN:BND:HMAC=34A3A557133449E969F16377121ECFCCDA8CDD7A86DD4A74B5B482F3A15623F7
    1552347 SGN:VER:OK
    1552349 TSF:MSG:ECHO REQ
    1552353 SGN:SKP:ECHO CMD=2,TYPE=36
    1552588 TSF:MSG:SEND,33-33-0-0,s=2,c=2,t=36,pt=0,l=0,sg=0,ft=0,st=OK:
    

    So, any idea what am I missing here?

    Cheers



  • might be related to that thread:
    https://forum.mysensors.org/topic/11427


Log in to reply
 

Suggested Topics

  • 2
  • 10
  • 18
  • 5
  • 1
  • 29
  • 3
  • 2

287
Online

9.9k
Users

10.4k
Topics

107.3k
Posts