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

Begonnen von CoolTux, 20 Oktober 2016, 22:06:57

Vorheriges Thema - Nächstes Thema

Ma_Bo

Wenn ich eine Playbulb anlege, die nicht eingeschaltet ist, kommt folgendes :

2016.10.31 23:18:09.144 1: PERL WARNING: substr outside of string at ./FHEM/31_PlayBulbCandle.pm line 295.
2016.10.31 23:18:09.144 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/31_PlayBulbCandle.pm line 295.
2016.10.31 23:18:09.284 1: PERL WARNING: Integer overflow in hexadecimal number at ./FHEM/31_PlayBulbCandle.pm line 313.
2016.10.31 23:18:09.285 1: PERL WARNING: Hexadecimal number > 0xffffffff non-portable at ./FHEM/31_PlayBulbCandle.pm line 313.
2016.10.31 23:18:31.899 1: Timeout for PlayBulbCandle_Run reached, terminated process 19097
2016.10.31 23:18:31.899 3: (PlayBulbCandle2) - The BlockingCall Process terminated unexpectedly. Timedout
NUC mit FHEM, HM Heizungsthermostate, HM Wandthermostate, Intertechno Funksteckdosen, 10" Tablet als Wanddisplay, KeyMatic, Fensterkontakte, Fensterkontakte umgebaut als Wassermelder und Briefkastenmelder, Aussenthermostat, Anwesenheitssteuerung über Fritz Box, Google Home usw. usw.

herrmannj

Zitat von: CoolTux am 31 Oktober 2016, 23:12:35
Jörg ich nimm Dich beim Wort. Zu Weihnachten möchte ich meine Tochter gerne das Licht in der Wohnung auspusten lassen. Die wird sich freuen wie ein Schneekönig. Lach

Yepp, ich geb Gas!

CoolTux

So Leute ich mach mich dann mal dünne. Um 5 Uhr ist die Nacht vorbei.
Jörg ich wünsch Dir was, wir telefonieren mal wieder bei Gelegenheit.



Grüße
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

fxstc

Alles fein.
War nur Spaß.
Das hier 1000mal mehr als ich heut morgen noch hoffen durfte.

Hab vielen Dank dafür.

CoolTux

Zitat von: Ma_Bo am 31 Oktober 2016, 23:19:49
Wenn ich eine Playbulb anlege, die nicht eingeschaltet ist, kommt folgendes :

2016.10.31 23:18:09.144 1: PERL WARNING: substr outside of string at ./FHEM/31_PlayBulbCandle.pm line 295.
2016.10.31 23:18:09.144 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/31_PlayBulbCandle.pm line 295.
2016.10.31 23:18:09.284 1: PERL WARNING: Integer overflow in hexadecimal number at ./FHEM/31_PlayBulbCandle.pm line 313.
2016.10.31 23:18:09.285 1: PERL WARNING: Hexadecimal number > 0xffffffff non-portable at ./FHEM/31_PlayBulbCandle.pm line 313.
2016.10.31 23:18:31.899 1: Timeout for PlayBulbCandle_Run reached, terminated process 19097
2016.10.31 23:18:31.899 3: (PlayBulbCandle2) - The BlockingCall Process terminated unexpectedly. Timedout


Jepp das ist korrekt. Es gibt nicht wirklich ein Fehlerhandling im Modul. Da mache ich mir mal bei einer langen Klositzung Gedanken drum  ;D
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

herrmannj

Zitat von: CoolTux am 31 Oktober 2016, 23:32:19
Jepp das ist korrekt. Es gibt nicht wirklich ein Fehlerhandling im Modul. Da mache ich mir mal bei einer langen Klositzung Gedanken drum  ;D

Mit Kerze. Oder ? Und Spülung beim aus-pusten der Kerze *fg ;D

Gute Nacht.

vg
joerg

waschbaerbauch

Ihr seid ja alle wahnsinnig - aber ich mag das!  ;D

Batterie steht bei mir oft auf 100 - war auch schon mal bei 72 oder sowas, aber so recht kann ich das nicht glauben was da steht. Das hat bei mir eher den Anschein voll oder leer.

Wenn ich den Modus 'color=off' setze und dann abschalte kommt beim einschalten die letzte RGB Farbe und nicht 'color=off'.

CoolTux

Ja das stimmt. Das ist mit Absicht so gemacht. Wenn es anders gewünscht ist kann ich da aber auch noch was machen.
Das mit der Batterie habe ich auch schon gemerkt. Aber das kennt man ja, ist der Verbraucher aus erholt sich die Batterie immer etwas.

@ALL
Ich war auf Klo, lange Sitzung. Was soll ich sagen. Fehlerhändling ist drin. Die Perlwarnungen kommen nun nicht mehr.
Desweiteren habe ich die Handhabung mit den Char geändert. Ab sofort gibt man als Attribut nur noch das Model an welches man hat und den Rest macht das Modul.
Ich werde heute Abend noch etwas Feinschliff machen und dann eine Version 0.8 online stellen.


Grüße
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

CoolTux

So eine neue Version ist online. Version 0.8.0. Änderungen und Neuerungen können im ersten Post nachgelesen werden.


Grüße
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

waschbaerbauch


CoolTux

Also von meiner Seite her wird jetzt nur noch die Möglichkeit dazukommen mehrere Befehle auf einmal zu senden. Zum Beispiel

set Bulb1 on : rgb ff7635 : sat 120 : effect none;


Das baue ich im laufe der nächsten Tage mal ein.
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

Ma_Bo

Nach einem Neustart bekomme ich folgende Meldungen im LOG:

2016.11.02 18:12:04.169 1: PERL WARNING: substr outside of string at ./FHEM/31_PlayBulbCandle.pm line 328, <$fh> line 10089.
2016.11.02 18:12:04.169 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/31_PlayBulbCandle.pm line 328, <$fh> line 10089.
2016.11.02 18:12:04.240 1: PERL WARNING: substr outside of string at ./FHEM/31_PlayBulbCandle.pm line 328, <$fh> line 10142.
2016.11.02 18:12:04.241 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/31_PlayBulbCandle.pm line 328, <$fh> line 10142.
2016.11.02 18:12:04.381 1: PERL WARNING: substr outside of string at ./FHEM/31_PlayBulbCandle.pm line 328, <$fh> line 10147.
2016.11.02 18:12:04.382 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/31_PlayBulbCandle.pm line 328, <$fh> line 10147.
2016.11.02 18:12:04.729 1: PERL WARNING: Integer overflow in hexadecimal number at ./FHEM/31_PlayBulbCandle.pm line 346, <$fh> line 10089.
2016.11.02 18:12:04.729 1: PERL WARNING: Hexadecimal number > 0xffffffff non-portable at ./FHEM/31_PlayBulbCandle.pm line 346, <$fh> line 10089.
2016.11.02 18:12:04.870 1: PERL WARNING: Integer overflow in hexadecimal number at ./FHEM/31_PlayBulbCandle.pm line 346, <$fh> line 10142.
2016.11.02 18:12:04.871 1: PERL WARNING: Hexadecimal number > 0xffffffff non-portable at ./FHEM/31_PlayBulbCandle.pm line 346, <$fh> line 10142.
2016.11.02 18:12:04.942 1: PERL WARNING: Integer overflow in hexadecimal number at ./FHEM/31_PlayBulbCandle.pm line 346, <$fh> line 10147.
2016.11.02 18:12:04.942 1: PERL WARNING: Hexadecimal number > 0xffffffff non-portable at ./FHEM/31_PlayBulbCandle.pm line 346, <$fh> line 10147.


Ich vermute mal, weil die falsche Version der Playbulbs eingetragen wurde, es stand V5 im attr model, aber ich habe ja V6
NUC mit FHEM, HM Heizungsthermostate, HM Wandthermostate, Intertechno Funksteckdosen, 10" Tablet als Wanddisplay, KeyMatic, Fensterkontakte, Fensterkontakte umgebaut als Wassermelder und Briefkastenmelder, Aussenthermostat, Anwesenheitssteuerung über Fritz Box, Google Home usw. usw.

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

joshi

Hallo CoolTux,

ich habe eine Glühlampe mit E27 Fassung (Playbulp smart). Möchtest du diese noch deinem Modul hinzufügen?

Ich habe die Handles unter https://github.com/00joshi/Playbulb/blob/master/protocols/smart.md dokumentiert.

Viele Grüße
JoShi

CoolTux

Sehr gerne. So langsam komme ich wohl nicht rum da einen anderen Namen zu wählen. Wäre bloß doof weil dan alle Devices neu eingerichtet werden müssten.
Ich baue es die Tage ein. Es gibt auch eine Weihnachtslichterkette. Habe ich heute auf Amazon gefunden.
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