Comments (8)
Quick update because GitHub marked as closed.
Sept 23 was the last day that this issue showed in my logs. Starting the 24th, it seemingly went away. Not sure if a SwitchBot app update or my tvOS getting updated to iOS 15.
from homebridge-switchbot.
I believe this is a home app bug. Especially if this is only happening with automations.
from homebridge-switchbot.
I thought that too, but technically, isn’t the only way that the Home app is talking to SwitchBot is via the homebridge plugin?
That’s why I thought that maybe there was something in the code for the plugin that was looping the command being sent. Not sure if there’s something that tells it to send the command until some condition is met? Like a handshake response.
I wrote in another thread too about the ‘Unknown error (190)’ showing up in my logs. Not sure if that’s related here.
It didn’t appear on both bots’ logs, so may not be related.
Functionally, how does the plugin tell SwitchBot that something has been turned on/off in the Home app?
from homebridge-switchbot.
it looks to see if it is on or off before sending so that isn't it. the unknown Error is a bug in the SwitchBot app, if you read that whole tread you will see what SwitchBot told them to do.
from homebridge-switchbot.
Ok re: the error.
I know the info mentions that the API doesn’t allow for the plugin to ensure the on/off matches and to make sure it’s synced up manually (which I’ve done once or twice, but usually smooth sailing)
Is it possible though that it’s not seeing it change quick enough? So like the automation is saying ‘turn on the bot’, SwitchBot gets pinged and since it was off, it triggers the switch, but then the automation doesn’t see that has occurred so it sends it again because it still thinks it’s off?
from homebridge-switchbot.
@jimmyfisher It potential, but I have no control over that, and if it is only happening with automations then it's a home app issue.
from homebridge-switchbot.
Was trying to look through the source code but can't see where any notice from Home would be interpreted (I'm nowhere near as well-versed as you in the code landscape, but figured I'd see if I could be creative)
It does seem odd that the automation is doing this. Prior to setting up this plugin, I was using SwitchBot's built-in Siri shortcuts. Those were also set up as an automation, albeit in the Shortcuts app and running off my iPhone.
When I tap the light button in Home (manually turning on/off), it only sends once. The automation is one that is set up by time of day, based on sunrise/sunset to trigger. All I've done in the Home app is tell it to either turn on or off each of the two SwitchBots in addition to a MagicHome lightbulb that I have (also using a plugin to communicate)
Very odd thing I just tested - when I hit 'Test This Automation' and look at the logs simultaneously, it only sends one request for each, so I think you're correct that there's something weird w the automation when it's running.
But I'm not sure how to troubleshoot. Any ideas?
Thanks again!
from homebridge-switchbot.
@jimmyfisher Has closed yet, but was marked as stale.
Glad it is working now. I will close now since it is working. Comment if you start seeing issues again.
from homebridge-switchbot.
Related Issues (20)
- Bug: Battery reporting wrong (Curtain2) HOT 2
- Bug: Unable to get bluetooth working in a Docker Instance HOT 13
- Support Request: Add Switch to IR Other Type HOT 13
- Bug: Bluetooth Connection Not Working On Bot Firmware v6.5 HOT 2
- Feature Request: SwitchBot: switch off even if already switched off HOT 1
- Feature Request: Curtain 3 support HOT 17
- Bug: switchbot.discover is not a function HOT 7
- Support Request: Hub2 and Eve History with fakegato-history HOT 5
- how to exclude devices? HOT 3
- Bug: Failed to Discover Devices, Error: Error: connect EHOSTUNREACH 34.230.242.1:443 HOT 3
- Bug: Swing mode being turned on also sends turnOn command HOT 4
- Feature Request: Curtain 3 Support HOT 11
- Support Request: Bot type ignored HOT 19
- Feature Request: Support for SwitchBot Indoor/Outdoor Thermo-Hygrometer
- v2.9.0 is causing homebridge docker to crash repeatedly HOT 16
- Bug: `Firmware Revision` Characteristic Errors After Latest NodeJS Update HOT 9
- Bug: 401 Error HOT 8
- Bug: switchbot lock doesnt respond HOT 15
- Bug: HOT 2
- Feature Request: Add a Latch Function for the Lock 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.