Comments (19)
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.
All good, thanks a lot for your support! Ticket can be closed!
from homebridge-switchbot.
Your config is wrong. So this is a Bot you want to display as a garage door?
from homebridge-switchbot.
This is indeed the bot I’d like to display as garage door!
from homebridge-switchbot.
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.
Is your Bot set to Press Mode? if so then you need to set that in the Config UI:
from homebridge-switchbot.
also that error can be ignored
from homebridge-switchbot.
v2.9.0 released
from homebridge-switchbot.
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.
Sorry that is something with the API and nothing with the plugin. You would have to reach out to SwitchBot.
from homebridge-switchbot.
OK, and in the meantime, is there any way to use BLE with this setup?
from homebridge-switchbot.
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.
Yes see request limit in SwitchBotAPI repo.
from homebridge-switchbot.
@donavanbecker after several days of use, it still does not work reliably.
It always comes down to this scenario:
- It works after a reboot.
- 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
- 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.
This API is completely different then how the App communicates with the devices.
from homebridge-switchbot.
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.
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.
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.
This issue has been closed as no further activity has occurred.
from homebridge-switchbot.
Related Issues (20)
- Support Request: Switchbot Curtain 3 doesn't show up HOT 3
- Feature Request: switchbot curtain 3 HOT 4
- Bug: Incorrect model type and running mode for Curtain 3 HOT 6
- Bug: unable to communicate with switchbot thermometer? HOT 1
- Support Request: Switchbot on Hoops has ceased working - Help appreciated. HOT 11
- Bot stops working after latest plugin update HOT 16
- Unable activate switchbot after update to 3.00 HOT 23
- Feature Request: Curtain3 Support HOT 3
- Support Request: Errors and Warning for Switchbot Curtain, not sure where to configure these values HOT 2
- Bug: Unknown statusCode: 500; Unknown statusCode: undefined HOT 2
- Feature Request: Specify a range of temperature settings for the air conditioner HOT 5
- Wiki updates HOT 1
- Bug: Missing all device with 3.1.1 HOT 6
- v3.1.2 leads to endless restart of child bridge. When restarting HomeBridge no plugins are loaded. HOT 4
- Bug: Cannot find package '@abandonware/noble' HOT 2
- Support Request: HOT 13
- Bug: Lock New Status Code Response HOT 4
- Feature Request: Smart Lock Pro HOT 7
- Mini Vacuum K10+ not working HOT 11
- Support Request: IR Devices not showing up HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-switchbot.