Announcement

Collapse
No announcement yet.

I want to control a homeseer device from a Node Red flow

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

    I want to control a homeseer device from a Node Red flow

    I am trying to use a change node in Node Red (4.0 running in Docker on Win 10) to turn a HS device on. If I use a inject node, with msg.topic 'control' and msg.payload.value '100' to turn the device on it works. But I want to trigger it from a existing flow. In the flow, a trigger node sends a message with 'timeout'. Then I am trying to use a change node to send msg.topic 'control' and msg.payload.value '100', but this results in a error reported by the change node
    msg : string[53]
    "Cannot set property of non-object type: payload.value"​
    Attached Files

    #2
    Try changing payload.value to payload
    HS4Pro on a Raspberry Pi4
    54 Z-Wave Nodes / 21 Zigbee Devices / 108 Events / 767 Devices
    Plugins: Z-Wave / Zigbee Plus / EasyTrigger / AK Weather / OMNI

    HSTouch Clients: 1 Android

    Comment


      #3
      I tried that, no error, but the HS device does not switch on. (I checked, 100 is on)

      The debug node is showing:
      control : msg.payload : number
      100​

      That looks ok I think but why doesnt the HS device not change ?

      Comment


        #4
        It looks like it wants an object - from the docs:

        Click image for larger version

Name:	image.png
Views:	141
Size:	29.0 KB
ID:	1567864
        HS4Pro on a Raspberry Pi4
        54 Z-Wave Nodes / 21 Zigbee Devices / 108 Events / 767 Devices
        Plugins: Z-Wave / Zigbee Plus / EasyTrigger / AK Weather / OMNI

        HSTouch Clients: 1 Android

        Comment


          #5
          Originally posted by rmasonjr View Post
          It looks like it wants an object - from the docs:

          Click image for larger version  Name:	image.png Views:	0 Size:	29.0 KB ID:	1567864
          Nope, that doesnt work either. I tried just the msg.payload {"Value":"100"}, as well as msg.topic 'control' and msg. payload {"Value":"100"}

          The debug nose shows:
          26/09/2022, 18:14:13node: debug 1
          msg.payload : Object
          { Value: "100" }​

          I just changed it to
          { value: "100" }​

          Now its working ! It did not like the capital V, needs to be v...

          Comment

          Working...
          X