Announcement

Collapse
No announcement yet.

How to retrieve a value after a Node containing a status

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

  • ksum
    replied
    I would remove the first to "Set" items from the bottom two change nodes. You already make those settings in the top one and you are then setting msg.oldpayload to what you are passing out of the previous change nodes. Otherwise this should be setting the HomeSeer devices to what you are setting msg.payload.status to in each change node. Connect a debug node showing the complete message to each Change node and make sure each is doing what you expect.

    Leave a comment:


  • John245
    replied
    Originally posted by ksum View Post
    Do you want the status of the blue nodes while in the yellow node? Something needs to be placed before the yellow node to do this. What is your trigger to do what you are trying to accomplish as this could change what is used?
    I want the status of the yellow Nodes in the Blue (HS) Nodes. If th consecutive Nodes contains values it is going well. However in case there is a Yellow nod from which I want to capture the status (as it is text) the next HS Node will show the status instead of the value.

    To be clear the issue is not to get the info in the HS Node. the issue is to get the value into a Node after the previous Node is a status Node. Of Course I can connect the Nodes in another way to mitigate the issue, but I like to connect the yellow Nodes for clarity.

    For the Nodes containing a value I use
    Click image for larger version

Name:	Value.PNG
Views:	106
Size:	61.6 KB
ID:	1469516
    For the Nodes containing text I use
    Click image for larger version

Name:	Status.PNG
Views:	109
Size:	57.9 KB
ID:	1469515

    ---
    John

    Leave a comment:


  • ksum
    replied
    Do you want the status of the blue nodes while in the yellow node? Something needs to be placed before the yellow node to do this. What is your trigger to do what you are trying to accomplish as this could change what is used?

    Leave a comment:


  • John245
    started a topic How to retrieve a value after a Node containing a status

    How to retrieve a value after a Node containing a status


    How do I get the value of a Node after a Node with a status.

    "Dag+1 windkracht" should be a value.


    Click image for larger version

Name:	Weer.PNG
Views:	139
Size:	158.3 KB
ID:	1469400


    [{"id":"323a88b6.821288","type":"change","z":"126a1381.26f28c ","name":"Dag+1 maximumtemperatuur (Max)","rules":[{"t":"set","p":"topic","pt":"msg","to":"update","tot":"str"} ,{"t":"set","p":"oldpayload","pt":"msg","to":"payload","tot" :"msg"},{"t":"set","p":"payload.value","pt":"msg","to":"payl oad.buienradar.verwachtingMeerdaags["0"].maxtempmax","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x" :520,"y":1600,"wires":[["828dd5d9.381068","daec88c7.ac3bd8"]]},{"id":"828dd5d9.381068","type":"change","z":"126a1381.26f2 8c","name":"Dag+1 windrichting","rules":[{"t":"set","p":"topic","pt":"msg","to":"update","tot":"str"} ,{"t":"set","p":"oldpayload","pt":"msg","to":"payload","tot" :"msg"},{"t":"set","p":"payload.status","pt":"msg","to":"pay load.buienradar.verwachtingMeerdaags["0"].windrichting","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x" :470,"y":1660,"wires":[["c95eb6bf.103158","9a0336d2.d19288"]]},{"id":"c95eb6bf.103158","type":"change","z":"126a1381.26f2 8c","name":"Dag+1 windrkracht","rules":[{"t":"set","p":"topic","pt":"msg","to":"update","tot":"str"} ,{"t":"set","p":"oldpayload","pt":"msg","to":"payload","tot" :"msg"},{"t":"set","p":"payload.value","pt":"msg","to":"payl oad.buienradar.verwachtingMeerdaags["0"].windkracht","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x" :470,"y":1720,"wires":[["288c7b69.8ca714","2ee191ed.52f18e"]]},{"id":"daec88c7.ac3bd8","type":"hs-device","z":"126a1381.26f28c","name":"Buienradar Dag+1 Day+1 Minimumtemperatuur (Max)","device":"4285","server":"649b964f.328f48","feature": "4292","reportonstartup":false,"x":900,"y":1600,"wires":[[]]},{"id":"9a0336d2.d19288","type":"hs-device","z":"126a1381.26f28c","name":"Buienradar Dag+1 Day+1 Windrichting","device":"4285","server":"649b964f.328f48","fe ature":"4295","reportonstartup":false,"x":850,"y":1660,"wire s":[[]]},{"id":"2ee191ed.52f18e","type":"hs-device","z":"126a1381.26f28c","name":"Buienradar Dag+1 Day+1 Windkracht","device":"4285","server":"649b964f.328f48","feat ure":"4296","reportonstartup":false,"x":850,"y":1720,"wires" :[[]]},{"id":"649b964f.328f48","type":"hs-server","name":"TEAPHomeSeerServer01","host":"192.168.1.99", "port":"80"}]

    ---
    John
Working...
X