Announcement

Collapse
No announcement yet.

Insteon Plug in stops working after power interruptions (HS3 Rpi3b+)

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

  • Insteon Plug in stops working after power interruptions (HS3 Rpi3b+)

    The insteon plugin stops working after a power interruption. Coming home to a dark house or lights on during the day. Sometimes disable/enable plugin brings it back but most time have to reboot HS3. It just happened yesterday. See screen shot below. Rpi is on UPS power and PLM is plugged directly into AC line. Need to improve power fail resilience. How should I proceed? Specifics on getting logs off Rpi. Pls advise. Thanks.

  • #2
    The plugin does not know when a power failure occurs. It just knows when it can't communicate with the Interface (ie PLM). So if it has troubles 10 times in a row, it will shut itself down, otherwise it will continue to throw errors into the HS log (which people didn't want)

    There are event actions you can use to disable and enable the plugin in an event of power loss. You will need some other trigger however.
    Mark

    HS3 Pro 3.0.0.534
    Hardware: Insteon Serial PLM | AD2USB for Vista Alarm | HAI Omnistat2 | 1-Wire HA7E | RFXrec433 | Dahua Cameras | LiftMaster Internet Gateway
    Plugins: Insteon (mine) | Vista Alarm (mine) | Omnistat 3 (by Kirby) | Ultra1Wire3 | RFXCOM | NetCAM | MyQ | BLRadar | BLDenon | Jon00 Charting
    Platform: HP h8-1360t, Windows Server 2012 R2, i7-3.4GHz, 16GB memory

    Comment


    • #3
      Originally posted by mnsandler View Post
      The plugin does not know when a power failure occurs. It just knows when it can't communicate with the Interface (ie PLM). So if it has troubles 10 times in a row, it will shut itself down, otherwise it will continue to throw errors into the HS log (which people didn't want)

      There are event actions you can use to disable and enable the plugin in an event of power loss. You will need some other trigger however.
      Hi Mark, thanks for this info. I do have a power fail detector. It’s a wall wart powered relay whose contacts are connected to an i/o module. So how do i use this in an event to reset the plug in? Tested example please?

      please advise.

      thanks and regards,
      Brian

      Comment


      • #4
        This topic is discussed at length in this thread and should answer all your questions:

        https://forums.homeseer.com/forum/li...a-power-outage

        Comment


        • #5
          Originally posted by ve3bwp View Post

          Hi Mark, thanks for this info. I do have a power fail detector. It’s a wall wart powered relay whose contacts are connected to an i/o module. So how do i use this in an event to reset the plug in? Tested example please?

          please advise.

          thanks and regards,
          Brian
          These two events have worked correctly for me for years now.

          Click image for larger version

Name:	powerout.png
Views:	103
Size:	162.3 KB
ID:	1354267
          Click image for larger version

Name:	powerin.png
Views:	98
Size:	181.7 KB
ID:	1354268

          Comment


          • #6
            That's pretty much identical to mine which has worked well for years too.

            Comment


            • #7
              Great! Thanks folks! I will give it a go. Not sure how I missed that this was a requirement to keep the plug in from shutting down. It's documented somewhere?

              Does a reboot also restart the 10 trouble shutdown counter?

              Comment


              • #8
                Originally posted by joegr View Post

                These two events have worked correctly for me for years now.

                Click image for larger version

Name:	powerout.png
Views:	103
Size:	162.3 KB
ID:	1354267
                Click image for larger version

Name:	powerin.png
Views:	98
Size:	181.7 KB
ID:	1354268
                I am not getting the AND IF "0 Interfaces Insteon Status has a Value Equal to OK". How do I get that option to show?

                Do I need another plug in for that?


                Click image for larger version

Name:	Screen Shot 2020-01-14 at 10.49.21 PM.png
Views:	99
Size:	164.3 KB
ID:	1354365

                Comment


                • #9
                  Originally posted by ve3bwp View Post
                  Great! Thanks folks! I will give it a go. Not sure how I missed that this was a requirement to keep the plug in from shutting down. It's documented somewhere?

                  Does a reboot also restart the 10 trouble shutdown counter?
                  the trouble counter will reset after a restart, the counter also resets every time the plugin transmit successfully. You may also adjust the counter threshold on the Advanced tab in the latest beta plugin.
                  Mark

                  HS3 Pro 3.0.0.534
                  Hardware: Insteon Serial PLM | AD2USB for Vista Alarm | HAI Omnistat2 | 1-Wire HA7E | RFXrec433 | Dahua Cameras | LiftMaster Internet Gateway
                  Plugins: Insteon (mine) | Vista Alarm (mine) | Omnistat 3 (by Kirby) | Ultra1Wire3 | RFXCOM | NetCAM | MyQ | BLRadar | BLDenon | Jon00 Charting
                  Platform: HP h8-1360t, Windows Server 2012 R2, i7-3.4GHz, 16GB memory

                  Comment


                  • #10
                    Originally posted by mnsandler View Post

                    the trouble counter will reset after a restart, the counter also resets every time the plugin transmit successfully. You may also adjust the counter threshold on the Advanced tab in the latest beta plugin.
                    I have to set the retries to max (5 I believe) for reliability reasons. My power line must have noise on it. Mark does every retry get tallied in the 10 counts?

                    I have an automatic genset so the longest the PLM is without power is 20 secs.

                    If I increase the threshold from 10 to something like 1000 in the beta would that solve the problem?

                    Dont take this wrong way but Insteon power fail recovery seems to be the main cause of coming home to a dark house (and cold water) which is every automators worst nightmare. Is there not extra logic that should be built in to the plug-in? For example could you not have an setting to point the plugin to the power fail detection device?

                    i seem to have been blocked from accessing the Msandler insteon plugin feature requests thread. Says to contact admin but admin does not accept messages. I used to be able to view it. Can you fix that?

                    Anyway, in the meantime would setting the threshold in the beta from 10 to 1000 be fine or will it fill up a log file too fast?

                    Comment


                    • #11
                      Originally posted by mnsandler View Post

                      the trouble counter will reset after a restart, the counter also resets every time the plugin transmit successfully. You may also adjust the counter threshold on the Advanced tab in the latest beta plugin.
                      Mark there is no beta being offered up in my Manage Plugins listing. How do I get my hands on the correct one?

                      Comment


                      • #12
                        Brian,

                        the retries (on the config page) is a separate setting that tracks message attempts sent to a device.

                        The "Failed Tx Threshold: 10" (that we have been discussing) tracks how many 'consecutive' times the plugin can't communicate with the PLM. the internal counter gets reset on every successful attempt to reach the PLM (regardless of the device response)

                        if you have a generator that kicks in after 20 secs on a power failure, then you shouldn't need to change any settings. if the generator power isn't keeping the plm happy/online, then maybe there is noise from the generator power. the generator power could be causing noise that is flooding the plm and rendering it non-responsive.

                        My 16kw generac kicks in after 15 secs, and I never have an issue with the plugin or plm dropping offline.

                        I have built into the plugin as many reliability monitors, triggers and actions as i can to help with power failure recovery, and other failures. I dont think there is anything else significant i can do.
                        Mark

                        HS3 Pro 3.0.0.534
                        Hardware: Insteon Serial PLM | AD2USB for Vista Alarm | HAI Omnistat2 | 1-Wire HA7E | RFXrec433 | Dahua Cameras | LiftMaster Internet Gateway
                        Plugins: Insteon (mine) | Vista Alarm (mine) | Omnistat 3 (by Kirby) | Ultra1Wire3 | RFXCOM | NetCAM | MyQ | BLRadar | BLDenon | Jon00 Charting
                        Platform: HP h8-1360t, Windows Server 2012 R2, i7-3.4GHz, 16GB memory

                        Comment


                        • #13
                          Originally posted by ve3bwp View Post

                          I am not getting the AND IF "0 Interfaces Insteon Status has a Value Equal to OK". How do I get that option to show?

                          Do I need another plug in for that?


                          ...
                          No, just create a virtual device named "Insteon Status" with at least the statuses of "Enabled" and "Disabled." I have a few other status pairs for other events, but you really only need those two for the two events listed to work. It's just there to keep the second event from triggering over and over.


                          Comment


                          • #14
                            Originally posted by joegr View Post

                            No, just create a virtual device named "Insteon Status" with at least the statuses of "Enabled" and "Disabled." I have a few other status pairs for other events, but you really only need those two for the two events listed to work. It's just there to keep the second event from triggering over and over.

                            Sorry what are the parameters your "Insteon Status" virtual device pairs test? Or how do they disable/reenable the Insteon plug in? In the example Joegr provides I do not have those AND IF options. Am I missing something here? Can you send me a screen capture of it?

                            Comment


                            • #15
                              Originally posted by mnsandler View Post
                              Brian,

                              the retries (on the config page) is a separate setting that tracks message attempts sent to a device.

                              The "Failed Tx Threshold: 10" (that we have been discussing) tracks how many 'consecutive' times the plugin can't communicate with the PLM. the internal counter gets reset on every successful attempt to reach the PLM (regardless of the device response)

                              if you have a generator that kicks in after 20 secs on a power failure, then you shouldn't need to change any settings. if the generator power isn't keeping the plm happy/online, then maybe there is noise from the generator power. the generator power could be causing noise that is flooding the plm and rendering it non-responsive.

                              My 16kw generac kicks in after 15 secs, and I never have an issue with the plugin or plm dropping offline.

                              I have built into the plugin as many reliability monitors, triggers and actions as i can to help with power failure recovery, and other failures. I dont think there is anything else significant i can do.
                              Mark, It would really be helpful If you could stay with me and answer the questions I ask in response to each of your recommendations. It could probably solve the problem. I'm trying my best to stay on track and follow your advise.

                              First post (#2) above: Your advise "There are event actions you can use to disable and enable the plugin in an event of power loss. You will need some other trigger however." I asked for an example. How do I disable/reenable your plug-in in HS3 (non Pro)? Sounds great. What do these event actions look like? No reply.

                              The example Joegr provides I do not have those AND IF options of "0 Interfaces Insteon Status". I'm on HS3 (non Pro) so can you please instruct my how to execute what you asked me to do? I will gladly create and event to do as you suggested. I just need the specifics. You wrote the plugin I think it's reasonable to look to you to provide the details.

                              Then In your post (#9) you told me .. "You may also adjust the counter threshold on the Advanced tab in the latest beta plugin.". No answer when I asked if I could increase it. Also no answer when I asked what I can adjust it to? What is the range? Where do I get the Beta Plugin you refer to? Again, no reply.

                              Please if you could just follow me long enough to answer these questions it could probably solve the problem. I'm trying my best to stay on track and follow your advise.

                              You think the fault is my generator. My Generator has not kicked in over a month. It's a full inverter true sine wave unit that my very fussy UPSes report 100% power quality on. I paid extra for that. We are now in the midst of an ice storm weather event. The power flickered several times/day but not long enough to start the generator.. and the plugin stayed working for the first few flickers over about 24 hour period until one more flicker.. then it was stuck on "Plugin Start is Pending". I rebooted and it came back. This happens every few weeks unless I remember to reboot the system every week or so.

                              So can you help me get through your first two suggestions...this as I am doing everything possible to follow your advise! Please advise. Thanks much.

                              Comment

                              Working...
                              X