Announcement

Collapse
No announcement yet.

Plugin doesn't communicate with API

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

  • Plugin doesn't communicate with API

    I setup everything according the provided doc.
    Got the 3 API's running
    Made a user with the client-id and secret key.
    I enable all 5 options with the user.

    But in the overview screen only calendar and voice show.
    When clicking calendar nothing shows (only add new option), with debug option on in the settings. noting appears in the homeseer log.
    When clicking on voice and try the option send sms.
    I do get a google notification about a login attempt to my account but no sms is received. (im not going to use the option but i tested it), try to send a second sms after approving the login attempt. The second sms also didn't come in.

    Homeseer log isnt showing any errors, actually it only showed that the plugin is started and users are loaded:
    ======start log============

    aug-19 11:42:14 BLGData start BLGData plug-in has been initialized
    aug-19 11:42:14 BLGData start No notifications have been assigned to BLGData!
    aug-19 11:42:14 BLGData start No handlers have been assigned to BLGData!
    aug-19 11:42:14 BLGData start Users have been loaded.
    aug-19 11:42:14 Info Running immediate script: C:\Program Files (x86)\HomeSeer HS3\Temp\K1.vb
    aug-19 11:42:13 BLGData start BLGData Debug Logging is Enabled!
    aug-19 11:42:13 BLGData start Loaded configuration successfully
    aug-19 11:42:13 BLGData start BLGData version is: 2.0.40.0
    aug-19 11:42:13 BLGData start Initializing BLGData...
    aug-19 11:42:13 Info Plugin BLGData has connected. IP:127.0.0.1:56781
    =========end of log==================

    In the dashboard overview of the google api; traffic, errors and wait time are all 0.
    Tried restarting homeseer and even removing and reinstall plugin but all have the same result. Im still in trail periode but i dont think that's the problem

    in the detailed log in the homeseer root directory i see the following:
    ===============log==============
    19-8-2017 12:04:28 : v2.0.40.0 - Check_Calendar_Events(): usr.ToString -->
    User:
    -----
    Key: U20170819T113842246
    Name: KB
    EmailAddress: kxxxxxx@gmail.com
    EnableCalendar: True
    EnableContacts: True
    EnableTasks: True
    EnableVoice: True
    EnableGooglePlus: True
    Calendar Count: 0
    Contact Count: 0
    Contact Group Count: 0
    ProcessedEvents: 0
    ProcessedEventOffsets: 0
    ProcessedReminders: 0

    19-8-2017 12:04:28 : v2.0.40.0 - Check_Calendar_Events(): *** user has 0 calendar(s)!!!
    19-8-2017 12:04:28 : v2.0.40.0 - Check_Calendar_Events() finished
    19-8-2017 12:04:29 : v2.0.40.0 - HSEvent() started
    19-8-2017 12:04:29 : v2.0.40.0 - DeviceReceivedQueueSingleton.AddDeviceReceivedToQueue() started
    19-8-2017 12:04:29 : v2.0.40.0 - DeviceReceivedQueueSingleton.AddDeviceReceivedToQueue(): theDeviceReceivedData.ToString -->
    DeviceReceivedData:
    ============end log===============
    i editted the key number but its strange i says 0 calendars when i have 2... and also when api monitor isn't seeing any connection.
    Last edited by The-Source; August 19th, 2017, 05:15 AM.

  • #2
    Could this maybe a firewall issue on the machine that runs Homeseer?
    Its the default windows firewall so outgoing traffic isn't blocked by default.
    On the machine i dont get a pop-up that actions is required...

    Comment


    • #3
      To bad trial is now over and didn't get any respone from Blade.
      Would have been nice to try this one out but if its not working then i wont buy it.

      Comment


      • #4
        I apologize - I completely missed this post.
        Just request a new trial from HST if you want to give it a try again.

        You did enable the calendar API in your google console? I believe it is in the APIs & services under library.
        Cheers,
        Bob
        Web site | Help Desk | Feature Requests | Message Board

        Comment


        • #5
          I went throught the entire document. Making the 3 api 'connector' made a user in the plugin. Entering the api keys but then my options stopped.

          Just like i said in post #1 I dont get an error but also no working plugin

          Comment


          • #6
            Can you turn on debug logging in the plugin and then go to the Calendars web page for the user. Then turn off debug logging and attach the log zipped
            Cheers,
            Bob
            Web site | Help Desk | Feature Requests | Message Board

            Comment


            • #7
              I first have to find how to reset the trial, where to email/ fill in a form

              Comment


              • #8
                Contact HST and get them to give you a new trial.
                I would think a bug report with them should do it
                Cheers,
                Bob
                Web site | Help Desk | Feature Requests | Message Board

                Comment


                • #9
                  Better late then never
                  But i bought a license, only it still doesn't work.
                  What options can we try?

                  Comment


                  • #10
                    I also tried the option from other topic to open the pages from the Homeseer Server but no luck.
                    I attached the detailed log in an zip.
                    Attached Files

                    Comment


                    • #11
                      Does this file exist?

                      C:\Program Files (x86)\HomeSeer HS3\Data\BLGData\client_secrets.json

                      It should look something like this:

                      Code:
                      {
                        "installed": {
                          "client_id": "your client id",
                          "client_secret": "your secret"
                        }
                      }
                      Cheers,
                      Bob
                      Web site | Help Desk | Feature Requests | Message Board

                      Comment


                      • #12
                        I see this error in the log
                        Not sure what it means in English

                        9-12-2017 15:46:17 : v2.0.40.0 - CalendarFunctions.Calendar_Service_Login(): ERROR - Caught this exception - De type-initialisatiefunctie voor Google.Apis.Json.NewtonsoftJsonSerializer heeft een uitzondering veroorzaakt.
                        9-12-2017 15:46:17 : v2.0.40.0 - CalendarFunctions.Calendar_Service_Login() finished
                        9-12-2017 15:46:17 : v2.0.40.0 - CalendarFunctions.Get_All_Calendars_For_User(): ERROR - Caught this exception - De objectverwijzing is niet op een exemplaar van een object ingesteld.
                        9-12-2017 15:46:17 : v2.0.40.0 - CalendarFunctions.Get_All_Calendars_For_User() finished
                        Cheers,
                        Bob
                        Web site | Help Desk | Feature Requests | Message Board

                        Comment


                        • #13
                          Originally posted by Blade View Post
                          Does this file exist?

                          C:\Program Files (x86)\HomeSeer HS3\Data\BLGData\client_secrets.json

                          It should look something like this:

                          Code:
                          {
                            "installed": {
                              "client_id": "your client id",
                              "client_secret": "your secret"
                            }
                          }
                          The file exist and contains the data i filled in with the plugin.

                          9-12-2017 15:46:17 : v2.0.40.0 - CalendarFunctions.Calendar_Service_Login(): ERROR - Caught this exception - De type-initialisatiefunctie voor Google.Apis.Json.NewtonsoftJsonSerializer heeft een uitzondering veroorzaakt.
                          9-12-2017 15:46:17 : v2.0.40.0 - CalendarFunctions.Calendar_Service_Login() finished
                          9-12-2017 15:46:17 : v2.0.40.0 - CalendarFunctions.Get_All_Calendars_For_User(): ERROR - Caught this exception - De objectverwijzing is niet op een exemplaar van een object ingesteld.
                          9-12-2017 15:46:17 : v2.0.40.0 - CalendarFunctions.Get_All_Calendars_For_User() finished
                          De type-initialisatiefunctie voor Google.Apis.Json.NewtonsoftJsonSerializer heeft een uitzondering veroorzaakt. >> The initialization function for Google.Apis.Json.NewtonsoftJsonSerializer has caused an exeption
                          9-12-2017 15:46:17 : v2.0.40.0 - CalendarFunctions.Get_All_Calendars_For_User(): ERROR - Caught this exception - De objectverwijzing is niet op een exemplaar van een object ingesteld. >>The object reference is not on an instance of an object
                          Maybe a language specific function is used? The NewtonsoftJsonSerializer is present on the system because i use it in a script.

                          Comment


                          • #14
                            Hmm ok
                            In the [hs3 root]/Bin/BLGData you should have a Newtonsoft dll
                            Do you have the same DLL in your HS3 root folder?
                            Cheers,
                            Bob
                            Web site | Help Desk | Feature Requests | Message Board

                            Comment


                            • #15
                              In the /bin/BLGData i have
                              NewtonsoftJson.dll modified date: 14-06-2015
                              NewtonsoftJson.Net35.dll

                              In the HS3 root dir:
                              NewtonsoftJson.dll modified date: 30-12-2015
                              NewtonsoftJson.xml

                              Comment

                              Working...
                              X