[31_PLAYBULB.pm] Modul für MiPow PLAYBULB Candle Bluetooth Lampen

Begonnen von CoolTux, 15 November 2016, 20:22:00

Vorheriges Thema - Nächstes Thema

CoolTux

Und schaltet die Lampe denn auch?

Bleiben die Prozesse vom FHEM schalten noch hängen?
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

jonah

Die Lampe scheint nicht auf deinen genannten Befehl zu reagieren.
Wenn ich mich wie hier beschrieben https://pdominique.wordpress.com/2015/01/02/hacking-playbulb-candles/ mit den Lampen verbinde kann ich sie schalten.
Wie kann ich den Befehl char-write-cmd 0x0014 0000FF0000001F00 von der Seite (grünes Flash-Licht) in deine Art der Befehlsschreibweise (gatttool -b AC:E6:4B:07:B5:E8 --char-write -a 0x14 -n 008b3dff03000a00) umändern?

Und ein Schalten über fhem setzt die Lampen reproduzierbar auf unreachable, wie in #340 beschrieben.

CoolTux

gatttool -b AC:E6:4B:07:B5:E8 --char-write -a 0x14 -n 0000FF0000001F00

So
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

jonah

Okay, danke. Nein, auch dieser Befehl kommt nicht bei der Kerze an.
Im Terminal passiert dann auch nichts; der "Cursor" ist in grüner Farbe in einer neuen Zeile und wartet auf eine Eingabe. Aber es passiert nichts, bis ich mit strg+C diesen "Befehl" verlasse.

pi@fhem:~ $ gatttool -b AC:E6:4B:07:B5:E8 --char-write -a 0x14 -n 0000FF0000001F00


CoolTux

also da sollte definitiv irgendwas kommen. Du kannst aber gerne mal

gatttool -b AC:E6:4B:07:B5:E8 --char-write-req -a 0x14 -n 0000FF0000001F00


versuchen.
Einmal wenn die Lampe aus ist, also nicht am schalter aus sondern so aus. Sprich anschalten dann macht sie ja den Farbverlauf, dann auspusten. Ja da ist ein loch beim schalter auf den pusten dann geht sie aus.
Dann den befehl abschicken.

Wenn da auch nichts passiert. Lampe an pusten und noch mal den Befehl los schicken.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

jflachsb

Hallo,

habe auch das "unreachable" Problem.

Gibt es neue Erkenntnisse. Ich benutze einen Pi3 mit dem integrierten Bluetooth und Debian Stretch mit Blues 5.47.
RasPI2 mit Stretch, fhem5.8, 2xNanoCul (868MHz und 433MHz), Jeelink (Eigenbau, 433MHZ)
MAX!:Thermostat+, Fensterkontakte
LaCrosse: Sensoren TX29DTH
Funksteckdosen: REV Funk-Schalt-Set, Elro AB440
WIFI Schalter: SonOff POW, Arilux LC-01 , Arilux LC-10

CoolTux

Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

LordVoodoo

Hallo zusammen,

leider bekomme ich das Modul nicht zum Laufen, dabei war mir das vergangenes Jahr noch gelungen. Ich habe eine Playbulb String, die den Weihnachtsbaum schmückt.

Ich nutze einen Raspberry 3 mit Stretch und internem Bluetooth.

Das Gerät wird mittels "sudo hcitools lescan" erkannt und ein Connect-Befehl im gatttool wird positiv bestätigt.

Hat jemand einen Hinweis für mich, wonach ich noch suchen kann?
Installiert ist Bluez 5.43 (Befehl bluetoothctl -v).

Vielen Dank!

Byte09

Hi Cooltux

ich habe das Modul erfolgreich am laufen und auch diverse playbulps eingebunden. Jetzt habe ich allerdings eine Sphere Model BTL 301 W geschenkt bekommen. Da diese in der Auswahlliste ja nicht vorhanden ist habe ich mal alle angebotenen Modelle versucht , leider ohne Erfolg.

Bei einigen werden zwar readings gesetzt , aber ein ansteuern ist nicht möglich.

Ist es Möglich dieses Modell auch einzubinden ?

Gruss Byte09

CoolTux

Das sollte schon möglich sein.


gatttool -b XX:XX:XX:XX:XX:XX --characteristics

Für die x'e bitte die MAC verwenden und den Output hier in Codetags posten.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

Byte09

#355
Zitat von: CoolTux am 11 Dezember 2017, 17:26:16
Das sollte schon möglich sein.


gatttool -b XX:XX:XX:XX:XX:XX --characteristics

Für die x'e bitte die MAC verwenden und den Output hier in Codetags posten.


danke erstmal, hier der entsprechende Output

root@raspberrypi:~# gatttool -b E8:CD:4B:16:AC:E6 --characteristics
handle = 0x0002, char properties = 0x20, char value handle = 0x0003, uuid = 0000                                                                                        2a05-0000-1000-8000-00805f9b34fb
handle = 0x0006, char properties = 0x0a, char value handle = 0x0007, uuid = 0000                                                                                        2a00-0000-1000-8000-00805f9b34fb
handle = 0x0008, char properties = 0x02, char value handle = 0x0009, uuid = 0000                                                                                        2a01-0000-1000-8000-00805f9b34fb
handle = 0x000a, char properties = 0x02, char value handle = 0x000b, uuid = 0000                                                                                        2a04-0000-1000-8000-00805f9b34fb
handle = 0x000d, char properties = 0x0a, char value handle = 0x000e, uuid = 0000                                                                                        1013-d102-11e1-9b23-00025b00a5a5
handle = 0x000f, char properties = 0x08, char value handle = 0x0010, uuid = 0000                                                                                        1018-d102-11e1-9b23-00025b00a5a5
handle = 0x0011, char properties = 0x12, char value handle = 0x0012, uuid = 0000                                                                                        1014-d102-11e1-9b23-00025b00a5a5
handle = 0x0014, char properties = 0x02, char value handle = 0x0015, uuid = 0000                                                                                        1011-d102-11e1-9b23-00025b00a5a5
handle = 0x0017, char properties = 0x10, char value handle = 0x0018, uuid = 0000                                                                                        2a37-0000-1000-8000-00805f9b34fb
handle = 0x001a, char properties = 0x08, char value handle = 0x001b, uuid = 0000                                                                                        fff2-0000-1000-8000-00805f9b34fb
handle = 0x001c, char properties = 0x06, char value handle = 0x001d, uuid = 0000                                                                                        fff3-0000-1000-8000-00805f9b34fb
handle = 0x001e, char properties = 0x02, char value handle = 0x001f, uuid = 0000                                                                                        fff1-0000-1000-8000-00805f9b34fb
handle = 0x0020, char properties = 0x08, char value handle = 0x0021, uuid = 0000                                                                                        1234-0000-1000-8000-00805f9b34fb
handle = 0x0022, char properties = 0x0a, char value handle = 0x0023, uuid = 0000                                                                                        fff7-0000-1000-8000-00805f9b34fb
handle = 0x0024, char properties = 0x02, char value handle = 0x0025, uuid = 0000                                                                                        fff8-0000-1000-8000-00805f9b34fb
handle = 0x0026, char properties = 0x06, char value handle = 0x0027, uuid = 0000                                                                                        fffb-0000-1000-8000-00805f9b34fb
handle = 0x0028, char properties = 0x06, char value handle = 0x0029, uuid = 0000                                                                                        fffc-0000-1000-8000-00805f9b34fb
handle = 0x002a, char properties = 0x0a, char value handle = 0x002b, uuid = 0000                                                                                        fffd-0000-1000-8000-00805f9b34fb
handle = 0x002c, char properties = 0x0a, char value handle = 0x002d, uuid = 0000                                                                                        fffe-0000-1000-8000-00805f9b34fb
handle = 0x002e, char properties = 0x0a, char value handle = 0x002f, uuid = 0000                                                                                        ffff-0000-1000-8000-00805f9b34fb
handle = 0x0030, char properties = 0x0a, char value handle = 0x0031, uuid = 0000                                                                                        fff5-0000-1000-8000-00805f9b34fb
handle = 0x0033, char properties = 0x12, char value handle = 0x0034, uuid = 0000                                                                                        2a19-0000-1000-8000-00805f9b34fb
handle = 0x0037, char properties = 0x08, char value handle = 0x0038, uuid = c4ed                                                                                        c000-9daf-11e3-8000-00025b000b00
handle = 0x0039, char properties = 0x02, char value handle = 0x003a, uuid = c4ed                                                                                        c000-9daf-11e3-8001-00025b000b00
handle = 0x003b, char properties = 0x0a, char value handle = 0x003c, uuid = c4ed                                                                                        c000-9daf-11e3-8002-00025b000b00
handle = 0x003d, char properties = 0x1c, char value handle = 0x003e, uuid = c4ed                                                                                        c000-9daf-11e3-8003-00025b000b00
handle = 0x0040, char properties = 0x1c, char value handle = 0x0041, uuid = c4ed                                                                                        c000-9daf-11e3-8004-00025b000b00
handle = 0x0043, char properties = 0x0a, char value handle = 0x0044, uuid = c4ed                                                                                        c000-9daf-11e3-8005-00025b000b00
handle = 0x0045, char properties = 0x0a, char value handle = 0x0046, uuid = c4ed                                                                                        c000-9daf-11e3-8006-00025b000b00
handle = 0x0048, char properties = 0x02, char value handle = 0x0049, uuid = 0000                                                                                        2a26-0000-1000-8000-00805f9b34fb
handle = 0x004a, char properties = 0x02, char value handle = 0x004b, uuid = 0000                                                                                        2a50-0000-1000-8000-00805f9b34fb


gruss Byte09



CoolTux

Zitat von: Byte09 am 11 Dezember 2017, 17:38:29

danke erstmal, hier der entsprechende Output

root@raspberrypi:~# gatttool -b E8:CD:4B:16:AC:E6 --characteristics
handle = 0x0002, char properties = 0x20, char value handle = 0x0003, uuid = 0000                                                                                        2a05-0000-1000-8000-00805f9b34fb
handle = 0x0006, char properties = 0x0a, char value handle = 0x0007, uuid = 0000                                                                                        2a00-0000-1000-8000-00805f9b34fb
handle = 0x0008, char properties = 0x02, char value handle = 0x0009, uuid = 0000                                                                                        2a01-0000-1000-8000-00805f9b34fb
handle = 0x000a, char properties = 0x02, char value handle = 0x000b, uuid = 0000                                                                                        2a04-0000-1000-8000-00805f9b34fb
handle = 0x000d, char properties = 0x0a, char value handle = 0x000e, uuid = 0000                                                                                        1013-d102-11e1-9b23-00025b00a5a5
handle = 0x000f, char properties = 0x08, char value handle = 0x0010, uuid = 0000                                                                                        1018-d102-11e1-9b23-00025b00a5a5
handle = 0x0011, char properties = 0x12, char value handle = 0x0012, uuid = 0000                                                                                        1014-d102-11e1-9b23-00025b00a5a5
handle = 0x0014, char properties = 0x02, char value handle = 0x0015, uuid = 0000                                                                                        1011-d102-11e1-9b23-00025b00a5a5
handle = 0x0017, char properties = 0x10, char value handle = 0x0018, uuid = 0000                                                                                        2a37-0000-1000-8000-00805f9b34fb
handle = 0x001a, char properties = 0x08, char value handle = 0x001b, uuid = 0000                                                                                        fff2-0000-1000-8000-00805f9b34fb
handle = 0x001c, char properties = 0x06, char value handle = 0x001d, uuid = 0000                                                                                        fff3-0000-1000-8000-00805f9b34fb
handle = 0x001e, char properties = 0x02, char value handle = 0x001f, uuid = 0000                                                                                        fff1-0000-1000-8000-00805f9b34fb
handle = 0x0020, char properties = 0x08, char value handle = 0x0021, uuid = 0000                                                                                        1234-0000-1000-8000-00805f9b34fb
handle = 0x0022, char properties = 0x0a, char value handle = 0x0023, uuid = 0000                                                                                        fff7-0000-1000-8000-00805f9b34fb
handle = 0x0024, char properties = 0x02, char value handle = 0x0025, uuid = 0000                                                                                        fff8-0000-1000-8000-00805f9b34fb
handle = 0x0026, char properties = 0x06, char value handle = 0x0027, uuid = 0000                                                                                        fffb-0000-1000-8000-00805f9b34fb
handle = 0x0028, char properties = 0x06, char value handle = 0x0029, uuid = 0000                                                                                        fffc-0000-1000-8000-00805f9b34fb
handle = 0x002a, char properties = 0x0a, char value handle = 0x002b, uuid = 0000                                                                                        fffd-0000-1000-8000-00805f9b34fb
handle = 0x002c, char properties = 0x0a, char value handle = 0x002d, uuid = 0000                                                                                        fffe-0000-1000-8000-00805f9b34fb
handle = 0x002e, char properties = 0x0a, char value handle = 0x002f, uuid = 0000                                                                                        ffff-0000-1000-8000-00805f9b34fb
handle = 0x0030, char properties = 0x0a, char value handle = 0x0031, uuid = 0000                                                                                        fff5-0000-1000-8000-00805f9b34fb
handle = 0x0033, char properties = 0x12, char value handle = 0x0034, uuid = 0000                                                                                        2a19-0000-1000-8000-00805f9b34fb
handle = 0x0037, char properties = 0x08, char value handle = 0x0038, uuid = c4ed                                                                                        c000-9daf-11e3-8000-00025b000b00
handle = 0x0039, char properties = 0x02, char value handle = 0x003a, uuid = c4ed                                                                                        c000-9daf-11e3-8001-00025b000b00
handle = 0x003b, char properties = 0x0a, char value handle = 0x003c, uuid = c4ed                                                                                        c000-9daf-11e3-8002-00025b000b00
handle = 0x003d, char properties = 0x1c, char value handle = 0x003e, uuid = c4ed                                                                                        c000-9daf-11e3-8003-00025b000b00
handle = 0x0040, char properties = 0x1c, char value handle = 0x0041, uuid = c4ed                                                                                        c000-9daf-11e3-8004-00025b000b00
handle = 0x0043, char properties = 0x0a, char value handle = 0x0044, uuid = c4ed                                                                                        c000-9daf-11e3-8005-00025b000b00
handle = 0x0045, char properties = 0x0a, char value handle = 0x0046, uuid = c4ed                                                                                        c000-9daf-11e3-8006-00025b000b00
handle = 0x0048, char properties = 0x02, char value handle = 0x0049, uuid = 0000                                                                                        2a26-0000-1000-8000-00805f9b34fb
handle = 0x004a, char properties = 0x02, char value handle = 0x004b, uuid = 0000                                                                                        2a50-0000-1000-8000-00805f9b34fb


gruss Byte09

Irgendwas scheint da auseinander gerissen zu sein. Kannst du bitte noch mal. Mir sind die uuid im Zusammenhang wichtig
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

Byte09

 schaut jetzt glaube ich besser aus :

root@raspberrypi:~# gatttool -b E8:CD:4B:16:AC:E6 --characteristics
handle = 0x0002, char properties = 0x20, char value handle = 0x0003, uuid = 00002a05-0000-1000-8000-00805f9b34fb
handle = 0x0006, char properties = 0x0a, char value handle = 0x0007, uuid = 00002a00-0000-1000-8000-00805f9b34fb
handle = 0x0008, char properties = 0x02, char value handle = 0x0009, uuid = 00002a01-0000-1000-8000-00805f9b34fb
handle = 0x000a, char properties = 0x02, char value handle = 0x000b, uuid = 00002a04-0000-1000-8000-00805f9b34fb
handle = 0x000d, char properties = 0x0a, char value handle = 0x000e, uuid = 00001013-d102-11e1-9b23-00025b00a5a5
handle = 0x000f, char properties = 0x08, char value handle = 0x0010, uuid = 00001018-d102-11e1-9b23-00025b00a5a5
handle = 0x0011, char properties = 0x12, char value handle = 0x0012, uuid = 00001014-d102-11e1-9b23-00025b00a5a5
handle = 0x0014, char properties = 0x02, char value handle = 0x0015, uuid = 00001011-d102-11e1-9b23-00025b00a5a5
handle = 0x0017, char properties = 0x10, char value handle = 0x0018, uuid = 00002a37-0000-1000-8000-00805f9b34fb
handle = 0x001a, char properties = 0x08, char value handle = 0x001b, uuid = 0000fff2-0000-1000-8000-00805f9b34fb
handle = 0x001c, char properties = 0x06, char value handle = 0x001d, uuid = 0000fff3-0000-1000-8000-00805f9b34fb
handle = 0x001e, char properties = 0x02, char value handle = 0x001f, uuid = 0000fff1-0000-1000-8000-00805f9b34fb
handle = 0x0020, char properties = 0x08, char value handle = 0x0021, uuid = 00001234-0000-1000-8000-00805f9b34fb
handle = 0x0022, char properties = 0x0a, char value handle = 0x0023, uuid = 0000fff7-0000-1000-8000-00805f9b34fb
handle = 0x0024, char properties = 0x02, char value handle = 0x0025, uuid = 0000fff8-0000-1000-8000-00805f9b34fb
handle = 0x0026, char properties = 0x06, char value handle = 0x0027, uuid = 0000fffb-0000-1000-8000-00805f9b34fb
handle = 0x0028, char properties = 0x06, char value handle = 0x0029, uuid = 0000fffc-0000-1000-8000-00805f9b34fb
handle = 0x002a, char properties = 0x0a, char value handle = 0x002b, uuid = 0000fffd-0000-1000-8000-00805f9b34fb
handle = 0x002c, char properties = 0x0a, char value handle = 0x002d, uuid = 0000fffe-0000-1000-8000-00805f9b34fb
handle = 0x002e, char properties = 0x0a, char value handle = 0x002f, uuid = 0000ffff-0000-1000-8000-00805f9b34fb
handle = 0x0030, char properties = 0x0a, char value handle = 0x0031, uuid = 0000fff5-0000-1000-8000-00805f9b34fb
handle = 0x0033, char properties = 0x12, char value handle = 0x0034, uuid = 00002a19-0000-1000-8000-00805f9b34fb
handle = 0x0037, char properties = 0x08, char value handle = 0x0038, uuid = c4edc000-9daf-11e3-8000-00025b000b00
handle = 0x0039, char properties = 0x02, char value handle = 0x003a, uuid = c4edc000-9daf-11e3-8001-00025b000b00
handle = 0x003b, char properties = 0x0a, char value handle = 0x003c, uuid = c4edc000-9daf-11e3-8002-00025b000b00
handle = 0x003d, char properties = 0x1c, char value handle = 0x003e, uuid = c4edc000-9daf-11e3-8003-00025b000b00
handle = 0x0040, char properties = 0x1c, char value handle = 0x0041, uuid = c4edc000-9daf-11e3-8004-00025b000b00
handle = 0x0043, char properties = 0x0a, char value handle = 0x0044, uuid = c4edc000-9daf-11e3-8005-00025b000b00
handle = 0x0045, char properties = 0x0a, char value handle = 0x0046, uuid = c4edc000-9daf-11e3-8006-00025b000b00
handle = 0x0048, char properties = 0x02, char value handle = 0x0049, uuid = 00002a26-0000-1000-8000-00805f9b34fb
handle = 0x004a, char properties = 0x02, char value handle = 0x004b, uuid = 00002a50-0000-1000-8000-00805f9b34fb
root@raspberrypi:~# ^C


gruss Byte09

CoolTux

Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net