Giter Club home page Giter Club logo

Comments (14)

donavanbecker avatar donavanbecker commented on June 8, 2024 1

On an unrelated note, I have noticed the beta also includes the curtain's light sensor. That's awesome, I love it, thank you very much! Just so you know, on this beta the light sensor doesn't seem to be updating according to the sensor. It's always either 0.00001 lux or 100,000 lux.

I only get bright or dim from the API so that is my only option. It will only have one or the other. I will request on the API that we actually get a number instead of string.

Good if I close this?

from homebridge-switchbot.

donavanbecker avatar donavanbecker commented on June 8, 2024

@barabba9174 You will have to use homebridge settings to remove curtains that are no longer on your account.

from homebridge-switchbot.

antoniogermano avatar antoniogermano commented on June 8, 2024

The same problem applies when you rename the device on the SwitchBot app: you will get a new device on HomeKit but the old one (which is now not functional) will still be there. It's probably even worse that way because when you rename it, the duplicate device will have the same ID as the new one so you can not use the "hide" functionality of the SwitchBot plugin: it would hide both.

I deleted the plugin configuration then added it again and it worked: the duplicate device was gone... but this is not a good "solution" because you lose all of your automations related to all of your SwitchBot devices.

from homebridge-switchbot.

donavanbecker avatar donavanbecker commented on June 8, 2024

I will look at fixing this with release of v1.0.0!

I will push a beta out soon, can someone test for me?

from homebridge-switchbot.

donavanbecker avatar donavanbecker commented on June 8, 2024

@antoniogermano and @barabba9174 I have pushed a new beta out that will remove the deviceName creating the unique id for the device. you will have to clear your cache, easiest way to do that is to use Homebridge UI and go into settings and clear cache on all switchbot devices, then update plugin to the latest beta and then it will restart Homebridge and you will get all new switchbot devices.

If you can test renaming devices and see if this fixes your issues.

from homebridge-switchbot.

antoniogermano avatar antoniogermano commented on June 8, 2024

Thank you very much @donavanbecker ! I'm glad to test it but I don't know how to install the beta. It doesn't show up as an update on my home bridge.
image
On the support tab there's this link to the beta version wiki, but the link is broken:
https://github.com/OpenWonderLabs/homebridge-switchbot/wiki/Beta-Version

And on this GitHub page, when I click the "Wiki' button I'm also redirected to the Code tab.

from homebridge-switchbot.

donavanbecker avatar donavanbecker commented on June 8, 2024



from homebridge-switchbot.

donavanbecker avatar donavanbecker commented on June 8, 2024

@antoniogermano, sorry this is now corrected.

from homebridge-switchbot.

smartmatic avatar smartmatic commented on June 8, 2024

Hi,

i am running Homebridge in a Docker Container. I'd like to support and test the beat release. If i try to clean the cache some seconds after i deleted the device it comes automatically back to the cache. Therefore i am not able to clean the cache before updating to Beta. Do you have an idea what causes this issue?

However i installed the beta release but instead v.1.2.1-beta docker shows v.0.1.2-beta as latest beta release. Has Docker a different version control?

from homebridge-switchbot.

donavanbecker avatar donavanbecker commented on June 8, 2024

@smartmatic The screenshot is just an example and a totally different plugin.

from homebridge-switchbot.

donavanbecker avatar donavanbecker commented on June 8, 2024

@smartmatic, @barabba9174, or @antoniogermano this should be fixed with Beta:

npm version

can one of you test it out?

from homebridge-switchbot.

antoniogermano avatar antoniogermano commented on June 8, 2024

@donavanbecker Thank you very much for the patch. I have just installed it and tested it, here are the results:

  • When I rename a device on the SwitchBot app, the name no longer updates on HomeKit (to be honest I don't mind that).
  • When I rename a device on HomeKit, it also does not update on the SwitchBot app (I don't mind that), and it no longer duplicates the device. It's a lot better to not update the name than to lose all automations because of name changes, and I only care about the HomeKit name anyway.

That's satisfactory to me! I'm happy with the results. I can name and rename them whatever I want on the SwitchBot app and on HomeKit without duplicating the devices. This was a quick, 10 minutes test, but after restarting homebridge a couple of times I still don't have issues.

On an unrelated note, I have noticed the beta also includes the curtain's light sensor. That's awesome, I love it, thank you very much! Just so you know, on this beta the light sensor doesn't seem to be updating according to the sensor. It's always either 0.00001 lux or 100,000 lux.

from homebridge-switchbot.

antoniogermano avatar antoniogermano commented on June 8, 2024

I only get bright or dim from the API so that is my only option. It will only have one or the other. I will request on the API that we actually get a number instead of string.

Great, thank you for the feedback.

It’s good for me, as far as I’m concerned you can close it :)

edit: oh, I didn’t try deleting it from the SwitchBot app so I can’t confirm the beta fixes that as well. But it does fix renaming them

from homebridge-switchbot.

donavanbecker avatar donavanbecker commented on June 8, 2024

edit: oh, I didn’t try deleting it from the SwitchBot app so I can’t confirm the beta fixes that as well. But it does fix renaming them

This is a little harder to implement, but It is on my list.

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.