Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switchbot don't work anymore #131

Open
tommyMX opened this issue May 3, 2024 · 25 comments
Open

Switchbot don't work anymore #131

tommyMX opened this issue May 3, 2024 · 25 comments

Comments

@tommyMX
Copy link

tommyMX commented May 3, 2024

switchbot-hub.0
2024-05-03 08:35:57.591 info [Error caught and sent to Sentry, thank you for collaborating!] [loadDevices] | Error : Error: Cannot handle API call : Error: Request failed with status code 401 | StackTrace : undefined}

switchbot-hub.0
2024-05-03 08:35:57.128 info starting. Version 0.1.2 (non-npm: DrozmotiX/ioBroker.switchbot-hub#de8c1ad97edafedb16cbbb2c6dc14b032848df8e) in /opt/iobroker/node_modules/iobroker.switchbot-hub, node: v18.19.0, js-controller: 5.0.17
host.buanet-iobroker-1
2024-05-03 08:35:56.351 info instance system.adapter.switchbot-hub.0 started with pid 10301
host.buanet-iobroker-1
2024-05-03 08:35:53.801 info instance system.adapter.switchbot-hub.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)

@DutchmanNL
Copy link
Contributor

ich habe grossen Schwierigkeiten durch die art und wiese wie der Hersteller regierte auf wünsche und Probleme diese Integration aufrecht zu erhalten.

Werde mich bemühen noch einen schritt zu machen, das dauert leider ein wenig da ich die Hardware wieder in betrieb nehmen muss + gesundheitlich eingeschränkt bin

@tommyMX
Copy link
Author

tommyMX commented May 16, 2024

Danke dir und gute gute Besserung

@lustig29
Copy link

Von mir auch gute Besserung

@Duffy987
Copy link

Danke schon jetzt für die Mühe

@pisabird
Copy link

Wäre wirklich toll wenn das wieder geht! Allen Entwicklern vielen Dank an euch!

@Grothesk242
Copy link

Alles Gute!
Woran hakt es denn mit dem Hersteller? Denn wenn ich mir
https://github.com/OpenWonderLabs/SwitchBotAPI
anschaue gibt es doch eine gut dokumentierte API. Ist ja schon mal mehr als bei anderen Anbietern.

@ManfredHi
Copy link

Habe auch das Problem, dass ich meinen Wäschetrockner nun nicht mehr zur günstigsten Tarifzeit bzw. bei genug Überschuss starten kann, weil der SwitchBot nicht mehr funktioniert.

@Grothesk242
Copy link

Ich hab das timeout im Adapter mal von 1000 auf 5000 gesetzt. Da kommt dann:

2024-05-28 18:40:10.967  - debug: switchbot-hub.0 (448691) Redis Objects: Use Redis connection: 0.0.0.0:9001
2024-05-28 18:40:11.021  - debug: switchbot-hub.0 (448691) Objects client ready ... initialize now
2024-05-28 18:40:11.025  - debug: switchbot-hub.0 (448691) Objects create System PubSub Client
2024-05-28 18:40:11.028  - debug: switchbot-hub.0 (448691) Objects create User PubSub Client
2024-05-28 18:40:11.137  - debug: switchbot-hub.0 (448691) Objects client initialize lua scripts
2024-05-28 18:40:11.178  - debug: switchbot-hub.0 (448691) Objects connected to redis: 0.0.0.0:9001
2024-05-28 18:40:11.236  - debug: switchbot-hub.0 (448691) Redis States: Use Redis connection: 0.0.0.0:9000
2024-05-28 18:40:11.264  - debug: switchbot-hub.0 (448691) States create System PubSub Client
2024-05-28 18:40:11.266  - debug: switchbot-hub.0 (448691) States create User PubSub Client
2024-05-28 18:40:11.358  - debug: switchbot-hub.0 (448691) States connected to redis: 0.0.0.0:9000
2024-05-28 18:40:11.418  - debug: switchbot-hub.0 (448691) Plugin sentry Initialize Plugin (enabled=true)
2024-05-28 18:40:11.889  - info: switchbot-hub.0 (448691) starting. Version 0.1.2 (non-npm: DrozmotiX/ioBroker.switchbot-hub#de8c1ad97edafedb16cbbb2c6dc14b032848df8e) in /opt/iobroker/node_modules/iobroker.switchbot-hub, node: v22.2.0, js-controller: 6.0.1-alpha.0-20240525-56d9e4a2e
2024-05-28 18:40:13.432  - debug: switchbot-hub.0 (448691) [getDevices API response]: {"statusCode":190,"body":{},"message":"Cannot read properties of undefined (reading 'device_type')"}
2024-05-28 18:40:13.434  - info: switchbot-hub.0 (448691) [Error caught and sent to Sentry, thank you for collaborating!]  [loadDevices] | Error : TypeError: Cannot read properties of undefined (reading 'length') | StackTrace : undefined}

@zoulhh
Copy link

zoulhh commented May 29, 2024

Would be great if fixed. Get well soon.

@jwedenig
Copy link

jwedenig commented Jun 5, 2024

Please fix! Thanks

@Baleares86
Copy link

Das wäre großartig! Danke für deine Bemühung.

@HellraiserBBS
Copy link

Hallo,

ich wäre auch sehr dankbar wenn es wieder funktionieren würde !

Mfg

Digi-Bit

@arteck
Copy link

arteck commented Jun 14, 2024

https://github.com/arteck/ioBroker.switchbot-hub

ich hab den mal angepasst..bitte Testen und melden

die API wurde erweitert es ist jetzt auch ein secretKey notwendig..steht aber auch in der app drin an der gleichen stelle wie der token

@pisabird
Copy link

funktioniert Super!
Vielen Dank arteck!

@Duffy987
Copy link

Arteck, vielen Dank für deine Mühe.

Ich wollte den Adapter gerade installieren bekomme es aber leider nicht hin.
Ich bin im Expertenmodus aber unter NPM wird nur der alte gefunden. Muss man ihn über Github installieren?

npm i iobroker.switchbot-hub Habe ich zwar für die Installation gefunden weis aber nicht wohin damit?

Muss dieser Befehl ins Terminal?

Viele Grüße und danke noch mal für deine Mühe.

@Grothesk242
Copy link

Über die URL. Benutzerdefiniert.

@Duffy987
Copy link

@pisabird
Copy link

Nein!
diesen hier
https://github.com/arteck/ioBroker.switchbot-hub.git

@Duffy987
Copy link

Duffy987 commented Jun 14, 2024

Ich werde das wohl nie verstehen aber vielen Dank.

Viele Grüße

edit:

Auch ein blindes Huhn findet mal ein Korn. Adapter ist wieder Grün und der Fingerbot arbeitet wieder.

(Auch wenn mir Github immer ein Rätsel bleiben wird)

danke an die Unterstützer :-)

@jwedenig
Copy link

jwedenig commented Jun 16, 2024

Ich bekomme das hier:
`

switchbot-hub.0 2024-06-16 08:18:24.564 info starting. Version 0.1.2 (non-npm: arteck/ioBroker.switchbot-hub#666f01f7e8b49322d68d63360322a9f11169911a) in /opt/iobroker/node_modules/iobroker.switchbot-hub, node: v20.14.0, js-controller: 5.0.19
switchbot-hub.0 2024-06-16 08:15:16.187 info terminating
switchbot-hub.0 2024-06-16 08:15:15.685 info Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
switchbot-hub.0 2024-06-16 08:15:15.683 info terminating
switchbot-hub.0 2024-06-16 08:15:15.680 info Got terminate signal TERMINATE_YOURSELF
switchbot-hub.0 2024-06-16 08:14:57.529 info starting. Version 0.1.2 (non-npm: arteck/ioBroker.switchbot-hub#666f01f7e8b49322d68d63360322a9f11169911a) in /opt/iobroker/node_modules/iobroker.switchbot-hub, node: v20.14.0, js-controller: 5.0.19

`
Der Token blieb ja drinnen, hoffentlich! Aber hat es schon immer einen Secret Key gegeben? Und wenn ja, wo ist der?

@Duffy987
Copy link

Der Secret ist da wo auch der Token ausgegeben wird, eine Zeile weiter drunter. Also aus der App

@jwedenig
Copy link

SUPER! Alles Grün! Vielen Dank an Dich und dem Entwickler!!!!

@zoulhh
Copy link

zoulhh commented Jun 17, 2024

https://github.com/arteck/ioBroker.switchbot-hub

ich hab den mal angepasst..bitte Testen und melden

Hammer. Vielen, vielen Dank. Du hast einige Smart Homes gerettet.

Die Angelegenheit zeigt aber auch, wie verwundbar das ganze Home-Setup ist, wenn ein "Hobby-Entwickler" irgendwann keinen Bock mehr hat oder nicht mehr kann. Das kann natürlich auch mit etablierten Unternehmen passieren, ist aber unwahrscheinlicher. Naja, wollte es nur mal erwähnt haben.

@Grothesk242
Copy link

Die Angelegenheit zeigt aber auch die Vorteile von OpenSource. Dadurch konnte @arteck sich das ganze anschauen und einen Patch einreichen. An Software von 'etablierten Unternehmen' kommst du nicht mehr ran, wenn die irgendwann das Interesse an ihrem Produkt verlieren oder ganz die Segel streichen.

@dezebruar
Copy link

Auch von mir vielen Dank, TOP!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests