Announcement

Collapse
No announcement yet.

HSTouch / HomeSeer Event (In) Node?

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

    #16
    Originally posted by enigmatheatre View Post
    Yes this is what I am saying. Do the following as a test.

    1.Create a virtual device and call it event triggered.
    2.Change the status values to be the name of the events you want to know about in node Red. Eg. Value 1 = outside light on, value 2 = motion triggered in hall.
    3.In the appropriate event set the virtual device to the correct value.
    4.In Node-Red select the virtual device as an input and then react to the value and you will then know your event has triggered in HS.

    Is this not what you want to know?


    Sent from my SM-G973F using Tapatalk
    I don't want to know if the event is triggered in HS.

    I want to trigger a Node-RED flow using a HS event.

    Is it possible to share your flow?

    ---
    John

    Comment


      #17
      Originally posted by John245 View Post

      I don't want to know if the event is triggered in HS.

      I want to trigger a Node-RED flow using a HS event.

      Is it possible to share your flow?

      ---
      John
      Is this not the same thing? Set the virtual device names to the names of your flows in Node-Red if you want to then set the virtual device in the event you want to trigger the flow and then act on the device change in the flow by filtering the value.
      I am not at my system at the moment but the flow would just be a HSNode set to the virtual device then a switch node checking the value of the virtual device to triggr what you want.

      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


        #18
        Originally posted by John245 View Post

        I don't want to know if the event is triggered in HS.

        I want to trigger a Node-RED flow using a HS event.

        Is it possible to share your flow?

        ---
        John
        I requested this feature here https://forums.homeseer.com/forum/ho...-from-an-event

        Until this feature is added the method to trigger a flow from an event is to use a virtual device. Basically knowing if the event is triggered based on a virtual device change and running a flow from an event have the same end result i.e. the flow is run when the event is triggered.

        Comment


          #19
          Originally posted by enigmatheatre View Post

          Is this not the same thing? Set the virtual device names to the names of your flows in Node-Red if you want to then set the virtual device in the event you want to trigger the flow and then act on the device change in the flow by filtering the value.
          I am not at my system at the moment but the flow would just be a HSNode set to the virtual device then a switch node checking the value of the virtual device to triggr what you want.

          Greig.
          Ok,

          I will continue when I received your flow.

          Thanks in advance

          ---
          John

          Comment


            #20
            ok, Try this Flow with the device changed to a virtual device like the one I have set up below.

            Click image for larger version

Name:	flow trigger.PNG
Views:	228
Size:	164.8 KB
ID:	1433644

            Code:
            [{"id":"10222e08.13f4c2","type":"tab","label":"Flow Trigger from HS","disabled":false,"info":""},{"id":"510ab4cd.f0d72c","type":"hs-device","z":"10222e08.13f4c2","name":"Node Red Trigger Flow","device":"1504","server":"d048042.3ec09f8","feature":"1505","reportonstartup":false,"x":170,"y":220,"wires":[["a049c5c3.22b548"]]},{"id":"a049c5c3.22b548","type":"switch","z":"10222e08.13f4c2","name":"Flow Trigger","property":"payload.value","propertyType":"msg","rules":[{"t":"gt","v":"0","vt":"num"},{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"num"},{"t":"eq","v":"3","vt":"num"},{"t":"eq","v":"4","vt":"num"}],"checkall":"true","repair":false,"outputs":5,"x":400,"y":220,"wires":[["76abceab.ce5db"],["dc771d69.0eeab"],["13c807b5.d4df78"],["7b15f549.5c8c8c"],["b86259a1.c6dbf8"]]},{"id":"77a3aa09.b04424","type":"comment","z":"10222e08.13f4c2","name":"Your Flows","info":"","x":620,"y":160,"wires":[]},{"id":"dc771d69.0eeab","type":"debug","z":"10222e08.13f4c2","name":"Flow 1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":610,"y":200,"wires":[]},{"id":"13c807b5.d4df78","type":"debug","z":"10222e08.13f4c2","name":"Flow 2","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":610,"y":240,"wires":[]},{"id":"7b15f549.5c8c8c","type":"debug","z":"10222e08.13f4c2","name":"Flow 3","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":610,"y":280,"wires":[]},{"id":"b86259a1.c6dbf8","type":"debug","z":"10222e08.13f4c2","name":"Flow 4","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":610,"y":320,"wires":[]},{"id":"b8db1bec.8a73b8","type":"hs-device","z":"10222e08.13f4c2","name":"Node Red Trigger Flow","device":"1504","server":"d048042.3ec09f8","feature":"1505","reportonstartup":false,"x":850,"y":120,"wires":[[]]},{"id":"76abceab.ce5db","type":"change","z":"10222e08.13f4c2","name":"Reset to 0","rules":[{"t":"set","p":"topic","pt":"msg","to":"update","tot":"str"},{"t":"set","p":"payload.value","pt":"msg","to":"0","tot":"num"},{"t":"set","p":"payload.status","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":630,"y":120,"wires":[["b8db1bec.8a73b8"]]},{"id":"d048042.3ec09f8","type":"hs-server","z":"","name":"HS4","host":"localhost","port":"80"}]
            I HS add a new virtual device and set the status controls as follows:

            Click image for larger version

Name:	Controls.PNG
Views:	174
Size:	67.5 KB
ID:	1433645

            Then you can use this device to trigger the flows in Node-Red.

            Click image for larger version

Name:	event trigger.PNG
Views:	176
Size:	102.5 KB
ID:	1433646

            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


              #21
              Originally posted by enigmatheatre View Post
              ok, Try this Flow with the device changed to a virtual device like the one I have set up below.

              Click image for larger version

Name:	flow trigger.PNG
Views:	228
Size:	164.8 KB
ID:	1433644

              Code:
              [{"id":"10222e08.13f4c2","type":"tab","label":"Flow Trigger from HS","disabled":false,"info":""},{"id":"510ab4cd.f0d72c","type":"hs-device","z":"10222e08.13f4c2","name":"Node Red Trigger Flow","device":"1504","server":"d048042.3ec09f8","feature":"1505","reportonstartup":false,"x":170,"y":220,"wires":[["a049c5c3.22b548"]]},{"id":"a049c5c3.22b548","type":"switch","z":"10222e08.13f4c2","name":"Flow Trigger","property":"payload.value","propertyType":"msg","rules":[{"t":"gt","v":"0","vt":"num"},{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"num"},{"t":"eq","v":"3","vt":"num"},{"t":"eq","v":"4","vt":"num"}],"checkall":"true","repair":false,"outputs":5,"x":400,"y":220,"wires":[["76abceab.ce5db"],["dc771d69.0eeab"],["13c807b5.d4df78"],["7b15f549.5c8c8c"],["b86259a1.c6dbf8"]]},{"id":"77a3aa09.b04424","type":"comment","z":"10222e08.13f4c2","name":"Your Flows","info":"","x":620,"y":160,"wires":[]},{"id":"dc771d69.0eeab","type":"debug","z":"10222e08.13f4c2","name":"Flow 1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":610,"y":200,"wires":[]},{"id":"13c807b5.d4df78","type":"debug","z":"10222e08.13f4c2","name":"Flow 2","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":610,"y":240,"wires":[]},{"id":"7b15f549.5c8c8c","type":"debug","z":"10222e08.13f4c2","name":"Flow 3","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":610,"y":280,"wires":[]},{"id":"b86259a1.c6dbf8","type":"debug","z":"10222e08.13f4c2","name":"Flow 4","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":610,"y":320,"wires":[]},{"id":"b8db1bec.8a73b8","type":"hs-device","z":"10222e08.13f4c2","name":"Node Red Trigger Flow","device":"1504","server":"d048042.3ec09f8","feature":"1505","reportonstartup":false,"x":850,"y":120,"wires":[[]]},{"id":"76abceab.ce5db","type":"change","z":"10222e08.13f4c2","name":"Reset to 0","rules":[{"t":"set","p":"topic","pt":"msg","to":"update","tot":"str"},{"t":"set","p":"payload.value","pt":"msg","to":"0","tot":"num"},{"t":"set","p":"payload.status","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":630,"y":120,"wires":[["b8db1bec.8a73b8"]]},{"id":"d048042.3ec09f8","type":"hs-server","z":"","name":"HS4","host":"localhost","port":"80"}]
              I HS add a new virtual device and set the status controls as follows:

              Click image for larger version

Name:	Controls.PNG
Views:	174
Size:	67.5 KB
ID:	1433645

              Then you can use this device to trigger the flows in Node-Red.

              Click image for larger version

Name:	event trigger.PNG
Views:	176
Size:	102.5 KB
ID:	1433646

              Greig.
              Thanks a lot.

              This should be added to a sticky.

              ---
              John

              Comment


                #22
                Originally posted by John245 View Post

                Thanks a lot.

                This should be added to a sticky.

                ---
                John
                No problems. Hope it dose what you were after and gives you more ideas.

                Sent from my SM-G973F using Tapatalk

                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


                  #23
                  Originally posted by enigmatheatre View Post
                  No problems. Hope it dose what you were after and gives you more ideas.

                  Sent from my SM-G973F using Tapatalk
                  I have enough ideas, need a little bit more time .

                  ---
                  John

                  Comment


                    #24
                    Originally posted by enigmatheatre View Post
                    No problems. Hope it dose what you were after and gives you more ideas.

                    Sent from my SM-G973F using Tapatalk
                    One of my ideas implemented. Get the status of the dishwasher.
                    Click image for larger version

Name:	Capture dishwasher.PNG
Views:	168
Size:	205.1 KB
ID:	1435350
                    ---
                    John

                    Comment


                      #25
                      Originally posted by enigmatheatre View Post
                      ok, Try this Flow with the device changed to a virtual device like the one I have set up below.

                      Click image for larger version

Name:	flow trigger.PNG
Views:	228
Size:	164.8 KB
ID:	1433644

                      Code:
                      [{"id":"10222e08.13f4c2","type":"tab","label":"Flow Trigger from HS","disabled":false,"info":""},{"id":"510ab4cd.f0d72c","type":"hs-device","z":"10222e08.13f4c2","name":"Node Red Trigger Flow","device":"1504","server":"d048042.3ec09f8","feature":"1505","reportonstartup":false,"x":170,"y":220,"wires":[["a049c5c3.22b548"]]},{"id":"a049c5c3.22b548","type":"switch","z":"10222e08.13f4c2","name":"Flow Trigger","property":"payload.value","propertyType":"msg","rules":[{"t":"gt","v":"0","vt":"num"},{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"num"},{"t":"eq","v":"3","vt":"num"},{"t":"eq","v":"4","vt":"num"}],"checkall":"true","repair":false,"outputs":5,"x":400,"y":220,"wires":[["76abceab.ce5db"],["dc771d69.0eeab"],["13c807b5.d4df78"],["7b15f549.5c8c8c"],["b86259a1.c6dbf8"]]},{"id":"77a3aa09.b04424","type":"comment","z":"10222e08.13f4c2","name":"Your Flows","info":"","x":620,"y":160,"wires":[]},{"id":"dc771d69.0eeab","type":"debug","z":"10222e08.13f4c2","name":"Flow 1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":610,"y":200,"wires":[]},{"id":"13c807b5.d4df78","type":"debug","z":"10222e08.13f4c2","name":"Flow 2","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":610,"y":240,"wires":[]},{"id":"7b15f549.5c8c8c","type":"debug","z":"10222e08.13f4c2","name":"Flow 3","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":610,"y":280,"wires":[]},{"id":"b86259a1.c6dbf8","type":"debug","z":"10222e08.13f4c2","name":"Flow 4","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":610,"y":320,"wires":[]},{"id":"b8db1bec.8a73b8","type":"hs-device","z":"10222e08.13f4c2","name":"Node Red Trigger Flow","device":"1504","server":"d048042.3ec09f8","feature":"1505","reportonstartup":false,"x":850,"y":120,"wires":[[]]},{"id":"76abceab.ce5db","type":"change","z":"10222e08.13f4c2","name":"Reset to 0","rules":[{"t":"set","p":"topic","pt":"msg","to":"update","tot":"str"},{"t":"set","p":"payload.value","pt":"msg","to":"0","tot":"num"},{"t":"set","p":"payload.status","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":630,"y":120,"wires":[["b8db1bec.8a73b8"]]},{"id":"d048042.3ec09f8","type":"hs-server","z":"","name":"HS4","host":"localhost","port":"80"}]
                      I HS add a new virtual device and set the status controls as follows:

                      Click image for larger version

Name:	Controls.PNG
Views:	174
Size:	67.5 KB
ID:	1433645

                      Then you can use this device to trigger the flows in Node-Red.

                      Click image for larger version

Name:	event trigger.PNG
Views:	176
Size:	102.5 KB
ID:	1433646

                      Greig.
                      This will partly fullfil my needs.

                      How can I trigger the flow multiple times? For e.g Volume UP on a receiver.

                      ---
                      John

                      Comment


                        #26
                        Originally posted by Eman View Post
                        I know that this has been asked for differently, but it would be nice to have an HS Event (IN) Node. Handy for those who would like to design a Remote Control for Media or Alarm control panel. Yes you can use MQTT ................but..............., Well you could heavily edit Alexa to pan through your movies ..? And yes!, you can : https://www.howtogeek.com/249336/how...n-amazon-echo/...............but the HS Event (IN) would be Global.


                        Click image for larger version

Name:	HStouch and HomeSeer.png
Views:	393
Size:	344.7 KB
ID:	1417680


                        Eman.




                        This will partly fullfil my needs.

                        How can I trigger the flow multiple times? For e.g Volume UP on a receiver.

                        Of course I can create an additional virtial device and check if it was triggered. But in my opinion triggering a flow from HS should be a native function.


                        ---
                        John

                        Comment


                          #27
                          Originally posted by enigmatheatre View Post
                          ok, Try this Flow with the device changed to a virtual device like the one I have set up below.

                          Click image for larger version

Name:	flow trigger.PNG
Views:	228
Size:	164.8 KB
ID:	1433644

                          Code:
                          [{"id":"10222e08.13f4c2","type":"tab","label":"Flow Trigger from HS","disabled":false,"info":""},{"id":"510ab4cd.f0d72c","type":"hs-device","z":"10222e08.13f4c2","name":"Node Red Trigger Flow","device":"1504","server":"d048042.3ec09f8","feature":"1505","reportonstartup":false,"x":170,"y":220,"wires":[["a049c5c3.22b548"]]},{"id":"a049c5c3.22b548","type":"switch","z":"10222e08.13f4c2","name":"Flow Trigger","property":"payload.value","propertyType":"msg","rules":[{"t":"gt","v":"0","vt":"num"},{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"num"},{"t":"eq","v":"3","vt":"num"},{"t":"eq","v":"4","vt":"num"}],"checkall":"true","repair":false,"outputs":5,"x":400,"y":220,"wires":[["76abceab.ce5db"],["dc771d69.0eeab"],["13c807b5.d4df78"],["7b15f549.5c8c8c"],["b86259a1.c6dbf8"]]},{"id":"77a3aa09.b04424","type":"comment","z":"10222e08.13f4c2","name":"Your Flows","info":"","x":620,"y":160,"wires":[]},{"id":"dc771d69.0eeab","type":"debug","z":"10222e08.13f4c2","name":"Flow 1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":610,"y":200,"wires":[]},{"id":"13c807b5.d4df78","type":"debug","z":"10222e08.13f4c2","name":"Flow 2","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":610,"y":240,"wires":[]},{"id":"7b15f549.5c8c8c","type":"debug","z":"10222e08.13f4c2","name":"Flow 3","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":610,"y":280,"wires":[]},{"id":"b86259a1.c6dbf8","type":"debug","z":"10222e08.13f4c2","name":"Flow 4","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":610,"y":320,"wires":[]},{"id":"b8db1bec.8a73b8","type":"hs-device","z":"10222e08.13f4c2","name":"Node Red Trigger Flow","device":"1504","server":"d048042.3ec09f8","feature":"1505","reportonstartup":false,"x":850,"y":120,"wires":[[]]},{"id":"76abceab.ce5db","type":"change","z":"10222e08.13f4c2","name":"Reset to 0","rules":[{"t":"set","p":"topic","pt":"msg","to":"update","tot":"str"},{"t":"set","p":"payload.value","pt":"msg","to":"0","tot":"num"},{"t":"set","p":"payload.status","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":630,"y":120,"wires":[["b8db1bec.8a73b8"]]},{"id":"d048042.3ec09f8","type":"hs-server","z":"","name":"HS4","host":"localhost","port":"80"}]
                          I HS add a new virtual device and set the status controls as follows:

                          Click image for larger version

Name:	Controls.PNG
Views:	174
Size:	67.5 KB
ID:	1433645

                          Then you can use this device to trigger the flows in Node-Red.

                          Click image for larger version

Name:	event trigger.PNG
Views:	176
Size:	102.5 KB
ID:	1433646

                          Greig.
                          Hi Greg,

                          This will partly fulfill my needs.

                          How can I trigger the flow multiple times? For e.g Volume UP on a receiver.

                          Of course I can create an additional virtual device and check if it was triggered. But in my opinion triggering a flow from HS should be a native function.


                          ---
                          John

                          Comment


                            #28
                            John245 why do you need to trigger the flow multiple times and what is the initial trigger? Is it that your have a touch interface simulating a remote and are holding a button down and want to increase the volume until the button is released? How do you know your trigger initiated and ends? Is the value of a HomeSeer device X while you wish to trigger the event and Y when you do not?
                            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


                              #29
                              Originally posted by ksum View Post
                              John245 why do you need to trigger the flow multiple times and what is the initial trigger? Is it that your have a touch interface simulating a remote and are holding a button down and want to increase the volume until the button is released? How do you know your trigger initiated and ends? Is the value of a HomeSeer device X while you wish to trigger the event and Y when you do not?
                              I see the issue. I removed the reset, and that is fine for power on/off, input selection, etc... but not for volume, bass, etc..

                              More or les I'm simulating a remote, I have a RS-232 connection to my amplifier which also reports back. So I will develop a GUI with up and down buttons for volume and will indicate the dB (in case of volume).

                              In the automatic mode the event trigger will trigger until the feedback value is equal to the required value.

                              ---
                              John

                              Comment

                              Working...
                              X