Eurotronic comet blue Modul Entwicklung

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

Vorheriges Thema - Nächstes Thema

barneybaer

#90
Naja hab ich dich oben schon geschrieben, das sich nix ändert, außer das er runter dreht. Die Werte bleiben gleich. Es muss einer der Andere handles sein.

Ich geh erstmal schlafen, morgen wird Schlafzimmer renoviert. Gute Nacht und dank bis hier her.

CoolTux

Ok dann lassen wir das erst mal.

So es wird ernst. Bitte neue Version downloaden. Modul reloaden und als erstes ein get temperatures machen.

Wenn das geklappt hat kannst Du ein erstes vorsichtiges set desired-temp machen, wenn Dein Thermostat am Display die korrekte Temp an zeigt machst du bitte ein get temperatures, dann sollte FHEM die neu gesetzte temp auch an zeigen.


Viel Erfolg
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

Das klappt perfekt und auf Anhieb. Am Display und in fhem wird es angezeigt.

CoolTux

Sehr schön. Kannst Du bitte das Log noch hier ein stellen. Danke Dir.

Ich gehe dann mal zu Bett. Ab morgen kommen dann die Feinheiten.



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

Kurz noch was ich noch vorhabe.
Nach einem set soll automatisch der aktuellste Stand ausgelesen werden.
Programmieren vom Wochenprogramm über FHEM
Urlaubsprogrammierung.
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

#95
Am Display kann nur bis 28 Grad gestellt werden. Ab 28,5 ist dann "ON", ab 7,5 abwärts "OFF"

Hier das log


2018.01.19 22:55:10 3: CometBlueBTLE (WZ_Heizung) - Read CometBlueBTLE_ExecGatttool_Run WZ_Heizung|45:EB:xxx|read|0x3d
2018.01.19 22:55:11 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 22:55:22 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: gatttool loop result connect error,Transport endpoint is not connected (107)

2018.01.19 22:55:22 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
2018.01.19 22:55:26 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: gatttool loop result connect error,Function not implemented (38)

2018.01.19 22:55:26 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 2
2018.01.19 22:55:30 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully

2018.01.19 22:55:30 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: gatttool result Characteristic value was written successfully

2018.01.19 22:55:30 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Done: gatttool return string: WZ_Heizung|45:EB:xxx|ok|write|0x48|{"gtResult":"no data response"}
2018.01.19 22:55:30 3: CometBlueBTLE (WZ_Heizung) - Read CometBlueBTLE_ExecGatttool_Run WZ_Heizung|45:EB:xxx|read|0x3d
2018.01.19 22:55:30 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b 45:EB:20:xxx --char-read -a 0x3d 2>&1 /dev/null and loop 0
2018.01.19 22:55:30 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,26 37 0f 0f 00 08 0a

2018.01.19 22:55:30 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,26 37 0f 0f 00 08 0a

2018.01.19 22:55:30 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Done: gatttool return string: WZ_Heizung|45:EB:xxx|ok|read|0x3d|{"gtResult":"26 37 0f 0f 00 08 0a "}
2018.01.19 22:55:30 3: CometBlueBTLE (WZ_Heizung) - ProcessingNotification
2018.01.19 22:55:30 3: CometBlueBTLE (WZ_Heizung) - ProcessingNotification: handle 0x3d
2018.01.19 22:55:30 3: CometBlueBTLE (WZ_Heizung) - WriteReadings: Readings were written
2018.01.19 22:55:43 1: PERL WARNING: Argument "medium" isn't numeric in sprintf at ./FHEM/74_CometBlueBTLE.pm line 814.
2018.01.19 22:55:43 3: CometBlueBTLE (WZ_Heizung) - Run CreateParamGatttool with mod: write : 0x3d : 00140f0f00000a
2018.01.19 22:55:43 3: CometBlueBTLE (WZ_Heizung) - Read CometBlueBTLE_ExecGatttool_Run WZ_Heizung|45:EB:xxx|write|0x3d
2018.01.19 22:55:43 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 22:55:45 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: gatttool loop result connect error,Transport endpoint is not connected (107)

2018.01.19 22:55:45 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
2018.01.19 22:55:48 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully

2018.01.19 22:55:48 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: gatttool result Characteristic value was written successfully

2018.01.19 22:55:48 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Done: gatttool return string: WZ_Heizung|45:EB:xxx|ok|write|0x48|{"gtResult":"no data response"}
2018.01.19 22:55:48 3: CometBlueBTLE (WZ_Heizung) - Run CreateParamGatttool with mod: write : 0x3d : 00140f0f00000a
2018.01.19 22:55:48 3: CometBlueBTLE (WZ_Heizung) - Write CometBlueBTLE_ExecGatttool_Run WZ_Heizung|45:EB:xxx|write|0x3d|00140f0f00000a
2018.01.19 22:55:48 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: call gatttool with command timeout 15 gatttool -i hci0 -b 45:EB:xxx --char-write-req -a 0x3d -n 00140f0f00000a --listen 2>&1 /dev/null and loop 0
2018.01.19 22:55:55 3: CometBlueBTLE (WZ_Heizung) - Read CometBlueBTLE_ExecGatttool_Run WZ_Heizung|45:EB:xxx|read|0x3d
2018.01.19 22:56:03 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully

2018.01.19 22:56:03 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: gatttool result Characteristic value was written successfully

2018.01.19 22:56:03 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Done: gatttool return string: WZ_Heizung|45:EB:xxx|error|write|0x3d|{"gtResult":"no data response"}
2018.01.19 22:56:03 3: CometBlueBTLE (WZ_Heizung) - ProcessingErrors
2018.01.19 22:56:03 3: CometBlueBTLE (WZ_Heizung) - WriteReadings: Readings were written
2018.01.19 22:56:05 3: CometBlueBTLE (WZ_Heizung) - Read CometBlueBTLE_ExecGatttool_Run WZ_Heizung|45:EB:xxx|read|0x3d
2018.01.19 22:56:06 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 22:56:09 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: gatttool loop result connect error,Transport endpoint is not connected (107)

2018.01.19 22:56:09 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
2018.01.19 22:56:12 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: gatttool loop result connect error,Transport endpoint is not connected (107)

2018.01.19 22:56:12 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 2
2018.01.19 22:56:15 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: gatttool loop result connect error,Transport endpoint is not connected (107)

2018.01.19 22:56:15 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 3
2018.01.19 22:56:17 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully

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

2018.01.19 22:56:18 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Done: gatttool return string: WZ_Heizung|45:EB:xxx|ok|write|0x48|{"gtResult":"no data response"}
2018.01.19 22:56:18 3: CometBlueBTLE (WZ_Heizung) - Read CometBlueBTLE_ExecGatttool_Run WZ_Heizung|45:EB:xxx|read|0x3d
2018.01.19 22:56:18 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 22:56:18 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,26 14 0f 0f 00 00 0a

2018.01.19 22:56:18 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,26 14 0f 0f 00 00 0a

2018.01.19 22:56:18 3: CometBlueBTLE (WZ_Heizung) - ExecGatttool_Done: gatttool return string: WZ_Heizung|45:EB:xxx|ok|read|0x3d|{"gtResult":"26 14 0f 0f 00 00 0a "}
2018.01.19 22:56:18 3: CometBlueBTLE (WZ_Heizung) - ProcessingNotification
2018.01.19 22:56:18 3: CometBlueBTLE (WZ_Heizung) - ProcessingNotification: handle 0x3d
2018.01.19 22:56:18 3: CometBlueBTLE (WZ_Heizung) - WriteReadings: Readings were written


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.17
   loglevel   4
   READINGS:
     2018-01-19 21:01:34   battery         ok
     2018-01-19 21:01:34   batteryLevel    66
     2018-01-19 22:56:18   desired-temp    10
     2018-01-19 21:58:16   devicename      Comet Blue
     2018-01-19 21:03:48   firmware        0.0.10
     2018-01-19 22:45:43   lastChangeBy    Thermostat
     2018-01-19 22:45:27   lastGattError   no data response
     2018-01-19 22:48:12   measured-temp   19
     2018-01-19 22:59:42   state           active
     2018-01-19 22:41:17   tempComfort     7.5
     2018-01-19 22:41:17   tempEco         7.5
     2018-01-19 22:41:17   tempOffset      0
     2018-01-19 22:51:48   winOpnPeriod    10
     2018-01-19 22:51:48   winOpnSensitivity medium
     2018-01-19 22:41:17   winOpnState     4
   helper:
     CallBattery 0
     updateTimeCallBattery 1516398184.72815
     updateTimestampCallBattery 2018-01-19 22:43:04
     writePin   0
     paramGatttool:
       handle     0x3d
       mod        read
       value      00140f0f00000a
Attributes:
   room       Wohnzimmer


CoolTux

Gute Nachricht. Ich habe es nun so hinbekommen (danke an Andre) das er mir auch die Pin codiert. Baue ich heute Abend 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

CoolTux

Mein Gerät ist da und es ging außer Firmware und Devicename gar nichts.
Mein Gerät hat komplett andere Handles. Sprich ich habe genau die welche auf der von Dir verlinkten Website sind. Hast Du wirklich ein CometBlue?
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

#98
Haha, ja habe ich, aber halt für Silverquest Lidl angefertigt, ist die selbe Herstellerfirma. Nur halt andere handles.
Und der device Name wird ja auch übertragen. Deswegen hatte ich ja das Script von der einen Seite genommen und nur die handles geändert der Rest bleibt ja gleich.

CoolTux

Dann schaue ich mal wie man da unterscheiden kann. Eventuell muss man das von Hand als model setzen bevor es los geht
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

Ich denke mal man kann es an der Versionsnummer erkennen, du müsstest glaube ne andere haben.

CoolTux

Firmware Nummer meinst? Ja ich habe die 0.0.6 und Du die 0.0.10
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

Auf jeden Fall wäre es nicht schlecht verschiedene Versionen drin zu haben, fals man vorhat noch mehr zu kaufen. Und die jetzige vergriffen ist,wie bei Lidl z.B.

CoolTux

Ich baue da eh noch die Tage am Modulcode
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

#104
Sehr gut, ich muss mein Thermostat erstmal irgendwie richtig fest bekommen, das fällt einfach vom Gewinde e wenn es druck aufbaut. Vlt mit Hanf oder so. Schrott Plastik.