Announcement

Collapse
No announcement yet.

Warning: you may want to step up to v44

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

    Warning: you may want to step up to v44

    I got pinged recently by a user who started getting SMSs for 2FA for his Ring account. It lasted a while until Ring blocked the account.
    I suspect a change I made a bit ago, to do automatic reauthentication if an error occurs, may be the cause here. Not sure, but I made some changes to v44 to prevent the PI from becoming the problem here.

    #2
    dcorsus I was JUST about to ask you to rate-limit attempts. I'm having my acct reset by Ring right now because I'm locked out... luckily can talk directly to them (internally) otherwise it would be very difficult as Ring's end-customer support does not know how to handle this -- the user would be locked, potentially for a long time.

    Ring dev suggests ... one retry per minute max of 5, then wait at least 1 hour before attempting again.

    I also suggest build into the PI a way to send an email / text to the user with success/failures. ** this would also be helpful for sending snapshots <hint hint> ;-)

    Ping me if you want to ask Ring development any Qs... I'm on Slack with them right now fixing my issue but can reach-out anytime (internally)

    Comment


      #3
      Originally posted by Ltek View Post
      I'm having my acct reset by Ring right now because I'm locked out...
      Did you see anything in your log?

      Originally posted by Ltek View Post
      I also suggest build into the PI a way to send an email / text to the user with success/failures. ** this would also be helpful for sending snapshots <hint hint> ;-)
      Building in the function to send email is not so straight forward but creating an event, that gets triggered when the feature status of the authentication state changes, with action to email you, is quite simple <hint hint>

      Comment


        #4
        Originally posted by dcorsus View Post
        Did you see anything in your log?​
        which/what log? I dont monitor the log

        Originally posted by dcorsus View Post
        Building in the function to send email is not so straight forward but creating an event, that gets triggered when the feature status of the authentication state changes, with action to email you, is quite simple <hint hint>
        Sorry, thought it would easy be since the script to use the HS built-in email function (action) is easy, and the PI tracks the Auth status (trigger)

        ' send e-mail with snapshot attachment for a Ring camera motion event
        '
        ' parameters: device ID of the camera's snapshot feature and the name of the camera
        ' ex. 921,dining room

        Sub Main(ByVal Parms as String)

        Dim EmailFrom = "<email from>"
        Dim EmailTo = "<email to>"


        Dim logName = "Ring email script" ' set log type for HS log

        ' script parameters
        Dim ParmArray() as String
        ParmArray = Parms.tostring.split(",")
        Dim devID as Double = CDbl(ParmArray(0)) ' ID of the camera's snapshot device (for filename)
        Dim devName as String = ParmArray(1) ' camera name (to use in e-mail)
        Dim RingImage = hs.devicestring (devID) ' path to the snapshot

        ' e-mail variables

        Dim Subject = devName & " Motion detected [doorbell]"
        Dim Body = "Motion was detected by the " & devName & " Ring camera at " & now()
        Dim Attach = hs.GetAppPath & "/html/" & RingImage

        hs.writelog(logName," ID: " & devID & " / Name: " & devName & " / Path: " & Attach)
        hs.SendEmail(EmailTo, EmailFrom, "", "", Subject, Body, Attach)

        End Sub​

        Comment


          #5
          I use a similar script (maybe I got it from you?) to send e-mail alerts with snapshot attachments and also have an event that sends me an HSBuddy notification when the Master Control authentication status is not "authenticated."

          Comment


            #6
            I'm a new user of the PI (have v44 installed)... I'm having at least 2 problems...any advice??

            1) I keep getting messages that ring has disconnected (over and over - about ever minute or two)

            Click image for larger version

Name:	image.png
Views:	178
Size:	44.5 KB
ID:	1627729
            8/1/2023 5:16:33 PM


            From Log:

            HomeSeer
            Info
            Plugin Ring with ID: Ring and Instance: has disconnected
            8/1/2023 5:16:33 PM



            2) It did NOT create devices for my alarm sensors, just two devices (Master Ring Control,

            Click image for larger version

Name:	image.png
Views:	120
Size:	59.5 KB
ID:	1627730


            Version=HS4 Standard Edition 4.2.19.0 (Windows)
            License=Registered
            OS=Microsoft Windows 7 Professional - Work Station
            OS Version=6.1.7601
            Device Count=151
            Event Count=18
            Processor:=Intel64 Family 6 Model 42 Stepping 7 at 2.02 GHz
            Modules/Threads=136 Modules, 67 Threads
            Available Threads=1023
            System Load=98 Processes, 8% Load
            Free/Total Memory=4.16 GBytes / 7.90 GBytes (53% free)
            Free/Total Virtual Memory=14.92 GBytes / 19.86 GBytes (75% free)
            HomeSeer Memory Used=91 Mbytes
            Plugin Memory Used=7 EXE Plug-Ins using 224 Mbytes
            Plugins Installed=CM15A 3.0.0.13,Harmony Hub 4.0.14.0,HS MyQ 4.0.14.0,Pushover 4.0.12.0,Rachio 4.0.2.0,Ring 1.0.0.44,TPLinkSmartHome4 2022.12.30.0,Wemo 4.0.5.0,Zigbee 4.0.11.0,Z-Wave 4.1.0.3​

            Comment


              #7
              If you click on "view problem details", can you capture that info.
              I noticed Win7, are you up to all .NET updates and you also need TLS1.2 support. I haven't seen crashes due to .NET or TLS1.2 subsystems being behind latest version, but other than that, I have never seen any of my PIs crash.
              One thing to try is to enable the debug logging (in the 2 minutes it runs), set it to "errors and events" and turn logging to disk on. As soon as you have a crash , go grab that log file and PM it to me.

              Comment


                #8
                Thanks for the quick response. I initially did have the authentication trouble and went through all the setup of .NET and TLS 1.2 that I found on the forum and that got me authenticating. In the time that the PI is up, it is downloading clips (it has downloaded about 15 so far). It seems the crash is happening during that process.

                I also want to get it to create the HS devices for my alarm sensors - as that is the biggest value in the PI for me. I'm wanting to get rid of my virtual devices for each sensor and all the linkage in alexa for them.

                Anyway, I'll send you the debug logs shortly.

                Comment


                  #9
                  Originally posted by NorthGa View Post
                  Thanks for the quick response. I initially did have the authentication trouble and went through all the setup of .NET and TLS 1.2 that I found on the forum and that got me authenticating. In the time that the PI is up, it is downloading clips (it has downloaded about 15 so far). It seems the crash is happening during that process.

                  I also want to get it to create the HS devices for my alarm sensors - as that is the biggest value in the PI for me. I'm wanting to get rid of my virtual devices for each sensor and all the linkage in alexa for them.

                  Anyway, I'll send you the debug logs shortly.
                  If the PI stays on-line long enough, go to the settings->debug and click on Capture. PM me the file so I can see what Ring is publishing.
                  Which kind of alarm sensors do you have?

                  Comment


                    #10
                    I'm using gen2 base alarm (not pro) and contact sensors and motion detectors.

                    PM sent with what logs I have. Capture button doesn't seem to be producing anything, perhaps due to the crashing/restarting.

                    Comment


                      #11
                      Originally posted by NorthGa View Post
                      I'm using gen2 base alarm (not pro) and contact sensors and motion detectors.

                      PM sent with what logs I have. Capture button doesn't seem to be producing anything, perhaps due to the crashing/restarting.
                      Could you change the setting to NOT download video clips automatically. I want to reduce load a little an see if that has an effect.
                      Do you HS Sentry active by any chance?
                      I see plenty of memory

                      Comment


                        #12
                        I've now turned off automatic clip download. Yes, I have HS Sentry running. I've just stopped it, but with these two changes, I'm still getting a crash/restart about every minute or two. Also still can't get the capture button to create a file.

                        View Details on the crash shows:

                        Problem signature:
                        Problem Event Name: CLR20r3
                        Problem Signature 01: HSPI_Ring.exe
                        Problem Signature 02: 1.0.0.44
                        Problem Signature 03: 9a16c15f
                        Problem Signature 04: System
                        Problem Signature 05: 4.8.4110.0
                        Problem Signature 06: 5de6daea
                        Problem Signature 07: 1459
                        Problem Signature 08: 25
                        Problem Signature 09: System.PlatformNotSupported
                        OS Version: 6.1.7601.2.1.0.256.48
                        Locale ID: 1033
                        Additional Information 1: 0a9e
                        Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
                        Additional Information 3: 0a9e
                        Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

                        Read our privacy statement online:
                        http://go.microsoft.com/fwlink/?link...8&clcid=0x0409

                        If the online privacy statement is not available, please read our privacy statement offline:
                        C:\Windows\system32\en-US\erofflps.txt

                        Comment


                          #13
                          I wonder what this means: "Problem Signature 09: System.PlatformNotSupported"

                          I had hoped to learn a bit more from the details but this not telling too much. Just to make sure nothing got corrupted, do you mind use the delete/remove function in HS4 for this PI and reinstall?

                          If the problem persists, I would think it is something the PI does that the Win7 OS doesn't like. It is very surprising however that it would crash and not give a proper fault. In this case we're going to have to figure out where, but not sure how. I may still have a PC somewhere w Win7 on it, but I know of other people who run this PI on Win7 and apart from upgrading .NET to 4.7x (or was it 4.8x) and enabling TLS2, they have not reported any crashes. You do have .NET 4.7x (as a minimum) installed, right?


                          Comment


                            #14
                            I have .Net 4.8 (4.8.03761) installed

                            I will remove PI and reinstall and let you know.

                            Perhaps I'll look into upgrading windows...

                            Comment


                              #15
                              I upgraded my HS4 server from Windows 7 Pro to Windows 10 Pro and reinstalled the ring PI. Now I have devices for the sensors and so far, not a single crash of the PI.

                              Thanks!
                              John

                              Comment

                              Working...
                              X