Hallo zusammen,
hat es schon jemand geschafft die Koogeek Smart Plug Steckdosen (die nicht HomeKit-fähigen) über Homebridge anzubinden?
Koogeek Smart Plug zu Homebridge
-
-
Hallo, ich glaube eher nicht, dass sich jemand die Mühe macht, ein plugin zu entwickeln, wenn es die Steckdose auch nativ zu kaufen gibt......
Nutzt du Alexa? Dann könntest umständlich über das alexa_remote_control-Skript an und ausschalter „basteln“
Gesendet von iPhone mit Community
Nee, kein Alexa... gibt es jetzt schon ein Plugin für die Homebridge für den Koogeek KLSP1?
Hi ich hab es zwar nicht probiert aber die Koogeek Life App gleicht z.b. der Tuya (gibt es in den Homebridge Plugins), Smartlife und anderen gleichen Apps 1:1, evtl klappt es hierüber, teste mal und berichte, dann würde ich nämlich den Stecker auch bestellen.
Heyho!
Schon ne weile her der letzte Beitrag hier.
Habe grade die Koogeeks zum laufen bekommen. Der Tipp mit Tuya war sehr gut. Versuche grad nur die IDs für die Messwerte herauszufinden.
Edit:
Anbei die Config:
{
"platform": "TuyaLan",
"devices": [
{
"name": "My Outlet",
"type": "Outlet",
"manufacturer": "Koogeek",
"model": "KLSP1",
"id": "YYYYYYYYYY",
"key": "XXXXXXXX","voltsId": 20,
"ampsId": 18,
"wattsId": 19,
"voltsDivisor": 10,
"ampsDivisor": 1000,
"wattsDivisor": 10
}]
},Am besten der Anleitung für Key und ID folgen:
https://github.com/AMoo-Miki/h…n/wiki/Setup-Instructions
Plugin: Tuya Lan
So, habe es mit deinem Platin mal ausprobiert.
Die id ist wohl die Virtuelle ID, oder?
Woher bekomme ich den key?
Was sind die anderen für Werte?
Danke vorab...
{
"platform": "TuyaLan",
"devices": [
{
"name": "Heizstab",
"type": "Outlet",
"manufacturer": "Koogeek",
"model": "KLSP1",
"id": "XXXXXX15dc4f2XXXXXX",
"key": "YYYYYYYY",
"voltsId": 20,
"ampsId": 18,
"wattsId": 19,
"voltsDivisor": 10,
"ampsDivisor": 1000,
"wattsDivisor": 10
}
]
}Hey SHentschke,
--- Die id ist wohl die Virtuelle ID, oder?
Ne, das ist die ID die du ermittelst gemeinsam mit dem Key
--- Woher bekomme ich den key?
You will need your iPhone and console access to the server you are using or plan to use for Homebridge. All the following steps are to be performed on the console of your server, unless stated. While it might appear to be just too much, it hardly takes a minute to get done provided you have a functioning Homebridge setup.
ZitatMake sure you perform the cleanup steps after you are done.
- If you haven't already, install and configure Homebridge.
- Install this plugin using
npm i -g homebridge-tuya-lan
. - Add all your devices to the Tuya Smart app to avoid having to repeat these steps.
- Using any app other than Tuya Smart might not result in the desired outcome. You might be able to install the Tuya Smart app, extract
id
andkey
combinations, and simply abandon or uninstall it, without thekey
going bad.
- Using any app other than Tuya Smart might not result in the desired outcome. You might be able to install the Tuya Smart app, extract
- Make sure the Tuya Smart app is not running or minimized.
- Follow these steps to get the
id
andkey
combinations for the devices. These instructions were created for iOS 13; using older versions of iOS, you might see some slight differences.- Execute
tuya-lan-find
. Within a few seconds, you would be shown (a) a QR code and (b) details of the proxy server.- If you have a new type of device, you can run
tuya-lan-find --schema
to get the full definition of your device.
- If you have a new type of device, you can run
- Scan the QR code with your iPhone. If you don't know how to do that, just say "Hey Siri, scan a QR code!" and point the camera at the barcode.
- Your phone will ask you your permission to open Safari; let it.
- Safari will alert you that the website is trying to download a configuration profile; allow that too.
- A confirmation message will be shown, letting you know that the profile was downloaded. Hit
Close
. - Launch the
Settings
app on your phone. Just below your name, you would findProfile Downloaded
; tap it.-
If you are using an older iOS, you won't see that. Go to
General
, scroll down, and tap onProfiles & Device Management
. Tap onNodeMITMProxyCA
and follow the steps below.
-
If you are using an older iOS, you won't see that. Go to
- You would find yourself on the
Install Profile
screen forNodeMITMProxyCA
. HitInstall
on the top-right of the screen. If your phone has a passcode, you would be asked to enter it. A confirmation dialog will pop up; hitInstall
again. Finally hitDone
to close it all.- We will get rid of this "profile" later.
- On your iPhone, go to
Settings
, openGeneral
, and tap onAbout
. Towards the bottom, locate and openCertificate Trust Settings
. - Enable full trust for
NodeMITMProxyCA
by flicking its switch. You will be prompted with a warning; just hitContinue
. - On your iPhone, go to
Settings
and openWi-Fi
. Hit the info button, which is a bluei
in a circle, for the WiFi connection you are using. This will open the configuration for your connection. - On your WiFi connection screen, scroll to the bottom and hit
Configure Proxy
. This will open the proxy configuration screen. - On the proxy configuration screen, tap on
Manual
to reveal additional settings. Use the details shown below the QR code to fill in the server and port.- Leave the
Authentication
switch off.
- Leave the
- On your phone, open the Tuya Smart app; if it was already open, kill it and open it again. In a few seconds, a several lines will appear under the QR code on the console.
-
Grab the
id
andkey
for your devices.
-
Grab the
- After storing the
id
andkey
combinations elsewhere, follow the clean up instructions below to get rid of all the things we won't need anymore, and to be able to use your phone again.
- Execute
- Update the
config.json
file of your Homebridge setup, by modifying the sample configurations and using theid
andkey
combinations.
!NICHT Vergessen! -> Cleanup
After taking note of your
id
andkey
combinations, follow this steps to revert the changes you made above. Do not miss these!- On your iPhone, go to
Settings
and openWi-Fi
. Hit the info button, which is a bluei
in a circle, for the WiFi connection you are using. OpenConfigure Proxy
and selectOff
. - On your iPhone, go to
Settings
>General
>About
>Certificate Trust Settings
and switch off full trust forNodeMITMProxyCA
. - On your iPhone, go to
Settings
>General
>Profiles & Device Management
>NodeMITMProxyCA
and tapRemove Profile
. If one is set, you will be asked to enter your passcode. You would also be asked to confirm that you want to remove the profile; hitRemove
.
Original Link zum Set-Up: https://github.com/AMoo-Miki/h…n/wiki/Setup-Instructions
--- Was sind die anderen für Werte?
{
"platform": "TuyaLan",
"devices": [
{
"name": "Heizstab",
"type": "Outlet",
"manufacturer": "Koogeek",
"model": "KLSP1",
"id": "XXXXXX15dc4f2XXXXXX",
"key": "YYYYYYYY",
"voltsId": 20, <- Das ist im Protokoll die ID Nummer 20, an der die Spannung in Volt übermittelt wird.
"ampsId": 18, <- Das gleiche nur für Strom
"wattsId": 19, <- Das gleiche nur für die Leistung (U*I - Volt*Ampere)
"voltsDivisor": 10, <- Das ist der Divisor für die Spannung, da diese sonst falsch angezeigt wird.
"ampsDivisor": 1000, <- Das ist der Divisor für den Strom.
"wattsDivisor": 10 <- Das ist der Divisor für die Leistung.
}
]
}
--- Danke vorab...
Kein Ding. Meld dich wenn es wo klemmt.
Hey Folks,
Ich melde mich mal wieder zu nem Update der Steckdosen.
Es gibt die neue Version KSP2 (https://www.amazon.de/gp/produ…psc=1&tag=hktips-forum-21 --- KSP2)
Diese sind nur Schaltbar. Die Energiewerte bekomme ich leider nicht rein irgendwie..
Damit diese in der Homebridge funktionieren müsst ihr den Befehl
eingeben. Dann wird das neuste Update installiert. Stand 13.04.2020 (v1.5.0-rc.12)
Geändert haben sich auch die ID's der Energiewerte. Werden kurioserweise trotzdem nicht vom Plugin ausgelesen..
Hier noch eine Konfiguration als Beispiel:
Code
Alles anzeigen{ "name": "Steckdose", "type": "Outlet", "manufacturer": "Koogeek", "model": "KSP2", "id": "HEXCODE_ID", "key": "HEXCODE_KEY", "ip": "192.168.x.x", "voltsId": 6, "ampsId": 4, "wattsId": 5, "voltsDivisor": 10, "ampsDivisor": 1000, "wattsDivisor": 10 }
Beste Grüße!
Hallo,
habe das alles versucht, bekomme aber die ID und Key nicht angezeigt. Habe es bereits mit Tuya, Koogeek und ucomenHome probiert.
Funktioniert das auslesen bei euch noch?
Hey Fernmelder,
Welches Plugin nutzt du zum auslesen?
Hast du noch ein Protokoll/Error-Log?
Ich hab anfangs vergessen die Homebridge zu stoppen. Das Website-Plugin läuft da bei mir unter Port 8080. Das Tuya Lan Plugin zum auslesen benötigt auch den Port 8080. Dann kommt da nur mist raus wenn die Homebridge parallel läuft. 😅
Auslesen funktioniert bei mir, gestern erst gemacht.
Grüße, Adrian
Hey Fernmelder,
Welches Plugin nutzt du zum auslesen?
Hast du noch ein Protokoll/Error-Log?
Ich hab anfangs vergessen die Homebridge zu stoppen. Das Website-Plugin läuft da bei mir unter Port 8080. Das Tuya Lan Plugin zum auslesen benötigt auch den Port 8080. Dann kommt da nur mist raus wenn die Homebridge parallel läuft. 😅
Auslesen funktioniert bei mir, gestern erst gemacht.
Grüße, Adrian
hm, das mit dem Port ergibt dann natürlich Sinn. Ich habe im Kopf das beim auslesen der Port 8001 angegeben war.
Welches Plugin genau muss ich nochmal schauen Anfang der Woche.
Muss die Bridge nochmal neu aufsetzen da ich sie etwas verbastelt habe.Ich prüfe mal und melde mich zurück!
Danke und Gruß
André
Hey Fernmelder,
Welches Plugin nutzt du zum auslesen?
Hast du noch ein Protokoll/Error-Log?
Ich hab anfangs vergessen die Homebridge zu stoppen. Das Website-Plugin läuft da bei mir unter Port 8080. Das Tuya Lan Plugin zum auslesen benötigt auch den Port 8080. Dann kommt da nur mist raus wenn die Homebridge parallel läuft. 😅
Auslesen funktioniert bei mir, gestern erst gemacht.
Grüße, Adrian
Hast du ein iPhone oder Android benutzt?
Hallo André,
hm, das mit dem Port ergibt dann natürlich Sinn. Ich habe im Kopf das beim auslesen der Port 8001 angegeben war.
Welches Plugin genau muss ich nochmal schauen Anfang der Woche.
Muss die Bridge nochmal neu aufsetzen da ich sie etwas verbastelt habe.Ich prüfe mal und melde mich zurück!
Danke und Gruß
André
Installier am besten mal das Plugin: homebridge-tuya-lan v1.4.0 (https://www.npmjs.com/package/homebridge-tuya-lan)
Anschließend folgst du dann der Anleitung, dabei nicht vergessen die Homebridge/alle Instanzen zu stoppen:
You will need your iPhone and console access to the server you are using or plan to use for Homebridge. All the following steps are to be performed on the console of your server, unless stated. While it might appear to be just too much, it hardly takes a minute to get done provided you have a functioning Homebridge setup.
Make sure you perform the cleanup steps after you are done.
- If you haven't already, install and configure Homebridge.
- Install this plugin using
npm i -g homebridge-tuya-lan
. - Add all your devices to the Tuya Smart app to avoid having to repeat these steps.
- Using any app other than Tuya Smart might not result in the desired outcome. You might be able to install the Tuya Smart app, extract
id
andkey
combinations, and simply abandon or uninstall it, without thekey
going bad.
- Using any app other than Tuya Smart might not result in the desired outcome. You might be able to install the Tuya Smart app, extract
- Make sure the Tuya Smart app is not running or minimized.
- Follow these steps to get the
id
andkey
combinations for the devices. These instructions were created for iOS 13; using older versions of iOS, you might see some slight differences.- Execute
tuya-lan-find
. Within a few seconds, you would be shown (a) a QR code and (b) details of the proxy server.- If you have a new type of device, you can run
tuya-lan-find --schema
to get the full definition of your device.
- If you have a new type of device, you can run
- Scan the QR code with your iPhone. If you don't know how to do that, just say "Hey Siri, scan a QR code!" and point the camera at the barcode.
- Your phone will ask you your permission to open Safari; let it.
- Safari will alert you that the website is trying to download a configuration profile; allow that too.
- A confirmation message will be shown, letting you know that the profile was downloaded. Hit
Close
. - Launch the
Settings
app on your phone. Just below your name, you would findProfile Downloaded
; tap it.-
If you are using an older iOS, you won't see that. Go to
General
, scroll down, and tap onProfiles & Device Management
. Tap onNodeMITMProxyCA
and follow the steps below.
-
If you are using an older iOS, you won't see that. Go to
- You would find yourself on the
Install Profile
screen forNodeMITMProxyCA
. HitInstall
on the top-right of the screen. If your phone has a passcode, you would be asked to enter it. A confirmation dialog will pop up; hitInstall
again. Finally hitDone
to close it all.- We will get rid of this "profile" later.
- On your iPhone, go to
Settings
, openGeneral
, and tap onAbout
. Towards the bottom, locate and openCertificate Trust Settings
. - Enable full trust for
NodeMITMProxyCA
by flicking its switch. You will be prompted with a warning; just hitContinue
. - On your iPhone, go to
Settings
and openWi-Fi
. Hit the info button, which is a bluei
in a circle, for the WiFi connection you are using. This will open the configuration for your connection. - On your WiFi connection screen, scroll to the bottom and hit
Configure Proxy
. This will open the proxy configuration screen. - On the proxy configuration screen, tap on
Manual
to reveal additional settings. Use the details shown below the QR code to fill in the server and port.- Leave the
Authentication
switch off.
- Leave the
- On your phone, open the Tuya Smart app; if it was already open, kill it and open it again. In a few seconds, a several lines will appear under the QR code on the console.
-
Grab the
id
andkey
for your devices.
-
Grab the
- After storing the
id
andkey
combinations elsewhere, follow the clean up instructions below to get rid of all the things we won't need anymore, and to be able to use your phone again.
- Execute
- Update the
config.json
file of your Homebridge setup, by modifying the sample configurations and using theid
andkey
combinations.
!NICHT Vergessen! -> Cleanup
After taking note of your
id
andkey
combinations, follow this steps to revert the changes you made above. Do not miss these!- On your iPhone, go to
Settings
and openWi-Fi
. Hit the info button, which is a bluei
in a circle, for the WiFi connection you are using. OpenConfigure Proxy
and selectOff
. - On your iPhone, go to
Settings
>General
>About
>Certificate Trust Settings
and switch off full trust forNodeMITMProxyCA
. - On your iPhone, go to
Settings
>General
>Profiles & Device Management
>NodeMITMProxyCA
and tapRemove Profile
. If one is set, you will be asked to enter your passcode. You would also be asked to confirm that you want to remove the profile; hitRemove
.
Original Link zum Set-Up: https://github.com/AMoo-Miki/h…n/wiki/Setup-Instructions
Hast du ein iPhone oder Android benutzt
Ich benutze ein iPhone X. Funktionierte damit wunderbar.
Bin heute auch am Rechner und Programmieren. Kannst dich melden falls du bei nem Schritt nicht weiterkommst.
Grüße, Adrian
Also ich habe das alles nochmal Schritt für Schritt ausgeführt und bei mir passiert nichts.
- Waiting for Request aber keine Infos.
- Port ist auch 8001 bei mir
- Die App bringt einen verbindungsfehler
Hast du den Proxy am Handy eingestellt? IP Adresse und Port vom Raspberry Pi. Port ist dann bei dir die 8001.
Ist dein Handy im selben LAN/WLAN wie die Homebridge? Was hast du für ein Router? ggf. musst du den Netzwerkgeräten im selben LAN die Kommunikation untereinander zulassen.
Was mir selbst ab und an mal durch die "Lappen" ging, war die Tuya App bzw. die App in der du deine Steckdosen hast zu schließen während des Setups. Also erst die App dann öffnen , wenn du alles eingerichtet hast, samt Proxyservereinstellung am Handy.
Hast du den Proxy am Handy eingestellt? IP Adresse und Port vom Raspberry Pi. Port ist dann bei dir die 8001.
Ist dein Handy im selben LAN/WLAN wie die Homebridge? Was hast du für ein Router? ggf. musst du den Netzwerkgeräten im selben LAN die Kommunikation untereinander zulassen.
Was mir selbst ab und an mal durch die "Lappen" ging, war die Tuya App bzw. die App in der du deine Steckdosen hast zu schließen während des Setups. Also erst die App dann öffnen , wenn du alles eingerichtet hast, samt Proxyservereinstellung am Handy.
würde ich jetzt mal alles mit Ja beantworten.
Hab ne fritzbox und Kommunikation unter Geräten im eigenen Netzwerk funktioniert.
Probier die Fehlermeldung einfach zu bestätigen und Schalte in der App einfach mal ne Steckdose.
Probier die Fehlermeldung einfach zu bestätigen und Schalte in der App einfach mal ne Steckdose.
hab ich auch probiert. Da kommt nix. Ich glaub ich lasse es jetzt erstmal bevor ich die homebridge wieder Schrotte 😄
Haha, okay..
Ist aber sehr kurios.
Hast du Zugriff auf ein iPhone?
Wäre auch noch ne Möglichkeit. Einfach von nem Kollegen mal leihen/zu nem Bier einladen.
Haha, okay..
Ist aber sehr kurios.
Hast du Zugriff auf ein iPhone?
Wäre auch noch ne Möglichkeit. Einfach von nem Kollegen mal leihen/zu nem Bier einladen.
ich nutze nur iPhone 😉. Und zum Bier einladen ist ja gerade schlecht 😂.
Danke für deine Hilfe!