Announcement

Collapse
No announcement yet.

React to device changes

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

    React to device changes

    I've tested the Node Red integration a little. But I have yet to figure out how I can react in Node Red to device changes in HomeSeer.

    I would like to have the event logic in Node Red rather than in HomeSeer. Is this possible? Or would I have to poll values on a regular interval to detect changes?

    #2
    HS devices sent updates in node red everytime they change in Homeseer so no need for polling.

    Sent from my SM-G960U1 using Tapatalk

    Comment


      #3
      Yes, that would be great! But how do I achieve this? I'm only able to get the values once I deploy the flow.

      Here's an example flow. The upper device is a Zigbee bulb, and the second one is a Z-Wave wallplug. Both of them behaves the same way in Node Red, by only reading the value of the device once the flow deploys.

      Click image for larger version

Name:	2020-11-07 23_15_29-Window.png
Views:	282
Size:	15.4 KB
ID:	1431706

      Comment


        #4
        Did you set up the webhook in HS4?

        In order for Node-RED to receive device status updates from HomeSeer you need to setup a webhook URL. From the HomeSeer web interface go to Setup > Custom and add your Node-RED URL followed by /homeseer/webhook. For example if Node-RED is running on the same machine as HomeSeer, it should be something like http://127.0.0.1:1880/homeseer/webhook
        Zwave = Z-Stick, 3xHSM100� 7xACT ZDM230, 1xEverspring SM103, 2xACT HomePro ZRP210.
        X10 = CM12U, 2xAM12, 1xAW10, 1 x TM13U, 1xMS13, 2xHR10, 2xSS13
        Other Hardware = ADI Ocelot + secu16, Global Cache GC100, RFXtrx433, 3 x Foscams.
        Plugings = RFXcom, ActiveBackup, Applied Digital Ocelot, BLDeviceMatrix, BLGarbage, BLLAN, Current Cost, Global Cache GC100,HSTouch Android, HSTouch Server, HSTouch Server Unlimited, NetCAM, PowerTrigger, SageWebcamXP, SqueezeBox, X10 CM11A/CM12U.
        Scripts =
        Various

        Comment


          #5
          He wouldn't be getting those devices if he didn't but someone managed to do it with a script. Don't ask! I don't know what happens with a script that HomeSeer doesn't do. But here : https://forums.homeseer.com/forum/ho...ble-update-bug


          Wow : Maybe he should help out more! His handy work : https://www.domoticaforum.eu/viewfor...a1e836faec35c9


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

          Comment


            #6
            Originally posted by Eman View Post
            He wouldn't be getting those devices if he didn't.

            Eman.
            I don't think this is true. Would the HSNode not poll HS on startup and update the device like he is seeing if the checkbox is ticked to update on startup.
            Zwave = Z-Stick, 3xHSM100� 7xACT ZDM230, 1xEverspring SM103, 2xACT HomePro ZRP210.
            X10 = CM12U, 2xAM12, 1xAW10, 1 x TM13U, 1xMS13, 2xHR10, 2xSS13
            Other Hardware = ADI Ocelot + secu16, Global Cache GC100, RFXtrx433, 3 x Foscams.
            Plugings = RFXcom, ActiveBackup, Applied Digital Ocelot, BLDeviceMatrix, BLGarbage, BLLAN, Current Cost, Global Cache GC100,HSTouch Android, HSTouch Server, HSTouch Server Unlimited, NetCAM, PowerTrigger, SageWebcamXP, SqueezeBox, X10 CM11A/CM12U.
            Scripts =
            Various

            Comment


              #7
              Originally posted by enigmatheatre View Post

              I don't think this is true. Would the HSNode not poll HS on startup and update the device like he is seeing if the checkbox is ticked to update on startup.
              That statement is true, the option was added and am glad you got back to me. The main people who work on this don't respond to my requests.

              I would like to reserve my thinking on this but we have asked in other threads to give us the option for HomeSeer to report back but ............


              Now this here : https://forums.homeseer.com/forum/ho...=3#post1138980 is not too far off from what we want to achieve but read through and you will see the relations


              Else, I may not be getting this as well because most of my devices (dumb) don't have features



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

              Comment


                #8
                Not working! Tested with a device with features. Only reports when you deploy Node-RED.

                And here was my request :https://forums.homeseer.com/forum/ho...-event-in-node

                Different from the OP but similar feature you could use to do other things.

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

                Comment


                  #9
                  Originally posted by enigmatheatre View Post
                  Did you set up the webhook in HS4?
                  Ah, that was it! I had missed that part. Added the webhook and it worked like a charm. Thanks! 🙂

                  Comment


                    #10
                    Originally posted by ØysteinHJ View Post

                    Ah, that was it! I had missed that part. Added the webhook and it worked like a charm. Thanks! 🙂
                    Can you confirm it works because your Node-RED is on the same machine as HomeSeer? Because mine (Node-RED) is on a different system.
                    Or do you mean I should use HomeSeer's IP? I just don't get it ..


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

                    Comment


                      #11
                      ØysteinHJ No problems. Glad I could help.



                      Eman
                      Originally posted by Eman View Post

                      That statement is true, the option was added and am glad you got back to me. The main people who work on this don't respond to my requests.

                      Eman.
                      Well, it turns out that statement was not true!!! and Maby they don't get back to you because you confuse and derail threads with information that has nothing to do with the problems people are asking about.

                      .....Rant removed........

                      Greig.
                      Zwave = Z-Stick, 3xHSM100� 7xACT ZDM230, 1xEverspring SM103, 2xACT HomePro ZRP210.
                      X10 = CM12U, 2xAM12, 1xAW10, 1 x TM13U, 1xMS13, 2xHR10, 2xSS13
                      Other Hardware = ADI Ocelot + secu16, Global Cache GC100, RFXtrx433, 3 x Foscams.
                      Plugings = RFXcom, ActiveBackup, Applied Digital Ocelot, BLDeviceMatrix, BLGarbage, BLLAN, Current Cost, Global Cache GC100,HSTouch Android, HSTouch Server, HSTouch Server Unlimited, NetCAM, PowerTrigger, SageWebcamXP, SqueezeBox, X10 CM11A/CM12U.
                      Scripts =
                      Various

                      Comment


                        #12
                        Originally posted by Eman View Post
                        Can you confirm it works because your Node-RED is on the same machine as HomeSeer? Because mine (Node-RED) is on a different system.
                        Or do you mean I should use HomeSeer's IP? I just don't get it ..
                        I do have Node Red running on the same physical computer, but it's running in a Docker container. So in my case it's somewhere in between.

                        In any event, I don't think it should matter if Node Red was running on a separate computer. The webhook defined in HomeSeer is pointing to the Node Red instance with a defined IP address. So if something is not working, I would guess it's a firewall issue or something.

                        Comment


                          #13
                          Originally posted by enigmatheatre View Post
                          ØysteinHJ No problems. Glad I could help.



                          Eman


                          Well, it turns out that statement was not true!!! and Maby they don't get back to you because you confuse and derail threads with information that has nothing to do with the problems people are asking about.

                          .....Rant removed........

                          Greig.
                          Now am getting closer. Did you see that my request was not replied to? Now if you are still with me you would have asked me ..Where I was running Node-RED. There other people who did run Node-RED my way but on different issues unrelated and all sorts things were happening...but tell more!

                          But I think I see something else in my situation......will test and maybe keep it to myself because it does seem I give more to people in need than I ever get back..... how is that?


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

                          Comment


                            #14
                            Originally posted by ØysteinHJ View Post

                            I do have Node Red running on the same physical computer, but it's running in a Docker container. So in my case it's somewhere in between.

                            In any event, I don't think it should matter if Node Red was running on a separate computer. The webhook defined in HomeSeer is pointing to the Node Red instance with a defined IP address. So if something is not working, I would guess it's a firewall issue or something.
                            Here as well...looks close. I will let you guys know but for now am going to test. And it's not on Windows but am going to hold to the results because often times I feel sold short........


                            Note : Your main IP here is in use and mine isn't ..............


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

                            Comment


                              #15
                              Originally posted by Eman View Post

                              Now am getting closer. Did you see that my request was not replied to? Now if you are still with me you would have asked me ..Where I was running Node-RED. There other people who did run Node-RED my way but on different issues unrelated and all sorts things were happening...but tell more!

                              But I think I see something else in my situation......will test and maybe keep it to myself because it does seem I give more to people in need than I ever get back..... how is that?


                              Eman.
                              Yes I seen the request but don't understand it but I will reply there to see if I can point you in the right direction and to close this thread as the original request was fixed.

                              Zwave = Z-Stick, 3xHSM100� 7xACT ZDM230, 1xEverspring SM103, 2xACT HomePro ZRP210.
                              X10 = CM12U, 2xAM12, 1xAW10, 1 x TM13U, 1xMS13, 2xHR10, 2xSS13
                              Other Hardware = ADI Ocelot + secu16, Global Cache GC100, RFXtrx433, 3 x Foscams.
                              Plugings = RFXcom, ActiveBackup, Applied Digital Ocelot, BLDeviceMatrix, BLGarbage, BLLAN, Current Cost, Global Cache GC100,HSTouch Android, HSTouch Server, HSTouch Server Unlimited, NetCAM, PowerTrigger, SageWebcamXP, SqueezeBox, X10 CM11A/CM12U.
                              Scripts =
                              Various

                              Comment

                              Working...
                              X