Announcement

Collapse
No announcement yet.

Node-RED reads HomeSeer updates on flow deploy/restart-flows then pauses

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

    Node-RED reads HomeSeer updates on flow deploy/restart-flows then pauses

    I have a set of flows which read status from set of devices populated by the Arduino Plugin. They are updating fine in Homeseer but the Node RED installation and associated dashboard has stopped automatically updating. The flows will repopulate if I manually hit redeploy or restart flows but they wont update after that. I have checked the webhook is set up on the HomeSeer Server (10.1.1.100) and the Node-RED server running on a Raspberry Pi3 (10.1.1.150) has access and can see the available devices when setting up a new HS Device node.
    The two screen captures below were taken 10 minutes apart, the HS screen been the first one and the Node RED flows 10 minutes later. You can see that the HS screen is correctly reporting the arduino uptime, in this case I read the minutes device (59 minutes) in Node-RED.
    The Node-Red flows shows the data at the point I restarted the flows which in this case was when the arduino had been up for 56 minutes even though the screen capture was 13 minutes after that.

    Any suggestions as what could be causing this?

    Click image for larger version  Name:	HomeSeer Screen.jpg Views:	0 Size:	58.3 KB ID:	1520157Click image for larger version  Name:	Node-RED flows.jpg Views:	0 Size:	64.5 KB ID:	1520158
    Click image for larger version

Name:	Node-RED Dashboard.jpg
Views:	169
Size:	54.6 KB
ID:	1520160
    Attached Files
    Last edited by Fatlab; January 12, 2022, 06:26 AM. Reason: Added additional screen shot

    #2
    Make sure you didn't miss out a slash // in your webhook and if you set up a User and Password in the HSNodes, remove that then in HS main network settings, local users don't require to login...

    Eman.
    TinkerLand : Life's Choices,"No One Size Fits All"

    Comment


      #3
      Originally posted by Eman View Post
      Make sure you didn't miss out a slash // in your webhook and if you set up a User and Password in the HSNodes, remove that then in HS main network settings, local users don't require to login...

      Eman.
      Eman, I had the webhook string correct with http://10.1.1.150:1880/homeseer/webhook and no user or password set as the Node-RED device is on 10.1.1.150. I've just rebuilt the Node-RED Pi3 from scratch also set up the flows from scratch and the bloody thing is doing exactly the same thing.

      I've not touched the HS side, other than the webhook is there anything else to check?

      Dave

      Comment


        #4
        ksum can see what I can't see... can you read through his thread here : https://forums.homeseer.com/forum/ho...-with-homeseer There may be some clues there.

        Eman.
        TinkerLand : Life's Choices,"No One Size Fits All"

        Comment


          #5
          Originally posted by Fatlab View Post

          Eman, I had the webhook string correct with http://10.1.1.150:1880/homeseer/webhook and no user or password set as the Node-RED device is on 10.1.1.150. I've just rebuilt the Node-RED Pi3 from scratch also set up the flows from scratch and the bloody thing is doing exactly the same thing.

          I've not touched the HS side, other than the webhook is there anything else to check?

          Dave
          What you describe is the typical symptoms for the webhook not working correctly. When you deploy a flow the hs contrib polls homeseer for the device status so the webhook is not used in this case, it is only used by homeseer to post device updates to node-red.

          Try to restart HS4, then force a device update, and check the HS logs for an error with the webhook.
          If there is an error, try to disable any firewall between your HS4 machine and your Node-Red machine

          Also, if you have installed Node-Red as part of home assistant, it could be the problem, read the end of this thread: https://forums.homeseer.com/forum/ho...79#post1498379

          Comment


            #6
            Thanks both. Spud, you’ve and a question that was at the back of my mind re. the initial update working but not the regular updates. I have recently spun up Home Assistant on a separate Pi4 but it’s not linked to Node-RED or HS yet.

            Comment


              #7
              After trawling through all of the other Node-RED integration threads I saw one about having duplicate HS-SERVER configuration nodes in Node-RED. Sure enough I had two entries for the homeseer server SILENT PC. Both had the correct ip address and port number but each had 10 and 9 associated nodes. That matched to the two flows I had created by importing them from previous installations.
              I've deleted both entries which then showed all 19 homeseer devices as incorrectly configured, created a new server entry and have manually configured each of the device and feature configurations. Fingers crossed it looks like it's updating in real time now.

              Comment

              Working...
              X