Git Product home page Git Product logo

Comments (19)

donavanbecker avatar donavanbecker commented on May 24, 2024 1

If so your config should look like this:


{
  "name": "SwitchBot",
  "credentials": {
    "token": "REDACTED",
    "secret": "REDACTED",
    "notice": "Keep your Token & Secret a secret!"
  },
  "options": {
    "devices": [
      {
        "deviceId": "REDACTED",
        "configDeviceName": "Portail",
        "configDeviceType": "Bot",
        "connectionType": "OpenAPI",
        "bot": {
          "deviceType": "garagedoor"
        },
        "refreshRate": 5,
        "logging": "debug"
      }
    ]
  },
  "platform": "SwitchBot"
}

from homebridge-switchbot.

bxlouis avatar bxlouis commented on May 24, 2024 1

All good, thanks a lot for your support! Ticket can be closed!

from homebridge-switchbot.

donavanbecker avatar donavanbecker commented on May 24, 2024

Your config is wrong. So this is a Bot you want to display as a garage door?

from homebridge-switchbot.

bxlouis avatar bxlouis commented on May 24, 2024

This is indeed the bot I’d like to display as garage door!

from homebridge-switchbot.

bxlouis avatar bxlouis commented on May 24, 2024

Installed latest beta and modified the configuration as explained, works like a charm! Thanks a lot!

2 questions:

  • Would there be any possibility to have a setting so that the Garage Door Opener reset to the « closed » position after a while since it closes automatically after a couple of second and this system does not return any state for the gate?

  • I still see this error in the debug logs:
    Portail statusCode: 200 & deviceStatus statusCode: 100

from homebridge-switchbot.

donavanbecker avatar donavanbecker commented on May 24, 2024

Is your Bot set to Press Mode? if so then you need to set that in the Config UI:
Screenshot 2023-09-16 at 5 47 03 AM

from homebridge-switchbot.

donavanbecker avatar donavanbecker commented on May 24, 2024

also that error can be ignored

from homebridge-switchbot.

donavanbecker avatar donavanbecker commented on May 24, 2024

v2.9.0 released

from homebridge-switchbot.

bxlouis avatar bxlouis commented on May 24, 2024

I noticed after a few hours/days that I get the following error with v2.9.0 and the plugin stops working:
Bot: Portail Device internal error due to device states not synchronized with server, Or command format is invalid, statusCode: 190

After restarting Homebridge, I now get this error:
[9/18/2023, 9:53:42 AM] [SwitchBot] Bot: Portail failed openAPIRefreshStatus with OpenAPI Connection, Error Message: "getaddrinfo EAI_AGAIN api.switch-bot.com"
[9/18/2023, 11:22:48 AM] [SwitchBot] Bot: Portail Unknown statusCode: 500, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug

from homebridge-switchbot.

donavanbecker avatar donavanbecker commented on May 24, 2024

Sorry that is something with the API and nothing with the plugin. You would have to reach out to SwitchBot.

from homebridge-switchbot.

bxlouis avatar bxlouis commented on May 24, 2024

OK, and in the meantime, is there any way to use BLE with this setup?

from homebridge-switchbot.

bxlouis avatar bxlouis commented on May 24, 2024

Also, when rebooting Homebridge, I noticed the following error message:
[SwitchBot] Requests reached the daily limit, statusCode: 190

So it seems there is a daily limit on the API that may be exceeded? Isn't it something you are familiar with?

from homebridge-switchbot.

donavanbecker avatar donavanbecker commented on May 24, 2024

Yes see request limit in SwitchBotAPI repo.

from homebridge-switchbot.

bxlouis avatar bxlouis commented on May 24, 2024

@donavanbecker after several days of use, it still does not work reliably.
It always comes down to this scenario:

  1. It works after a reboot.
  2. I eventually get this error Bot: Portail Device internal error due to device states not synchronized with server, Or command format is invalid, statusCode: 190
  3. The error repeats over and over till I reach the daily limit and get this error: Requests reached the daily limit, statusCode: 190

What makes me think something is wrong with the plugin (or maybe my configuration?) is that the app itself works flawlessly even when I get the first error. If the issue was with the API, it should not work from the app either?

Would you be able to provide me with assistance in order to try and fix this issue?

from homebridge-switchbot.

donavanbecker avatar donavanbecker commented on May 24, 2024

This API is completely different then how the App communicates with the devices.

from homebridge-switchbot.

bxlouis avatar bxlouis commented on May 24, 2024

OK understood. Then I am the only one to experience this issue or is it a known issue that the Switchbot API is unreliable? I mean, do you get a lot of feedback with this error message from other users?
Because if the API is unreliable and users need to reach out to Switchbot to get the plugin working, what's the point?

I am just asking and willing to help to get the plugin work as reliably as possible because it's really great and I don't see any obvious solution.

from homebridge-switchbot.

bxlouis avatar bxlouis commented on May 24, 2024

This API is completely different then how the App communicates with the devices.

Also, I meant that it works using a Siri shortcut I created. I guess the shortcut also uses the API to communicate with the hub?

from homebridge-switchbot.

github-actions avatar github-actions commented on May 24, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from homebridge-switchbot.

github-actions avatar github-actions commented on May 24, 2024

This issue has been closed as no further activity has occurred.

from homebridge-switchbot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.