Announcement

Collapse
No announcement yet.

Update HS device status

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

    Update HS device status

    I am trying to update a device status in NR, but I can get payload.status to work in a change node. It works correctly from an inject node but not a switch

    Any ideas?

    Click image for larger version  Name:	Ashampoo_Snap_Friday, 18 November 2022_18h7m45s.png Views:	0 Size:	16.9 KB ID:	1576373Click image for larger version  Name:	Ashampoo_Snap_Friday, 18 November 2022_18h8m40s.png Views:	0 Size:	18.5 KB ID:	1576374

    #2
    The error message is telling you msg.payload is not an Object. So it is likely a single variable such as a String or Number value. Since you are not using the data stored there, first Delete msg.payload and the Set it. See below, but use update as the topic if that is what you need.

    Click image for larger version

Name:	image.png
Views:	126
Size:	24.1 KB
ID:	1576385‚Äč
    Karl S
    HS4Pro on Windows 10
    1070 Devices
    56 Z-Wave Nodes
    104 Events
    HSTouch Clients: 3 Android, 1 iOS
    Google Home: 3 Mini units, 1 Pair Audios, 2 Displays

    Comment


      #3
      Ah, thank you Karl, that makes sense. I'll try it in the morning.

      Cheers,
      Scott

      Comment

      Working...
      X