[74_XiaomiBTLESens.pm] Xiaomi Bluetooth Sensoren FlowerSens/Thermometer

Begonnen von CoolTux, 11 Januar 2018, 15:42:45

Vorheriges Thema - Nächstes Thema

skyline

ZitatDavon ab ist hier $EVENT nie Error, da $EVENT aus "READING: READINGVALUE" besteht.

Ist das bei state nicht ein Sonderfall?

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

skyline

if ( ReadingsVal($NAME,'count',1) == 5 ) {
  CommandSet(undef, $self . ' inactive');
  fhem('sleep 15; set ' . $self . ' active');
}
elsif ( ReadingsVal($NAME,'count',1) < 5 ) {
  CommandGet(undef, $NAME . ' sensorData');
  readingsSingleUpdate( $defs{$shuttersDev} , 'count', ReadingsVal($NAME,'count',1) + 1, 0 );
}


Aber hier würde doch nie etwas den Zähler (Count) wieder auf 0 setzen.
Würde dann doch nur beim ersten mal klappen....oder?

CoolTux

Zitat von: skyline am 08 November 2018, 09:23:23
if ( ReadingsVal($NAME,'count',1) == 5 ) {
  CommandSet(undef, $self . ' inactive');
  fhem('sleep 15; set ' . $self . ' active');
}
elsif ( ReadingsVal($NAME,'count',1) < 5 ) {
  CommandGet(undef, $NAME . ' sensorData');
  readingsSingleUpdate( $defs{$shuttersDev} , 'count', ReadingsVal($NAME,'count',1) + 1, 0 );
}


Aber hier würde doch nie etwas den Zähler (Count) wieder auf 0 setzen.
Würde dann doch nur beim ersten mal klappen....oder?

War ja auch nur exemplarisch zum drüber nachdenken gedacht, es ist keine fertige funktionierende Lösung.
Du musst natürlich den count dann wieder auf null setzen

if ( ReadingsVal($NAME,'count',1) == 5 ) {
  CommandSet(undef, $self . ' inactive');
  fhem('sleep 900; set ' . $self . ' active');
readingsSingleUpdate( $defs{$NAME} ,'count',0,0);
}
elsif ( ReadingsVal($NAME,'count',1) < 5 ) {
  CommandGet(undef, $NAME . ' sensorData');
  readingsSingleUpdate( $defs{$NAME} , 'count', ReadingsVal($NAME,'count',1) + 1, 0 );
}


Ist auch keine fertige Lösung und vor allem ungetestet
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

skyline

Hmmm, aber wenn ich das notify auf inaktiv setze, würde es mir die anderen Devices nicht mehr überwachen.

Vielleicht sollte das doch mit ins Modul, da Bluetooth nicht so stabil läuft.

CoolTux

Ich kann es mir bei Gelegenheit einmal in Ruhe anschauen. Aber das wird noch etwas dauern.
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


skyline

Habe es (mit Hilfe) erstmal so hinbekommen.

Im Device
attr Device event-on-change-reading .*

attr Device userReadings  statevalue {
                                                      my $state = ReadingsVal($name, "state", "");
                                                      return "nok" if $state eq "error";
                                                      return "ok" if substr($state, 0, 1) eq "T";
                                                      return undef;
                                                      }

Im Notify
Device:statevalue:.nok {
                                   foreach $i (1..3) {
                                   fhem ("sleep 5;; get " . $NAME . " sensorData;; sleep 30");
                                   last if (ReadingsVal($NAME, "statevalue", "") eq "ok")}
                                   }



Typ1er

Ich habe neuerdings relativ viele Probleme die Sensoren abzufragen.

- lastGattError: The BlockingCall Process terminated unexpectedly. Timedout
- lastGattError: Transport endpoint is not connected (107)
- ExecGatttool_Run: another gatttool process is running. waiting...
- unreachable

XiaomiBTLESens 2.4.4
Firmware ist 3.1.9

das "hcitool lescan" lief jetzt  nicht mehr, nur mit sudo und nach dem Neustart vom Bluetooth, da habe irgendwie was zerschossen, gibt es eine Möglichkeit hier alles auf Werkseinstellungen zu reseten ohne Neuinstallation?

skyline

@Typ1er

Läuft echt nicht so stabil die Sache, das Problem ist wohl gatttool an sich.

Ich hatte auch 3 USB-Bluetooth-Adapter mit Antenne bestellt und nur einer wollte laufen.

Mit diesem habe ich aber nach 1 bis 2 Tagen alles auf Error stehen.

Am besten klappt bei mir (RaspberryPi 3) die interne Bluetooth Lösung mit einer externen Antenne.

Vielleicht klappt das bei dir:
https://urbanjack.wordpress.com/2014/04/17/fix-bluez-keeps-crashing/

CoolTux

Zitat von: Typ1er am 19 November 2018, 10:10:30
Ich habe neuerdings relativ viele Probleme die Sensoren abzufragen.

- lastGattError: The BlockingCall Process terminated unexpectedly. Timedout
- lastGattError: Transport endpoint is not connected (107)
- ExecGatttool_Run: another gatttool process is running. waiting...
- unreachable

XiaomiBTLESens 2.4.4
Firmware ist 3.1.9

das "hcitool lescan" lief jetzt  nicht mehr, nur mit sudo und nach dem Neustart vom Bluetooth, da habe irgendwie was zerschossen, gibt es eine Möglichkeit hier alles auf Werkseinstellungen zu reseten ohne Neuinstallation?

Starte bitte einmal den kompletten Rechner neu und schaue ob es dann besser läuft.
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

kroonen

Hi

I think have a bug. When the temperature is below 10 degrees, the humitiy is not ok. The humidity should be 66.7 and not 6.7



Internals:
   BTMAC      4C:65:A8:D1:7D:DC
   DEF        4C:65:A8:D1:7D:DC
   INTERVAL   120
   NAME       Schuurtemp
   NOTIFYDEV  global,Schuurtemp
   NR         23
   NTFY_ORDER 50-Schuurtemp
   STATE      T: 7.5  H: 6.7
   TYPE       XiaomiBTLESens
   VERSION    2.4.4
   loglevel   4
   READINGS:
     2018-11-20 06:53:52   batteryPercent  36
     2018-11-20 06:53:52   batteryState    ok
     2018-02-11 11:47:33   firmware        00.00.66
     2018-11-20 16:06:40   humidity        6.7
     2018-11-19 19:45:58   lastGattError   charWrite faild
     2018-11-20 16:06:40   state           T: 7.5  H: 6.7
     2018-11-20 16:06:40   temperature     7.5
   helper:
     CallBattery 0
     CallSensDataCounter 0
     updateTimeCallBattery 1542693232.29015
     updateTimestampCallBattery 2018-11-20 06:53:52
Attributes:
   interval   120
   model      thermoHygroSens
   room       XiaomiBTLESens

fhem>


CoolTux

Zitat von: kroonen am 20 November 2018, 16:39:15
Hi

I think have a bug. When the temperature is below 10 degrees, the humitiy is not ok. The humidity should be 66.7 and not 6.7



Internals:
   BTMAC      4C:65:A8:D1:7D:DC
   DEF        4C:65:A8:D1:7D:DC
   INTERVAL   120
   NAME       Schuurtemp
   NOTIFYDEV  global,Schuurtemp
   NR         23
   NTFY_ORDER 50-Schuurtemp
   STATE      T: 7.5  H: 6.7
   TYPE       XiaomiBTLESens
   VERSION    2.4.4
   loglevel   4
   READINGS:
     2018-11-20 06:53:52   batteryPercent  36
     2018-11-20 06:53:52   batteryState    ok
     2018-02-11 11:47:33   firmware        00.00.66
     2018-11-20 16:06:40   humidity        6.7
     2018-11-19 19:45:58   lastGattError   charWrite faild
     2018-11-20 16:06:40   state           T: 7.5  H: 6.7
     2018-11-20 16:06:40   temperature     7.5
   helper:
     CallBattery 0
     CallSensDataCounter 0
     updateTimeCallBattery 1542693232.29015
     updateTimestampCallBattery 2018-11-20 06:53:52
Attributes:
   interval   120
   model      thermoHygroSens
   room       XiaomiBTLESens

fhem>



can you please give me a verbose 5 log?
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

kroonen

Here an verbose log 5



2018.11.20 22:48:55 5: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b 4C:65:A8:D1:7D:DC --char-read -a 0x18 2>&1 /dev/null and loop 0
2018.11.20 22:48:58 5: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,24

2018.11.20 22:48:58 4: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,24

2018.11.20 22:48:58 5: Cmd: >{BlockingStart('1')}<
2018.11.20 22:48:58 5: Cmd: >{XiaomiBTLESens::ExecGatttool_Done('Schuurtemp|4C:65:A8:D1:7D:DC|ok|read|0x18|{"gtResult":"24 "}')}<
2018.11.20 22:48:58 5: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Done: gatttool return string: Schuurtemp|4C:65:A8:D1:7D:DC|ok|read|0x18|{"gtResult":"24 "}
2018.11.20 22:48:58 4: XiaomiBTLESens (Schuurtemp) - ProcessingNotification
2018.11.20 22:48:58 4: XiaomiBTLESens (Schuurtemp) - ProcessingNotification: handle 0x18
2018.11.20 22:48:58 4: XiaomiBTLESens (Schuurtemp) - Thermo/Hygro Sens Handle0x18
2018.11.20 22:48:58 5: Starting notify loop for Schuurtemp, 3 event(s), first is batteryPercent: 36
2018.11.20 22:48:58 5: Notify for Schuurtemp
2018.11.20 22:48:58 5: batteryPercent: 36, 'batteryPercent', '36'
2018.11.20 22:48:58 5: MQTT mqtt message sent: Publish/at-most-once,retain /Schuurtemp/Schuurtemp/Batt
  33 36                                            36
2018.11.20 22:48:58 5: SW: 311f001b2f53636875757274656d702f53636875757274656d702f426174743336
2018.11.20 22:48:58 5: Starting notify loop for schuurtemp_mqtt, 1 event(s), first is transmission-state: outgoing publish sent
2018.11.20 22:48:58 5: End notify loop for schuurtemp_mqtt
2018.11.20 22:48:58 5: batteryState: ok, 'batteryState', 'ok'
2018.11.20 22:48:58 5: T: 7.3 H: 7.6, 'T', '7.3 H: 7.6'
2018.11.20 22:48:58 5: End notify loop for Schuurtemp
2018.11.20 22:48:58 4: XiaomiBTLESens (Schuurtemp) - WriteReadings: Readings were written
2018.11.20 22:48:58 4: XiaomiBTLESens (Schuurtemp) - Run CreateParamGatttool with mod: write
2018.11.20 22:48:58 4: BlockingCall (XiaomiBTLESens::ExecGatttool_Run): created child (28777), uses telnetPort to connect back
2018.11.20 22:48:58 5: Starting notify loop for Schuurtemp, 1 event(s), first is write sensor data
2018.11.20 22:48:58 5: Notify for Schuurtemp
2018.11.20 22:48:58 5: write sensor data, 'write sensor data', ''
2018.11.20 22:48:58 5: End notify loop for Schuurtemp
2018.11.20 22:48:58 5: XiaomiBTLESens (Schuurtemp) - Write XiaomiBTLESens_ExecGatttool_Run Schuurtemp|4C:65:A8:D1:7D:DC|write|0x10|0100
2018.11.20 22:48:58 4: Connection accepted from telnetPort_127.0.0.1_54422
2018.11.20 22:48:58 5: Cmd: >{BlockingRegisterTelnet($cl,2)}<
2018.11.20 22:48:58 5: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D1:7D:DC --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.11.20 22:49:08 5: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 37 2e 33 20 48 3d 36 37 2e 34 00
Notification handle = 0x000e value,54 3d 37 2e 32 20 48 3d 36 37 2e 36 00
Notification handle = 0x000e value,54 3d 37 2e 33 20 48 3d 36 37 2e 38 00
Notification handle = 0x000e value,54 3d 37 2e 34 20 48 3d 36 37 2e 37 00
Notification handle = 0x000e value,54 3d 37 2e 33 20 48 3d 36 37 2e 37 00
Notification handle = 0x000e value,54 3d 37 2e 33 20 48 3d 36 37 2e 38 00
Notification handle = 0x000e value,54 3d 37 2e 33 20 48 3d 36 37 2e 37 00

2018.11.20 22:49:08 4: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 37 2e 33 20 48 3d 36 37 2e 34 00
Notification handle = 0x000e value,54 3d 37 2e 32 20 48 3d 36 37 2e 36 00
Notification handle = 0x000e value,54 3d 37 2e 33 20 48 3d 36 37 2e 38 00
Notification handle = 0x000e value,54 3d 37 2e 34 20 48 3d 36 37 2e 37 00
Notification handle = 0x000e value,54 3d 37 2e 33 20 48 3d 36 37 2e 37 00
Notification handle = 0x000e value,54 3d 37 2e 33 20 48 3d 36 37 2e 38 00
Notification handle = 0x000e value,54 3d 37 2e 33 20 48 3d 36 37 2e 37 00

2018.11.20 22:49:08 5: Cmd: >{BlockingStart('2')}<
2018.11.20 22:49:08 5: Cmd: >{XiaomiBTLESens::ExecGatttool_Done('Schuurtemp|4C:65:A8:D1:7D:DC|ok|write|0x10|{"gtResult":"54 3d 37 2e 33 20 48 3d 36 37 2e 34 00 "}')}<
2018.11.20 22:49:08 5: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Done: gatttool return string: Schuurtemp|4C:65:A8:D1:7D:DC|ok|write|0x10|{"gtResult":"54 3d 37 2e 33 20 48 3d 36 37 2e 34 00 "}
2018.11.20 22:49:08 4: XiaomiBTLESens (Schuurtemp) - ProcessingNotification
2018.11.20 22:49:08 4: XiaomiBTLESens (Schuurtemp) - ProcessingNotification: handle 0x10
2018.11.20 22:49:08 4: XiaomiBTLESens (Schuurtemp) - Thermo/Hygro Sens Handle0x10
2018.11.20 22:49:08 5: Starting notify loop for Schuurtemp, 3 event(s), first is temperature: 7.3
2018.11.20 22:49:08 5: Notify for Schuurtemp
2018.11.20 22:49:08 5: temperature: 7.3 , 'temperature', '7.3 '
2018.11.20 22:49:08 5: MQTT mqtt message sent: Publish/at-most-once,retain /Schuurtemp/Schuurtemp/Temperature
  37 2e 33 20                                      7.3
2018.11.20 22:49:08 5: SW: 312800222f53636875757274656d702f53636875757274656d702f54656d7065726174757265372e3320
2018.11.20 22:49:08 5: Starting notify loop for schuurtemp_mqtt, 1 event(s), first is transmission-state: outgoing publish sent
2018.11.20 22:49:08 5: End notify loop for schuurtemp_mqtt
2018.11.20 22:49:08 5: humidity: 7.4, 'humidity', '7.4'
2018.11.20 22:49:08 5: MQTT mqtt message sent: Publish/at-most-once,retain /Schuurtemp/Schuurtemp/Humidity
  37 2e 34 00                                      7.4.
2018.11.20 22:49:08 5: SW: 3125001f2f53636875757274656d702f53636875757274656d702f48756d6964697479372e3400
2018.11.20 22:49:08 5: Starting notify loop for schuurtemp_mqtt, 1 event(s), first is transmission-state: outgoing publish sent
2018.11.20 22:49:08 5: End notify loop for schuurtemp_mqtt
2018.11.20 22:49:08 5: T: 7.3  H: 7.4, 'T', '7.3  H: 7.4'
2018.11.20 22:49:08 5: End notify loop for Schuurtemp
2018.11.20 22:49:08 4: XiaomiBTLESens (Schuurtemp) - WriteReadings: Readings were written
2018.11.20 22:49:12 4: Connection accepted from WEB_192.168.180.32_56849
2018.11.20 22:49:12 4: WEB_192.168.180.32_56849 GET /fhem; BUFLEN:0
2018.11.20 22:49:12 4: WEB: /fhem / RL:1256 / text/html; charset=UTF-8 / Content-Encoding: gzip
/

CoolTux

Zitat von: kroonen am 20 November 2018, 22:53:34
Here an verbose log 5



2018.11.20 22:48:55 5: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b 4C:65:A8:D1:7D:DC --char-read -a 0x18 2>&1 /dev/null and loop 0
2018.11.20 22:48:58 5: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,24

2018.11.20 22:48:58 4: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,24

2018.11.20 22:48:58 5: Cmd: >{BlockingStart('1')}<
2018.11.20 22:48:58 5: Cmd: >{XiaomiBTLESens::ExecGatttool_Done('Schuurtemp|4C:65:A8:D1:7D:DC|ok|read|0x18|{"gtResult":"24 "}')}<
2018.11.20 22:48:58 5: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Done: gatttool return string: Schuurtemp|4C:65:A8:D1:7D:DC|ok|read|0x18|{"gtResult":"24 "}
2018.11.20 22:48:58 4: XiaomiBTLESens (Schuurtemp) - ProcessingNotification
2018.11.20 22:48:58 4: XiaomiBTLESens (Schuurtemp) - ProcessingNotification: handle 0x18
2018.11.20 22:48:58 4: XiaomiBTLESens (Schuurtemp) - Thermo/Hygro Sens Handle0x18
2018.11.20 22:48:58 5: Starting notify loop for Schuurtemp, 3 event(s), first is batteryPercent: 36
2018.11.20 22:48:58 5: Notify for Schuurtemp
2018.11.20 22:48:58 5: batteryPercent: 36, 'batteryPercent', '36'
2018.11.20 22:48:58 5: MQTT mqtt message sent: Publish/at-most-once,retain /Schuurtemp/Schuurtemp/Batt
  33 36                                            36
2018.11.20 22:48:58 5: SW: 311f001b2f53636875757274656d702f53636875757274656d702f426174743336
2018.11.20 22:48:58 5: Starting notify loop for schuurtemp_mqtt, 1 event(s), first is transmission-state: outgoing publish sent
2018.11.20 22:48:58 5: End notify loop for schuurtemp_mqtt
2018.11.20 22:48:58 5: batteryState: ok, 'batteryState', 'ok'
2018.11.20 22:48:58 5: T: 7.3 H: 7.6, 'T', '7.3 H: 7.6'
2018.11.20 22:48:58 5: End notify loop for Schuurtemp
2018.11.20 22:48:58 4: XiaomiBTLESens (Schuurtemp) - WriteReadings: Readings were written
2018.11.20 22:48:58 4: XiaomiBTLESens (Schuurtemp) - Run CreateParamGatttool with mod: write
2018.11.20 22:48:58 4: BlockingCall (XiaomiBTLESens::ExecGatttool_Run): created child (28777), uses telnetPort to connect back
2018.11.20 22:48:58 5: Starting notify loop for Schuurtemp, 1 event(s), first is write sensor data
2018.11.20 22:48:58 5: Notify for Schuurtemp
2018.11.20 22:48:58 5: write sensor data, 'write sensor data', ''
2018.11.20 22:48:58 5: End notify loop for Schuurtemp
2018.11.20 22:48:58 5: XiaomiBTLESens (Schuurtemp) - Write XiaomiBTLESens_ExecGatttool_Run Schuurtemp|4C:65:A8:D1:7D:DC|write|0x10|0100
2018.11.20 22:48:58 4: Connection accepted from telnetPort_127.0.0.1_54422
2018.11.20 22:48:58 5: Cmd: >{BlockingRegisterTelnet($cl,2)}<
2018.11.20 22:48:58 5: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D1:7D:DC --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.11.20 22:49:08 5: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 37 2e 33 20 48 3d 36 37 2e 34 00
Notification handle = 0x000e value,54 3d 37 2e 32 20 48 3d 36 37 2e 36 00
Notification handle = 0x000e value,54 3d 37 2e 33 20 48 3d 36 37 2e 38 00
Notification handle = 0x000e value,54 3d 37 2e 34 20 48 3d 36 37 2e 37 00
Notification handle = 0x000e value,54 3d 37 2e 33 20 48 3d 36 37 2e 37 00
Notification handle = 0x000e value,54 3d 37 2e 33 20 48 3d 36 37 2e 38 00
Notification handle = 0x000e value,54 3d 37 2e 33 20 48 3d 36 37 2e 37 00

2018.11.20 22:49:08 4: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 37 2e 33 20 48 3d 36 37 2e 34 00
Notification handle = 0x000e value,54 3d 37 2e 32 20 48 3d 36 37 2e 36 00
Notification handle = 0x000e value,54 3d 37 2e 33 20 48 3d 36 37 2e 38 00
Notification handle = 0x000e value,54 3d 37 2e 34 20 48 3d 36 37 2e 37 00
Notification handle = 0x000e value,54 3d 37 2e 33 20 48 3d 36 37 2e 37 00
Notification handle = 0x000e value,54 3d 37 2e 33 20 48 3d 36 37 2e 38 00
Notification handle = 0x000e value,54 3d 37 2e 33 20 48 3d 36 37 2e 37 00

2018.11.20 22:49:08 5: Cmd: >{BlockingStart('2')}<
2018.11.20 22:49:08 5: Cmd: >{XiaomiBTLESens::ExecGatttool_Done('Schuurtemp|4C:65:A8:D1:7D:DC|ok|write|0x10|{"gtResult":"54 3d 37 2e 33 20 48 3d 36 37 2e 34 00 "}')}<
2018.11.20 22:49:08 5: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Done: gatttool return string: Schuurtemp|4C:65:A8:D1:7D:DC|ok|write|0x10|{"gtResult":"54 3d 37 2e 33 20 48 3d 36 37 2e 34 00 "}
2018.11.20 22:49:08 4: XiaomiBTLESens (Schuurtemp) - ProcessingNotification
2018.11.20 22:49:08 4: XiaomiBTLESens (Schuurtemp) - ProcessingNotification: handle 0x10
2018.11.20 22:49:08 4: XiaomiBTLESens (Schuurtemp) - Thermo/Hygro Sens Handle0x10
2018.11.20 22:49:08 5: Starting notify loop for Schuurtemp, 3 event(s), first is temperature: 7.3
2018.11.20 22:49:08 5: Notify for Schuurtemp
2018.11.20 22:49:08 5: temperature: 7.3 , 'temperature', '7.3 '
2018.11.20 22:49:08 5: MQTT mqtt message sent: Publish/at-most-once,retain /Schuurtemp/Schuurtemp/Temperature
  37 2e 33 20                                      7.3
2018.11.20 22:49:08 5: SW: 312800222f53636875757274656d702f53636875757274656d702f54656d7065726174757265372e3320
2018.11.20 22:49:08 5: Starting notify loop for schuurtemp_mqtt, 1 event(s), first is transmission-state: outgoing publish sent
2018.11.20 22:49:08 5: End notify loop for schuurtemp_mqtt
2018.11.20 22:49:08 5: humidity: 7.4, 'humidity', '7.4'
2018.11.20 22:49:08 5: MQTT mqtt message sent: Publish/at-most-once,retain /Schuurtemp/Schuurtemp/Humidity
  37 2e 34 00                                      7.4.
2018.11.20 22:49:08 5: SW: 3125001f2f53636875757274656d702f53636875757274656d702f48756d6964697479372e3400
2018.11.20 22:49:08 5: Starting notify loop for schuurtemp_mqtt, 1 event(s), first is transmission-state: outgoing publish sent
2018.11.20 22:49:08 5: End notify loop for schuurtemp_mqtt
2018.11.20 22:49:08 5: T: 7.3  H: 7.4, 'T', '7.3  H: 7.4'
2018.11.20 22:49:08 5: End notify loop for Schuurtemp
2018.11.20 22:49:08 4: XiaomiBTLESens (Schuurtemp) - WriteReadings: Readings were written
2018.11.20 22:49:12 4: Connection accepted from WEB_192.168.180.32_56849
2018.11.20 22:49:12 4: WEB_192.168.180.32_56849 GET /fhem; BUFLEN:0
2018.11.20 22:49:12 4: WEB: /fhem / RL:1256 / text/html; charset=UTF-8 / Content-Encoding: gzip
/


Ok i have write a fix. Can you test the attatched file?

Alle anderen die auch den thermoHygroSens verwenden bitte ich ebenfalls zu testen. Es gab hier einen User mit Tifkühltruhe, und andere bei den das = im Reading stand. Bitte diese User auch testen. Dank roonen weiß ich wieder wieso ich damals diese Unterschiede gemacht hatte. Ich hoffe ich habe das passend aus gebaut.


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