Giter VIP home page Giter VIP logo

Comments (8)

jimmyfisher avatar jimmyfisher commented on July 30, 2024 1

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.

donavanbecker avatar donavanbecker commented on July 30, 2024

I believe this is a home app bug. Especially if this is only happening with automations.

from homebridge-switchbot.

jimmyfisher avatar jimmyfisher commented on July 30, 2024

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.

donavanbecker avatar donavanbecker commented on July 30, 2024

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.

jimmyfisher avatar jimmyfisher commented on July 30, 2024

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.

donavanbecker avatar donavanbecker commented on July 30, 2024

@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.

jimmyfisher avatar jimmyfisher commented on July 30, 2024

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.

donavanbecker avatar donavanbecker commented on July 30, 2024

@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)

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.