Eurotronic comet blue Modul Entwicklung

Begonnen von gent, 28 November 2016, 21:45:59

Vorheriges Thema - Nächstes Thema

barneybaer

#60
Version 0.0.10

char-read-hnd 0x0018
Characteristic value/descriptor: 30 2e 30 2e 31 30

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

barneybaer

Also entweder ich teste zuhause noch nen bissl und berichte dir oder du wartest bis dein Gerät da ist :)

CoolTux

ich werde heute abend erstmal den Code weiter schreiben. Kann aber schon mal eine neue Version hochladen wenn Interesse besteht. devicename auslesen und Firmware auslesen ist hinzugekommen. das set muss ich aber erst noch heute abend machen
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 neue Version ist oben. Bitte am Anfang ihm etwas Zeit geben, beim ersten run holt er sich erst die Firmware und danach die temperaturen. Kannst auch get temperatures machen. Aber nur wenn Du einfach nur ein reload und kein restart machst.
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

barneybaer


barneybaer


2018.01.19 17:16:01 1: PERL WARNING: Useless use of hash element in void context at ./FHEM/74_CometBlueBTLE.pm line 155.
2018.01.19 17:16:01 1: PERL WARNING: Useless use of hash element in void context at ./FHEM/74_CometBlueBTLE.pm line 156.
2018.01.19 17:16:01 1: PERL WARNING: Useless use of hash element in void context at ./FHEM/74_CometBlueBTLE.pm line 157.
2018.01.19 17:16:01 1: reload: Error:Modul 74_CometBlueBTLE deactivated:
syntax error at ./FHEM/74_CometBlueBTLE.pm line 351, near "=;"
Global symbol "$name" requires explicit package name at ./FHEM/74_CometBlueBTLE.pm line 799.
syntax error at ./FHEM/74_CometBlueBTLE.pm line 800, near ")
    sprintf"
Global symbol "$name" requires explicit package name at ./FHEM/74_CometBlueBTLE.pm line 801.
Global symbol "$name" requires explicit package name at ./FHEM/74_CometBlueBTLE.pm line 802.
Global symbol "$name" requires explicit package name at ./FHEM/74_CometBlueBTLE.pm line 803.
Global symbol "$name" requires explicit package name at ./FHEM/74_CometBlueBTLE.pm line 804.
Global symbol "$name" requires explicit package name at ./FHEM/74_CometBlueBTLE.pm line 805.

2018.01.19 17:16:01 0: syntax error at ./FHEM/74_CometBlueBTLE.pm line 351, near "=;"
Global symbol "$name" requires explicit package name at ./FHEM/74_CometBlueBTLE.pm line 799.
syntax error at ./FHEM/74_CometBlueBTLE.pm line 800, near ")
    sprintf"
Global symbol "$name" requires explicit package name at ./FHEM/74_CometBlueBTLE.pm line 801.
Global symbol "$name" requires explicit package name at ./FHEM/74_CometBlueBTLE.pm line 802.
Global symbol "$name" requires explicit package name at ./FHEM/74_CometBlueBTLE.pm line 803.
Global symbol "$name" requires explicit package name at ./FHEM/74_CometBlueBTLE.pm line 804.
Global symbol "$name" requires explicit package name at ./FHEM/74_CometBlueBTLE.pm line 805.

CoolTux

jepp sorry, ich weiß schon. Am besten das alte wieder zurück spielen. Ich muss da noch was machen  ::)
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

barneybaer

Kein Problem, muss da jetzt eh nicht heizen :)
Hab jetzt mal die automatischen Programme probiert über die App und die läuft nicht gut. Hab ab 22 Grad Heizung senken gestellt und ab 13 Grad heizen. Beim. Ersten Einstellen ging es da hat er auf 22 Grad gedreht, aber erst wo ich am Gerät auf Automatisch gestellt habe. Beim nächsten ändern der Heizzyklen hat dann nix mehr funktioniert.

CoolTux

so neue version ist raus. bitte einmal testen
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

Zitat von: barneybaer am 19 Januar 2018, 17:30:26
Kein Problem, muss da jetzt eh nicht heizen :)
Hab jetzt mal die automatischen Programme probiert über die App und die läuft nicht gut. Hab ab 22 Grad Heizung senken gestellt und ab 13 Grad heizen. Beim. Ersten Einstellen ging es da hat er auf 22 Grad gedreht, aber erst wo ich am Gerät auf Automatisch gestellt habe. Beim nächsten ändern der Heizzyklen hat dann nix mehr funktioniert.

Also kann man am Thermostat auf Auto und auf Manual stellen? Das muß ja auch irgendwo wieder zu finden sein in unseren gatt Daten
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

barneybaer

#71
Also in der App habe ich keine Möglichkeit Auto und Manuell zu stellen.

So hier der nächste Versuch.

2018.01.19 18:51:10 3: CometBlueBTLE (WZ_Heizung) - Read CometBlueBTLE_ExecGatttool_Run WZ_Heizung|45:EB:xxx|read|0x3
2018.01.19 18:51:10 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b 45:EB:xxx --char-write-req -a 0x48 -n 00000000 2>&1 /dev/null and loop 0
2018.01.19 18:51:13 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully

2018.01.19 18:51:13 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: gatttool result Characteristic value was written successfully

2018.01.19 18:51:13 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Done: gatttool return string: WZ_Heizung|45:EB:xxx|ok|write|0x48|{"gtResult":"no data response"}
2018.01.19 18:51:13 3: CometBlueBTLE (WZ_Heizung) - Read CometBlueBTLE_ExecGatttool_Run WZ_Heizung|45:EB:xxx|read|0x3
2018.01.19 18:51:13 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b 45:EB:xxx --char-read -a 0x3 2>&1 /dev/null and loop 0
2018.01.19 18:51:13 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,43 6f 6d 65 74 20 42 6c 75 65

2018.01.19 18:51:13 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,43 6f 6d 65 74 20 42 6c 75 65

2018.01.19 18:51:13 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Done: gatttool return string: WZ_Heizung|45:EB:xxx|ok|read|0x3|{"gtResult":"43 6f 6d 65 74 20 42 6c 75 65 "}
2018.01.19 18:51:13 3: CometBlueBTLE (WZ_Heizung) - ProcessingNotification
2018.01.19 18:51:13 3: CometBlueBTLE (WZ_Heizung) - ProcessingNotification: handle 0x3
2018.01.19 18:51:13 3: CometBlueBTLE (WZ_Heizung) - FlowerSens handle 0x3
2018.01.19 18:51:13 1: ERROR evaluating {CometBlueBTLE_ExecGatttool_Done('WZ_Heizung|45:EB:xxx|ok|read|0x3|{"gtResult":"43 6f 6d 65 74 20 42 6c 75 65 "}')}: Invalid type '4' in pack at ./FHEM/74_CometBlueBTLE.pm line 693


Edit: das bekomme ich bei allen 3 get Anfragen.

CoolTux

typischer kopie paste fehler wie man so schön sagt.

Auf ein neues
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

barneybaer

#73
Einmal ein "list"

Internals:
   BTMAC      45:EB:xxx
   DEF        45:EB:xxx
   INTERVAL   300
   NAME       WZ_Heizung
   NOTIFYDEV  global,WZ_Heizung
   NR         68
   NTFY_ORDER 50-WZ_Heizung
   STATE      active
   TYPE       CometBlueBTLE
   VERSION    0.0.13
   loglevel   4
   READINGS:
     2018-01-19 19:27:53   battery         ok
     2018-01-19 19:27:53   batteryLevel    66
     2018-01-19 19:27:53   desired-temp    13.5
     2018-01-19 19:27:14   devicename      C�mPtB�uP
     2018-01-19 19:27:39   firmware        0�0�1
     2018-01-19 19:27:53   measured-temp   17.5
     2018-01-19 19:27:53   state           active
     2018-01-19 19:27:53   tempComfort     12.5
     2018-01-19 19:27:53   tempEco         26
     2018-01-19 19:27:53   tempOffset      7
     2018-01-19 19:27:53   winOpnPeriod    10
     2018-01-19 19:27:53   winOpnState     4
   helper:
     CallBattery 0
     updateTimeCallBattery 1516386473.13675
     updateTimestampCallBattery 2018-01-19 19:27:53
     writePin   0
     paramGatttool:
       handle     0x3d
       mod        read
Attributes:


Und das log dazu


2018.01.19 19:27:07 1: Timeout for PLAYBULB_BlockingRun reached, terminated process 4283
2018.01.19 19:27:10 3: CometBlueBTLE (WZ_Heizung) - Read CometBlueBTLE_ExecGatttool_Run WZ_Heizung|45:EB:xxx|read|0x3
2018.01.19 19:27:10 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b 45:EB:xxx --char-write-req -a 0x48 -n 00000000 2>&1 /dev/null and loop 0
2018.01.19 19:27:14 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully

2018.01.19 19:27:14 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: gatttool result Characteristic value was written successfully

2018.01.19 19:27:14 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Done: gatttool return string: WZ_Heizung|45:EB:xxx|ok|write|0x48|{"gtResult":"no data response"}
2018.01.19 19:27:14 3: CometBlueBTLE (WZ_Heizung) - Read CometBlueBTLE_ExecGatttool_Run WZ_Heizung|45:EB:xxx|read|0x3
2018.01.19 19:27:14 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b 45:EB:xxx --char-read -a 0x3 2>&1 /dev/null and loop 0
2018.01.19 19:27:14 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,43 6f 6d 65 74 20 42 6c 75 65

2018.01.19 19:27:14 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,43 6f 6d 65 74 20 42 6c 75 65

2018.01.19 19:27:14 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Done: gatttool return string: WZ_Heizung|45:EB:xxc|ok|read|0x3|{"gtResult":"43 6f 6d 65 74 20 42 6c 75 65 "}
2018.01.19 19:27:14 3: CometBlueBTLE (WZ_Heizung) - ProcessingNotification
2018.01.19 19:27:14 3: CometBlueBTLE (WZ_Heizung) - ProcessingNotification: handle 0x3
2018.01.19 19:27:14 3: CometBlueBTLE (WZ_Heizung) - FlowerSens handle 0x3
2018.01.19 19:27:14 3: CometBlueBTLE (WZ_Heizung) - WriteReadings: Readings were written
2018.01.19 19:27:30 3: CometBlueBTLE (WZ_Heizung) - Read CometBlueBTLE_ExecGatttool_Run WZ_Heizung|45:EB:xxx|read|0x18
2018.01.19 19:27:30 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b 45:EB:xxx --char-write-req -a 0x48 -n 00000000 2>&1 /dev/null and loop 0
2018.01.19 19:27:33 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: gatttool loop result connect error,Transport endpoint is not connected (107)

2018.01.19 19:27:33 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b 45:EB:xxx --char-write-req -a 0x48 -n 00000000 2>&1 /dev/null and loop 1
connect error: Connection refused (111)
2018.01.19 19:27:39 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully

2018.01.19 19:27:39 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: gatttool result Characteristic value was written successfully

2018.01.19 19:27:39 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Done: gatttool return string: WZ_Heizung|45:EB:xxx|ok|write|0x48|{"gtResult":"no data response"}
2018.01.19 19:27:39 3: CometBlueBTLE (WZ_Heizung) - Read CometBlueBTLE_ExecGatttool_Run WZ_Heizung|45:EB:xxx|read|0x18
2018.01.19 19:27:39 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b 45:EB:xxx --char-read -a 0x18 2>&1 /dev/null and loop 0
2018.01.19 19:27:39 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,30 2e 30 2e 31 30

2018.01.19 19:27:39 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,30 2e 30 2e 31 30

2018.01.19 19:27:39 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Done: gatttool return string: WZ_Heizung|45:EB:xxx|ok|read|0x18|{"gtResult":"30 2e 30 2e 31 30 "}
2018.01.19 19:27:39 3: CometBlueBTLE (WZ_Heizung) - ProcessingNotification
2018.01.19 19:27:39 3: CometBlueBTLE (WZ_Heizung) - ProcessingNotification: handle 0x18
2018.01.19 19:27:39 3: CometBlueBTLE (WZ_Heizung) - FlowerSens handle 0x18
2018.01.19 19:27:39 3: CometBlueBTLE (WZ_Heizung) - WriteReadings: Readings were written
2018.01.19 19:27:50 3: CometBlueBTLE (WZ_Heizung) - Read CometBlueBTLE_ExecGatttool_Run WZ_Heizung|45:EB:xxx|read|0x3f
2018.01.19 19:27:50 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b 45:EB:xxx --char-write-req -a 0x48 -n 00000000 2>&1 /dev/null and loop 0
2018.01.19 19:27:52 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully

2018.01.19 19:27:52 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: gatttool result Characteristic value was written successfully

2018.01.19 19:27:52 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Done: gatttool return string: WZ_Heizung|45:EB:xxx|ok|write|0x48|{"gtResult":"no data response"}
2018.01.19 19:27:52 3: CometBlueBTLE (WZ_Heizung) - Read CometBlueBTLE_ExecGatttool_Run WZ_Heizung|45:EB:xxx|read|0x3f
2018.01.19 19:27:52 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b 45:EB:xxx --char-read -a 0x3f 2>&1 /dev/null and loop 0
2018.01.19 19:27:53 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,42

2018.01.19 19:27:53 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,42
2018.01.19 19:27:53 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Done: gatttool return string: WZ_Heizung|45:EB:xxx|ok|read|0x3f|{"gtResult":"42 "}
2018.01.19 19:27:53 3: CometBlueBTLE (WZ_Heizung) - ProcessingNotification
2018.01.19 19:27:53 3: CometBlueBTLE (WZ_Heizung) - ProcessingNotification: handle 0x3f
2018.01.19 19:27:53 3: CometBlueBTLE (WZ_Heizung) - FlowerSens handle 0x3f
2018.01.19 19:27:53 1: PERL WARNING: Illegal hexadecimal digit ' ' ignored at ./FHEM/74_CometBlueBTLE.pm line 623.
2018.01.19 19:27:53 3: eval: {CometBlueBTLE_ExecGatttool_Done('WZ_Heizung|45:EB:xxx|ok|read|0x3f|{"gtResult":"42 "}')}
2018.01.19 19:27:53 1: PERL WARNING: Illegal hexadecimal digit ' ' ignored at ./FHEM/74_CometBlueBTLE.pm line 624.
2018.01.19 19:27:53 3: eval: {CometBlueBTLE_ExecGatttool_Done('WZ_Heizung|45:EB:xxx|ok|read|0x3f|{"gtResult":"42 "}')}
2018.01.19 19:27:53 3: CometBlueBTLE (WZ_Heizung) - Read CometBlueBTLE_ExecGatttool_Run WZ_Heizung|45:EB:20:E9:0C:6A|read|0x3d
2018.01.19 19:27:53 3: CometBlueBTLE (WZ_Heizung) - WriteReadings: Readings were written
2018.01.19 19:27:53 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b 45:EB:xxx --char-write-req -a 0x48 -n 00000000 2>&1 /dev/null and loop 0
2018.01.19 19:27:53 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.01.19 19:27:53 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.01.19 19:27:53 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Done: gatttool return string: WZ_Heizung|45:EB:xxx|ok|write|0x48|{"gtResult":"no data response"}
2018.01.19 19:27:53 3: CometBlueBTLE (WZ_Heizung) - Read CometBlueBTLE_ExecGatttool_Run WZ_Heizung|45:EB:xxx|read|0x3d
2018.01.19 19:27:53 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b 45:EB:xxx --char-read -a 0x3d 2>&1 /dev/null and loop 0
2018.01.19 19:27:53 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,23 1b 34 19 07 04 0a

2018.01.19 19:27:53 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,23 1b 34 19 07 04 0a

2018.01.19 19:27:53 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Done: gatttool return string: WZ_Heizung|45:EB:xxx|ok|read|0x3d|{"gtResult":"23 1b 34 19 07 04 0a "}
2018.01.19 19:27:53 3: CometBlueBTLE (WZ_Heizung) - ProcessingNotification
2018.01.19 19:27:53 3: CometBlueBTLE (WZ_Heizung) - ProcessingNotification: handle 0x3d
2018.01.19 19:27:53 3: CometBlueBTLE (WZ_Heizung) - WriteReadings: Readings were written

 

CoolTux

Sehr schön. Die Sonderzeichen muss ich mir in Ruhe an schauen.
Passen denn die Temperatur Readings soweit? Welcher Wert steht in winOpenState wenn Fenster auf erkannt wurde? Dann kann ich das Mappen.
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