Announcement

Collapse
No announcement yet.

Node Red status node not always reporting HS device status

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

    Node Red status node not always reporting HS device status

    I have a few virtual switches which I am controlling from NR. Normally, they all work fine, I can control from HS or NR, and the status is normally correct in both. But recently some are a bit slow to change status, or do not report a changed status back to NR. I am using the status node to report the status to NR. I put a debug node on to see why, and after a deploy they status was updated. I have tried a few times, change the status in HS, nothing changing in NR. I move a debug node so I can deploy, and its updating. Very strange.

    #2
    I found the issue. I changed my NR to use the Nord VPN meshnet. It works fine but that causes problems HS communicating with NR. Maybe I have to but HS and NR on the same network for it to work.

    Comment


      #3
      Since NR is using a webhook, it should not be necessary to have them on the same network. However, the network does need to be reliable otherwise updates could be missed. Also, it appears that the webhook only sends updates on a device value change, much like the way the ASCII interface works.
      "if I have seen further [than others], it is by standing on the shoulders of giants." --Sir Isaac Newton (1675)

      Comment


        #4
        The thing is it is still updating some devices I believe. And it's definitely updating on a deploy. But changing NR back to its normal IP without the Nord VPN Mesh, its working as normal. Changing back its not. I will try tomorrow on Zerotier.

        Comment


          #5
          Do you have more than one HomeSeer Server configured in Node-RED and possibly different ones selected in your HomeSeer nodes?
          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


            #6
            Originally posted by ksum View Post
            Do you have more than one HomeSeer Server configured in Node-RED and possibly different ones selected in your HomeSeer nodes?
            No, just one. I have just tested with Zerotier. Exactly the same. Controlling HS via NR is instant. But status is not coming back via the status node. Devices I 'poll' via injecting msg.topic sync update. The way my dashboard is set up, I cannot really poll the switches, I rely on the status node to keep NR in sync. Could that be a bug in the HS NR implementation?

            Comment


              #7
              If the systems can ping each other with the information supplied to each (the "Server IP" setting in the HS Server configuration node in Node-RED and the webhook url in HomeSeer Settings) then I would look for a communication error. Maybe the connection is not kept constant in both directions?
              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


                #8
                Originally posted by ksum View Post
                If the systems can ping each other with the information supplied to each (the "Server IP" setting in the HS Server configuration node in Node-RED and the webhook url in HomeSeer Settings) then I would look for a communication error. Maybe the connection is not kept constant in both directions?
                I think I might have to change the webhook in HS4 to the Nord VPN or Zerotier IP. I have done that now but no change. I might need to restart HS4 for this to take effect. I will have to wait until tomorrow to try

                Comment


                  #9
                  I think it was the webhook. I restarted NR and everything seems to work. Needs a little more testing but it's too late for me now. I will do more testing tomorrow

                  Comment


                    #10
                    Everything is working as it should. Logically the webhook needs to be changed to the same IP as NR...

                    Comment


                      #11
                      I'm facing more or less the same. I have a device in Node-red which has some power measuring. I want to have the values stored in influxDb I have the flow working but the device is not updating its value. Only when deployed the first time. Did I forget something here? I can see the value (once) in the database. So the HomeSeer device is the problem. The HomeSeer server and Nod-red are on two different devices in the same network.

                      HTML Code:
                      [{"id":"9cf79844.811da8","type":"tab","label":"InfluxDB","disabled":false,"info":""},{"id":"fa7003.cd5af","type":"influxdb out","z":"9cf79844.811da8","influxdb":"c3d410e56f3ec069","name":"","measurement":"watt","precision":"m","retentionPolicy":"","database":"","retentionPolicyV18Flux":"","org":"","bucket":"","x":1000,"y":200,"wires":[]},{"id":"22509df2.cebb8a","type":"debug","z":"9cf79844.811da8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":570,"y":100,"wires":[]},{"id":"b6a82334.e36db","type":"debug","z":"9cf79844.811da8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":990,"y":280,"wires":[]},{"id":"66ac6f36e10b329d","type":"hs-device","z":"9cf79844.811da8","name":"Boven Badkamer Thermostat Watts 4","device":"766","server":"367ff7807724edc9","feature":"775","reportonstartup":true,"x":210,"y":160,"wires":[["22509df2.cebb8a","83eefe53126f954b"]]},{"id":"41fc126c7222a379","type":"function","z":"9cf79844.811da8","name":"get value from thermostat","func":"// msg.topic = 'currentTemp';\nmsg.payload = msg.payload.value;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":650,"y":360,"wires":[["fa7003.cd5af","b6a82334.e36db"]]},{"id":"83eefe53126f954b","type":"json","z":"9cf79844.811da8","name":"","property":"payload","action":"obj","pretty":false,"x":490,"y":200,"wires":[["41fc126c7222a379"]]},{"id":"c3d410e56f3ec069","type":"influxdb","hostname":"192.168.0.39","port":"8086","protocol":"http","database":"homeseer_data","name":"homeseer_data","usetls":false,"tls":"","influxdbVersion":"1.x","url":"http://localhost:8086","rejectUnauthorized":true},{"id":"367ff7807724edc9","type":"hs-server","name":"HomeSeer Server","host":"192.168.0.39","port":"80"}]
                      Click image for larger version

Name:	Scherm­afbeelding 2022-12-24 om 14.45.26.png
Views:	204
Size:	57.3 KB
ID:	1582963

                      Comment


                        #12
                        Originally posted by nl_user View Post
                        I'm facing more or less the same. I have a device in Node-red which has some power measuring. I want to have the values stored in influxDb I have the flow working but the device is not updating its value. Only when deployed the first time. Did I forget something here? I can see the value (once) in the database. So the HomeSeer device is the problem. The HomeSeer server and Nod-red are on two different devices in the same network.
                        This is usually a symptom of a mis-configured webhook. Can you post a screenshot of the webhook setup? Make sure it is pointing to the IP address of NR.


                        "if I have seen further [than others], it is by standing on the shoulders of giants." --Sir Isaac Newton (1675)

                        Comment


                          #13
                          I'm using the HA node-red add-on. The hook I have in HomeSeer is:

                          Click image for larger version

Name:	Scherm­afbeelding 2022-12-24 om 17.32.06.png
Views:	145
Size:	95.6 KB
ID:	1582980


                          Click image for larger version

Name:	Scherm­afbeelding 2022-12-24 om 17.30.13.png
Views:	135
Size:	41.7 KB
ID:	1582981

                          So the second IP is the HomeSeer server. The First ip is the HA server (local network)

                          Comment


                            #14
                            Just so I understand, you have NR running on both .30 and .31?
                            "if I have seen further [than others], it is by standing on the shoulders of giants." --Sir Isaac Newton (1675)

                            Comment


                              #15
                              No it is running on 31 HomeSeer is on 30. Can I just remove the hook for 30?

                              Comment

                              Working...
                              X