Announcement

Collapse
No announcement yet.

Status and value = -1 (Unknown)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Status and value = -1 (Unknown)

    I'm struggling av bit with a device being set to value -1, even when payload is either 0 or 1.
    What am I doing wrong?
    Click image for larger version

Name:	mcsmqtt1.PNG
Views:	186
Size:	79.4 KB
ID:	1323377

    Click image for larger version

Name:	mcsmqtt2.PNG
Views:	97
Size:	10.5 KB
ID:	1323376

    Click image for larger version

Name:	mcsmqtt4.PNG
Views:	108
Size:	19.8 KB
ID:	1323375

    Click image for larger version

Name:	mcsmqtt3.PNG
Views:	96
Size:	36.0 KB
ID:	1323374

    #2
    You are using the same topic for receive and publish which could result in circular logic (i.e. vacuum publishes carpet_mode, HS receives and then publishes carpet_mode, vacuum receives and then responds with status and the cycle repeats). The debug log which is enabled from General tab will have more details to track down things like this. The file is placed in \data\mcsmqtt.

    Otherwise your setup looks to be good and does not provide any insight.

    Another possibility is that something else is writing to device 1839.

    Comment


      #3
      Originally posted by Michael McSharry View Post
      You are using the same topic for receive and publish which could result in circular logic (i.e. vacuum publishes carpet_mode, HS receives and then publishes carpet_mode, vacuum receives and then responds with status and the cycle repeats).
      No, there are two different topics?
      Sub: vacuum/status/carpet_mode:enable
      Pub: vacuum/control/carpet_mode

      I'll enable debugging and test some more after the weekend.

      Comment


        #4
        The :enable is part of the payload. The actual topic is the same in both cases. Will wait for your testing.

        Comment


          #5
          Originally posted by Michael McSharry View Post
          The :enable is part of the payload. The actual topic is the same in both cases. Will wait for your testing.
          But still, vacuum/status vs vacuum/control...

          Comment


            #6
            My mistake, you are correct about the topic.

            Comment

            Working...
            X