[74_CometBlueBTLE.pm] Neues Modul für Eurotronic Bluetooth Heizungsthermostate

Begonnen von CoolTux, 27 Februar 2018, 12:24:43

Vorheriges Thema - Nächstes Thema

CoolTux

Mach mal bitte ein list vom Device

list DEVICENAME

und poste hier die Ausgabe. Dann bitte noch verbose auf 5 stellen bei einem und mal laufen lassen und die Ausgaben hier posten.
Bitte beachte das das Modul nicht offiziell ist. Es war mehr so ein Gefallen. Dennoch versuche ich natürlich mein bestmöglichstes was die Pflege an geht. Dies nur als Hinweis.

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

polarbaer

OK.

1. list ht100bt_thermostat

Internals:
   BTMAC      63:37:40:FE:59:95
   DEF        63:37:40:FE:59:95
   FUUID      5e424919-f33f-c6ea-7240-e7ccb26665710ccf
   INTERVAL   300
   NAME       ht100bt_thermostat
   NOTIFYDEV  global,ht100bt_thermostat
   NR         50
   NTFY_ORDER 50-ht100bt_thermostat
   STATE      error
   TYPE       CometBlueBTLE
   VERSION    0.2.2
   loglevel   9
   READINGS:
     2020-02-12 09:40:24   devicename      Comet Blue
     2020-02-12 09:40:01   firmware        0.0.10
     2020-02-12 09:40:01   lastChangeBy    Thermostat
     2020-02-12 13:31:38   lastGattError   Attribute can't be read
     2020-02-12 13:31:38   state           error
   helper:
     CallBattery 0
     updateTimeCallBattery 0
     writePin   0
     paramGatttool:
       handle     0x41
       mod        read
       value      00001f00000000
   tempListsHandleQueue:
     end
     0x27
     0x25
     0x23
     0x21
     0x1f
     0x2b
Attributes:
   model      Sygonix
   room       CometBlueBTLE
   sshHost    192.168.2.113
   verbose    5


2. list ble100_thermostat

Internals:
   BTMAC      DE:25:CF:9A:7F:33
   DEF        DE:25:CF:9A:7F:33
   FUUID      5e424919-f33f-c6ea-f16c-c310bec902772fce
   INTERVAL   300
   NAME       ble100_thermostat
   NOTIFYDEV  global,ble100_thermostat
   NR         53
   NTFY_ORDER 50-ble100_thermostat
   STATE      error
   TYPE       CometBlueBTLE
   VERSION    0.2.2
   loglevel   9
   READINGS:
     2020-02-12 09:44:25   devicename      Comet Blue
     2020-02-12 09:39:56   firmware        0.0.10
     2020-02-12 09:39:56   lastChangeBy    Thermostat
     2020-02-12 16:03:06   lastGattError   Attribute can't be read
     2020-02-12 16:03:06   state           error
   helper:
     CallBattery 0
     updateTimeCallBattery 0
     writePin   0
     paramGatttool:
       handle     0x41
       mod        read
   tempListsHandleQueue:
Attributes:
   model      CometBlue
   room       CometBlueBTLE
   sshHost    192.168.2.113
   verbose    5


3. logfile entries for "set ht100bt_thermostat  desired-temp 13.5"

3.1. fhem.log

2020.02.12 16:05:13 4: CometBlueBTLE (ht100bt_thermostat) - Run CreateParamGatttool with mod: write
2020.02.12 16:05:13 4: CometBlueBTLE (ht100bt_thermostat) - Run CreateParamGatttool with mod: write : 0x3f : 001b0000000000
2020.02.12 16:05:13 5: CometBlueBTLE (ht100bt_thermostat) - Noch in Queue nach pop: 7
2020.02.12 16:05:13 4: CometBlueBTLE (ht100bt_thermostat) - CreateParamGatttool erstes if
2020.02.12 16:05:13 4: CometBlueBTLE (ht100bt_thermostat) - Read CometBlueBTLE_ExecGatttool_Run ht100bt_thermostat|63:37:40:FE:59:95|write|0x3f
2020.02.12 16:05:15 4: CometBlueBTLE (ht100bt_thermostat) - ExecGatttool_Run: call gatttool with command ssh 192.168.2.113 'gatttool -i hci0 -b 63:37:40:FE:59:95 --char-write-req -a 0x47 -n 00000000 2>&1 /dev/null' and loop 0
2020.02.12 16:05:18 5: CometBlueBTLE (ht100bt_thermostat) - ExecGatttool_Run: gatttool loop result Characteristic Write Request failed,Attribute can't be written

2020.02.12 16:05:18 4: CometBlueBTLE (ht100bt_thermostat) - ExecGatttool_Run: gatttool result Characteristic Write Request failed,Attribute can't be written

2020.02.12 16:05:18 4: CometBlueBTLE (ht100bt_thermostat) - ExecGatttool_Done: gatttool return string: ht100bt_thermostat|63:37:40:FE:59:95|ok|write|0x47|{"gtResult":"Attribute can't be written"}
2020.02.12 16:05:18 4: CometBlueBTLE (ht100bt_thermostat) - Run CreateParamGatttool with mod: write
2020.02.12 16:05:18 4: CometBlueBTLE (ht100bt_thermostat) - Run CreateParamGatttool with mod: write : 0x3f : 001b0000000000
2020.02.12 16:05:18 5: CometBlueBTLE (ht100bt_thermostat) - Noch in Queue nach pop: 7
2020.02.12 16:05:18 4: CometBlueBTLE (ht100bt_thermostat) - CreateParamGatttool drittes if
2020.02.12 16:05:18 4: CometBlueBTLE (ht100bt_thermostat) - Write CometBlueBTLE_ExecGatttool_Run ht100bt_thermostat|63:37:40:FE:59:95|write|0x3f|001b0000000000
2020.02.12 16:05:19 4: CometBlueBTLE (ht100bt_thermostat) - ExecGatttool_Run: call gatttool with command ssh 192.168.2.113 'gatttool -i hci0 -b 63:37:40:FE:59:95 --char-write-req -a 0x3f -n 001b0000000000 2>&1 /dev/null' and loop 0
2020.02.12 16:05:19 5: CometBlueBTLE (ht100bt_thermostat) - ExecGatttool_Run: gatttool loop result Characteristic Write Request failed,Attribute can't be written

2020.02.12 16:05:19 4: CometBlueBTLE (ht100bt_thermostat) - ExecGatttool_Run: gatttool result Characteristic Write Request failed,Attribute can't be written

2020.02.12 16:05:19 4: CometBlueBTLE (ht100bt_thermostat) - ExecGatttool_Done: gatttool return string: ht100bt_thermostat|63:37:40:FE:59:95|error|write|0x3f|{"gtResult":"Attribute can't be written"}
2020.02.12 16:05:19 4: CometBlueBTLE (ht100bt_thermostat) - ProcessingErrors
2020.02.12 16:05:19 5: CometBlueBTLE (ht100bt_thermostat) - WriteReadings: Reading lastGattError, value Attribute can't be written altes value Attribute can't be read
2020.02.12 16:05:19 4: CometBlueBTLE (ht100bt_thermostat) - WriteReadings: Readings were written


3.2. FileLog_ht100bt_thermostat

2020-02-12_16:05:13 ht100bt_thermostat pairing thermostat with pin: 00000000
2020-02-12_16:05:18 ht100bt_thermostat write sensor data
2020-02-12_16:05:19 ht100bt_thermostat lastGattError: Attribute can't be written
2020-02-12_16:05:19 ht100bt_thermostat error


"Modul-Support": Ja. klar. Schon klar, daß Du alleine keinen Support leisten kannst. Deshalb: Danke für Deine Hilfe. Ich versuche ja auch nur einen Ansatzpunkt zu finden, von dem aus ich weitermachen kann. Wenn Du etwas siehst, das nicht passt, sag mir bitte bescheid. Ich bin - wie gesagt - neu in dem Thema ...

THX


A polar baer is a cartesian bear after a coordinate transform.

CoolTux

Mich irritiert das loglevel 9 in den Internals. Da sollte per default eigentlich 4 stehen.

Kannst Du auf dem Host welchen Du per ssh auf rufst bitte einmal folgendes machen
gatttool -i hci0 -b 63:37:40:FE:59:95 --characteristics


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

polarbaer

Loglevel = 9? Ja. Sorry. Ich hatte im Zuge der Fehlersuche versucht, mehr Informationen aus dem Modul zu bekommen ... mea culpa.  :-[

Ausgabe von "gatttool -i hci0 -b 63:37:40:FE:59:95 --characteristics" auf RasPi #2 (remote host)
gatttool -i hci0 -b 63:37:40:FE:59:95 --characteristics
handle = 0x0002, char properties = 0x02, char value handle = 0x0003, uuid = 00002a00-0000-1000-8000-00805f9b34fb
handle = 0x0004, char properties = 0x02, char value handle = 0x0005, uuid = 00002a01-0000-1000-8000-00805f9b34fb
handle = 0x0006, char properties = 0x0a, char value handle = 0x0007, uuid = 00002a02-0000-1000-8000-00805f9b34fb
handle = 0x0008, char properties = 0x02, char value handle = 0x0009, uuid = 00002a04-0000-1000-8000-00805f9b34fb
handle = 0x000d, char properties = 0x22, char value handle = 0x000e, uuid = 00002a05-0000-1000-8000-00805f9b34fb
handle = 0x0011, char properties = 0x02, char value handle = 0x0012, uuid = 00002a29-0000-1000-8000-00805f9b34fb
handle = 0x0013, char properties = 0x02, char value handle = 0x0014, uuid = 00002a24-0000-1000-8000-00805f9b34fb
handle = 0x0015, char properties = 0x02, char value handle = 0x0016, uuid = 00002a26-0000-1000-8000-00805f9b34fb
handle = 0x0017, char properties = 0x02, char value handle = 0x0018, uuid = 00002a28-0000-1000-8000-00805f9b34fb
handle = 0x001a, char properties = 0x0a, char value handle = 0x001b, uuid = 47e9ee01-47e9-11e4-8939-164230d1df67
handle = 0x001c, char properties = 0x0a, char value handle = 0x001d, uuid = 47e9ee10-47e9-11e4-8939-164230d1df67
handle = 0x001e, char properties = 0x0a, char value handle = 0x001f, uuid = 47e9ee11-47e9-11e4-8939-164230d1df67
handle = 0x0020, char properties = 0x0a, char value handle = 0x0021, uuid = 47e9ee12-47e9-11e4-8939-164230d1df67
handle = 0x0022, char properties = 0x0a, char value handle = 0x0023, uuid = 47e9ee13-47e9-11e4-8939-164230d1df67
handle = 0x0024, char properties = 0x0a, char value handle = 0x0025, uuid = 47e9ee14-47e9-11e4-8939-164230d1df67
handle = 0x0026, char properties = 0x0a, char value handle = 0x0027, uuid = 47e9ee15-47e9-11e4-8939-164230d1df67
handle = 0x0028, char properties = 0x0a, char value handle = 0x0029, uuid = 47e9ee16-47e9-11e4-8939-164230d1df67
handle = 0x002a, char properties = 0x0a, char value handle = 0x002b, uuid = 47e9ee20-47e9-11e4-8939-164230d1df67
handle = 0x002c, char properties = 0x0a, char value handle = 0x002d, uuid = 47e9ee21-47e9-11e4-8939-164230d1df67
handle = 0x002e, char properties = 0x0a, char value handle = 0x002f, uuid = 47e9ee22-47e9-11e4-8939-164230d1df67
handle = 0x0030, char properties = 0x0a, char value handle = 0x0031, uuid = 47e9ee23-47e9-11e4-8939-164230d1df67
handle = 0x0032, char properties = 0x0a, char value handle = 0x0033, uuid = 47e9ee24-47e9-11e4-8939-164230d1df67
handle = 0x0034, char properties = 0x0a, char value handle = 0x0035, uuid = 47e9ee25-47e9-11e4-8939-164230d1df67
handle = 0x0036, char properties = 0x0a, char value handle = 0x0037, uuid = 47e9ee26-47e9-11e4-8939-164230d1df67
handle = 0x0038, char properties = 0x0a, char value handle = 0x0039, uuid = 47e9ee27-47e9-11e4-8939-164230d1df67
handle = 0x003a, char properties = 0x0a, char value handle = 0x003b, uuid = 47e9ee2a-47e9-11e4-8939-164230d1df67
handle = 0x003c, char properties = 0x0a, char value handle = 0x003d, uuid = 47e9ee2b-47e9-11e4-8939-164230d1df67
handle = 0x003e, char properties = 0x0a, char value handle = 0x003f, uuid = 47e9ee2c-47e9-11e4-8939-164230d1df67
handle = 0x0040, char properties = 0x0a, char value handle = 0x0041, uuid = 47e9ee2d-47e9-11e4-8939-164230d1df67
handle = 0x0042, char properties = 0x0a, char value handle = 0x0043, uuid = 47e9ee2e-47e9-11e4-8939-164230d1df67
handle = 0x0044, char properties = 0x1a, char value handle = 0x0045, uuid = 47e9ee40-47e9-11e4-8939-164230d1df67
handle = 0x0047, char properties = 0x08, char value handle = 0x0048, uuid = 47e9ee30-47e9-11e4-8939-164230d1df67
A polar baer is a cartesian bear after a coordinate transform.

CoolTux

Ok das sieht gut aus. Läuft noch irgendwas anderes auf dem Host bezüglich Bluetooth? Anwesenheitserkennung oder so. Ansonsten wüsste ich erstmal nicht wirklich was los ist.
Kannst Du per App bitte einmal eine Pin vergeben und dann die Verbindung mit der App wieder beenden. Danach die Pin als Attribut vergeben und noch mal testen bitte.

Alles mit verbose 5 Loggen bitte
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

polarbaer

Ansonsten läuft auf dem RasPi #2 eigentlich nur Kommunikationskram ...

ConBee2 Adapter => DeConz Software, Ser2Net, ...
CUL868 Adapter => homebridge
MQTT client ...
Ein "SensorHAT" steckt auch noch drauf, aber das ist nur ein Temperatur/Feuchigkeits/Luftdruck-Fühler ... der funkt nicht ...

... und es gibt natürlich Zugriffe über das FHEM EQ3BT Modul ... per ssh auf den bluetooth service, genau wie das CometBlueBTLE modul ... (das EQ3BT habe ich mal kurz aus FHEM rauskonfiguriert und dann nochmal mit dem ht100bt getestet ... Ergebnis: leider die gleichen Fehler ...)

OK. PIN per app auf "12345" geändert und in FHEM entsprechend konfiguriert.

Also nochmal ...

1. logfile entries for "set ht100bt_thermostat  desired-temp 13.5"

1.1.: ht100bt logfile:

2020-02-12_21:01:30 ht100bt_thermostat pairing thermostat with pin: 00000000
2020-02-12_21:01:38 ht100bt_thermostat read sensor data
2020-02-12_21:01:43 ht100bt_thermostat lastGattError: Attribute can't be read
2020-02-12_21:01:43 ht100bt_thermostat error
2020-02-12_21:05:32 ht100bt_thermostat pairing thermostat with pin: 39300000
2020-02-12_21:05:36 ht100bt_thermostat write sensor data
2020-02-12_21:05:41 ht100bt_thermostat lastGattError: Attribute can't be written
2020-02-12_21:05:41 ht100bt_thermostat error


1.2. fhem-log

2020.02.12 21:01:43 5: CometBlueBTLE (ht100bt_thermostat) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor read failed,Attribute can't be read

2020.02.12 21:01:43 4: CometBlueBTLE (ht100bt_thermostat) - ExecGatttool_Run: gatttool result Characteristic value/descriptor read failed,Attribute can't be read

2020.02.12 21:01:43 4: CometBlueBTLE (ht100bt_thermostat) - ExecGatttool_Done: gatttool return string: ht100bt_thermostat|63:37:40:FE:59:95|error|read|0x41|{"gtResult":"Attr
ibute can't be read"}
2020.02.12 21:01:43 4: CometBlueBTLE (ht100bt_thermostat) - ProcessingErrors
2020.02.12 21:01:43 5: CometBlueBTLE (ht100bt_thermostat) - WriteReadings: Reading lastGattError, value Attribute can't be read altes value Attribute can't be read
2020.02.12 21:01:43 4: CometBlueBTLE (ht100bt_thermostat) - WriteReadings: Readings were written
2020.02.12 21:01:46 5: EQ3BT (CC_RT_BLE_EQ_thermostat): ssh 192.168.2.113 'timeout 30 gatttool -i hci0 -b 00:1A:22:11:EB:CF --char-write-req -a 0x0411 -n 0314020C1501 --list
en 2>&1 /dev/null'


Grüße

[EDIT:]
Das muss eine andere Ursache haben ... Unter https://www.torsten-traenkner.de/wissen/smarthome/heizung.php wird ja Schritt-für-Schritt beschrieben, wie das ht100bt Thermostat mit gatttool ansprechbar ist.

Ergebnis: Funktioniert auch nicht!

Ist es möglich, daß die Steuerung nur im eingebauten Zustand funktioniert?? (Kann ich mir eigentlich nicht vorstellen ... die Verbindung zum Gerät kann ich ja herstellen ... und einige read-befehle funktionieren ja auch (devicename, version))

Gibt's da Erfahrungswerte?
A polar baer is a cartesian bear after a coordinate transform.