Announcement

Collapse
No announcement yet.

Test - What is wrong with this Event?

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

    Test - What is wrong with this Event?

    I helped another member with a problem last night. His system was brought to a screeching halt every time he turned some lights lights on with a HomeSeer central scene. I have seen different people encounter this problem on a number of occasions. I have created the same problem by modifying an Event in my system. Who can spot the problem? For extra credit, what is going on in this Event

    Click image for larger version

Name:	Capture.PNG
Views:	143
Size:	73.6 KB
ID:	1274932
    HS4 Pro, 4.2.19.16 Windows 10 pro, Supermicro LP Xeon

    #2
    Loop. Actions set a device which has a set trigger. HS engine not smart enough to realize and all goes poorly.

    Comment


      #3
      How do you fix or avoid it?
      HS4 Pro, 4.2.19.16 Windows 10 pro, Supermicro LP Xeon

      Comment


        #4
        Originally posted by rprade View Post
        How do you fix or avoid it?
        For this one I would change the event form set to to changed to....

        Comment


          #5

          Originally posted by bsobel View Post

          For this one I would change the event form set to to changed to....
          Thanks for playing

          Hopefully this will help others.

          The loop was caused by "setting" a device in the Actions and a Trigger being based upon the device being "set". I also added Cannot Re-Run For: 5 Seconds.

          Click image for larger version

Name:	Capture.PNG
Views:	139
Size:	88.7 KB
ID:	1274975
          HS4 Pro, 4.2.19.16 Windows 10 pro, Supermicro LP Xeon

          Comment


            #6
            That is really good info. I almost always use "changes and becomes" in my events since I'm usually wanting a device that was value 'X' but has changed to value 'Y'.
            HS4Pro on a Raspberry Pi4
            54 Z-Wave Nodes / 21 Zigbee Devices / 108 Events / 767 Devices
            Plugins: Z-Wave / Zigbee Plus / EasyTrigger / AK Weather / OMNI

            HSTouch Clients: 1 Android

            Comment


              #7
              Since Jon000 has done all the work to decode events maybe we can make a list of common mistakes he can try to highlight if found?

              Comment


                #8
                Now can anyone tell me why in the world would one set the value of a device in an Event that uses it as a Trigger?
                HS4 Pro, 4.2.19.16 Windows 10 pro, Supermicro LP Xeon

                Comment


                  #9
                  Originally posted by rprade View Post
                  Now can anyone tell me why in the world would one set the value of a device in an Event that uses it as a Trigger?
                  One scenario that comes to mind: editing an existing event (especially one that has been around for a while) and failing to analyze the effects of the change adequately.
                  Mike____________________________________________________________ __________________
                  HS3 Pro Edition 3.0.0.548, NUC i3

                  HW: Stargate | NX8e | CAV6.6 | Squeezebox | PCS | WGL 800RF | RFXCOM | Vantage Pro | Green-Eye | Edgeport/8 | Way2Call | Ecobee3 | EtherRain | Ubiquiti

                  Comment


                    #10
                    Originally posted by rprade View Post
                    Now can anyone tell me why in the world would one set the value of a device in an Event that uses it as a Trigger?
                    I set the value of devices that triggered the event often. Let say a virtual device is set to 1 (ON) and that is a trigger for an event to run. In the event that got triggered, as a housekeeping chore I will set the value of that device that triggered the event to 0 (OFF).

                    I think maybe your question might be 'why would anyone set the value of a device in an event, to the value that satisfies the trigger of that same event?'

                    Comment


                      #11
                      Originally posted by logbuilder View Post

                      I set the value of devices that triggered the event often. Let say a virtual device is set to 1 (ON) and that is a trigger for an event to run. In the event that got triggered, as a housekeeping chore I will set the value of that device that triggered the event to 0 (OFF).

                      I think maybe your question might be 'why would anyone set the value of a device in an event, to the value that satisfies the trigger of that same event?'
                      Well, I didn't ask it that way on purpose, because the question would provide a clue to the answer.

                      The Event is designed to run by the value of the Low Light Device, but it also can be run by a remote Central Scene, HS switch Central Scene, Voice Command or HSTouch (as a manual override). The Manual Override device needs to stay in sync. We will double tap the hall light switch in the early morning to turn the lights on when Low Light is not a factor and they will stay on until 1) it becomes late enough in the morning for the Low Light device to turn off or 2) we manually turn them off. We use the manual override device to inhibit the lights from turning off immediately because the light becomes sufficient.

                      Click image for larger version

Name:	Capture1.PNG
Views:	117
Size:	56.6 KB
ID:	1275036


                      Also in both Events as shown in the corrected Event in post #5 above have the Cannot Re-Run For set to keep the event from retriggering if the value of the device is changed. For what it is worth, setting this value would also stop the runaway situation in the original Event triggering on the device being "set".

                      Click image for larger version  Name:	Capture2.PNG Views:	1 Size:	18.0 KB ID:	1275033
                      HS4 Pro, 4.2.19.16 Windows 10 pro, Supermicro LP Xeon

                      Comment


                        #12
                        Sorry, I thought you were suggesting that nobody should ever set the trigger device. I missed the inflections in your text.

                        Comment


                          #13
                          Originally posted by rprade View Post
                          Now can anyone tell me why in the world would one set the value of a device in an Event that uses it as a Trigger?
                          My guess?

                          1) Because the user isn't a programmer or "scripter" and is climbing the ridiculously steep learning curve of a software package that has very poor to non-existent documentation.

                          2) O'Reilly hasn't yet written "Homeseer the missing manual. The book that should have been in the box."
                          HomeSeer Version: HS4 Pro Edition 4.2.19.0 (Windows - Running as a Service)
                          Home Assistant 2024.3
                          Operating System: Microsoft Windows 11 Pro - Desktop
                          Z-Wave Devices via two Z-Net G3s
                          Zigbee Devices via RaspBee on RPi 3b+
                          WiFi Devices via Internal Router.

                          Enabled Plug-Ins
                          AK GoogleCalendar 4.0.4.16,AK HomeAssistant 4.0.1.23,AK SmartDevice 4.0.5.1,AK Weather 4.0.5.181,AmbientWeather 3.0.1.9,Big6 3.44.0.0,BLBackup 2.0.64.0,BLGData 3.0.55.0,BLLock 3.0.39.0,BLUPS 2.0.26.0,Device History 4.5.1.1,EasyTrigger 3.0.0.76,Harmony Hub 4.0.14.0,HSBuddy 4.51.303.0,JowiHue 4.1.4.0,LG ThinQ 4.0.26.0,ONVIF Events 1.0.0.5,SDJ-Health 3.1.1.9,TPLinkSmartHome4 2022.12.30.0,UltraCID3 3.0.6681.34300,Z-Wave 4.1.3.0

                          Comment


                            #14
                            Originally posted by ewkearns View Post

                            My guess?

                            1) Because the user isn't a programmer or "scripter" and is climbing the ridiculously steep learning curve of a software package that has very poor to non-existent documentation.
                            Or, ironically, it might be that they are a very experienced programmer with a well informed understanding of the power of conditionals and how to finesse them.

                            Comment

                            Working...
                            X