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

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

Vorheriges Thema - Nächstes Thema

Invers

Ich habe 2 Hygro- Thermometer im Einsatz. Eine 73 qm grosse Wohnung kann man damit bezüglich Reichweite nicht abdecken, zumindest, wenn eine Wand dazwischen liegt. Für die Nachbarzimmer reicht es aber schon. Somit fällt bei mir eigentlich nur die Küche raus. Ich war verblüfft, dass die Abweichung beider Thermometer nur 0,2 Grad betragen. Da lagen sie natürlich direkt nebeneinander. Bei der Feuchte gab es gar keine Abweichung. Ich werde mir wohl noch 2 Stück zulegen. Die Batterien stehen nach etwa einem Monat Betriebszeit auf 98 Prozent. Ich denke aber, das ist meine Schuld, weil ich zu häufig abfrage. 
Pi3B+ mit SSD/ Bullseye | FB7590 AX | 12 x Dect200 | CUL433+868 | SDuino | HM-LAN | 3 x Heizung FHT + FKontakte | KeyMatic + 4 FB | HM Wandtaster 2-fach m. LED | 6 x Türkont. TFK-TI | HM-Bew.-Melder innen | 3 x Smoked. HM-SEC-SD-2

CoolTux

Alternativ kann man sich ja immer noch einen kleinen Pi holen und per ssh abrufen.
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

ext23

Zitat von: Invers am 18 Juli 2018, 08:54:31
Ich habe 2 Hygro- Thermometer im Einsatz. Eine 73 qm grosse Wohnung kann man damit bezüglich Reichweite nicht abdecken, zumindest, wenn eine Wand dazwischen liegt. Für die Nachbarzimmer reicht es aber schon. Somit fällt bei mir eigentlich nur die Küche raus. Ich war verblüfft, dass die Abweichung beider Thermometer nur 0,2 Grad betragen. Da lagen sie natürlich direkt nebeneinander. Bei der Feuchte gab es gar keine Abweichung. Ich werde mir wohl noch 2 Stück zulegen. Die Batterien stehen nach etwa einem Monat Betriebszeit auf 98 Prozent. Ich denke aber, das ist meine Schuld, weil ich zu häufig abfrage.

Kann ich bestätigen, wenn dei Türen offen sind geht das einigermaßen gut. Aber dolle ist es nicht, aber gut ist eben BLE.

An sicht sind die Teile gut, ich bin nur gespannt wann das Wasser durchdiffundiert bei der eigenartigen Beschichtung. Die Nährstoffangabe ist auch Blödsinn, hätte man sich sparen können.
HM, KNX, FS20, 1-Wire, PanStamp, AVR-NET-IO, EM1000EM, PCA301, EC3000, HM-LAN, CUL868, RFXtrx433, LGW, DMX @Ubuntu-Server (Hauptsystem) & Raspberry Pi (Satellit)

Invers

Nach meiner Auffassung haben wir ja gerade über die Thermometer von Xiaomi geredet, nicht über das Pflanzenteil. Aber ich denke, die Reichweite sollte theoretisch etwa gleich sein.
Beide Gerätearten laufen bei mir äusserst zuverlässig.


@CoolTux
Da wäre es aber einfacher, ein Anderes Thermometer zu kaufen. :-)
Danke nochmals für das tolle und sehr gut funktionierende Modul.
Pi3B+ mit SSD/ Bullseye | FB7590 AX | 12 x Dect200 | CUL433+868 | SDuino | HM-LAN | 3 x Heizung FHT + FKontakte | KeyMatic + 4 FB | HM Wandtaster 2-fach m. LED | 6 x Türkont. TFK-TI | HM-Bew.-Melder innen | 3 x Smoked. HM-SEC-SD-2

mark79

Hallo CoolTux,

wenn du mal Zeit hast, könntest du vielleicht die Xiaomi Oclean SE Zahnbürste mit in dein Modul einbinden? :)
https://www.chinahandys.net/oclean-one-schallzahnbuerste-im-test/
Diese ist noch im Angebot, für 34,19€ https://www.mydealz.de/deals/xiaomi-oclean-se-sonic-elektrische-zahnburste-1193722

Ich habe etwas mit gatttool rumgespielt und mit "char-read-hnd 0x0011" lässt sich der Akku stand auslesen:

Akku 96%
[70:28:45:5E:FC:73][LE]> char-read-hnd 0x0011
Characteristic value/descriptor: 60


Akku 94%
[70:28:45:5E:FC:73][LE]> char-read-hnd 0x0011
Characteristic value/descriptor: 5e


root@rocki:~# gatttool -i hci0 -b 70:28:45:5E:FC:73 -I
[70:28:45:5E:FC:73][LE]> connect
Attempting to connect to 70:28:45:5E:FC:73
Connection successful
[70:28:45:5E:FC:73][LE]> primary
attr handle: 0x0001, end grp handle: 0x0007 uuid: 00001800-0000-1000-8000-00805f9b34fb
attr handle: 0x0008, end grp handle: 0x0008 uuid: 00001801-0000-1000-8000-00805f9b34fb
attr handle: 0x0009, end grp handle: 0x000b uuid: 00001802-0000-1000-8000-00805f9b34fb
attr handle: 0x000c, end grp handle: 0x000e uuid: 00001803-0000-1000-8000-00805f9b34fb
attr handle: 0x000f, end grp handle: 0x0012 uuid: 0000180f-0000-1000-8000-00805f9b34fb
attr handle: 0x0013, end grp handle: 0x0016 uuid: 0783b03e-8535-b5a0-7140-a304d2495cd7
attr handle: 0x0017, end grp handle: 0x0026 uuid: 8082caa8-41a6-4021-91c6-56f9b954cc18
attr handle: 0x0027, end grp handle: 0x0036 uuid: 0000fef5-0000-1000-8000-00805f9b34fb
attr handle: 0x0037, end grp handle: 0x0043 uuid: 0000180a-0000-1000-8000-00805f9b34fb
[70:28:45:5E:FC:73][LE]>
[70:28:45:5E:FC:73][LE]> char-desc
handle: 0x0001, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x0002, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0003, uuid: 00002a00-0000-1000-8000-00805f9b34fb
handle: 0x0004, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0005, uuid: 00002a01-0000-1000-8000-00805f9b34fb
handle: 0x0006, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0007, uuid: 00002a04-0000-1000-8000-00805f9b34fb
handle: 0x0008, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x0009, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x000a, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x000b, uuid: 00002a06-0000-1000-8000-00805f9b34fb
handle: 0x000c, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x000d, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x000e, uuid: 00002a06-0000-1000-8000-00805f9b34fb
handle: 0x000f, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x0010, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0011, uuid: 00002a19-0000-1000-8000-00805f9b34fb
handle: 0x0012, uuid: 00002902-0000-1000-8000-00805f9b34fb
handle: 0x0013, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x0014, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0015, uuid: 0783b03e-8535-b5a0-7140-a304d2495cd8
handle: 0x0016, uuid: 00002902-0000-1000-8000-00805f9b34fb
handle: 0x0017, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x0018, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0019, uuid: 9d84b9a3-000c-49d8-9183-855b673fbb85
handle: 0x001a, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x001b, uuid: 5f78df94-798c-46f5-990a-855b673fbb86
handle: 0x001c, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x001d, uuid: 5f78df94-798c-46f5-990a-855b673fbb87
handle: 0x001e, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x001f, uuid: 5f78df94-798c-46f5-990a-855b673fbb88
handle: 0x0020, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0021, uuid: 5f78df94-798c-46f5-990a-855b673fbb89
handle: 0x0022, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0023, uuid: 5f78df94-798c-46f5-990a-855b673fbb90
handle: 0x0024, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0025, uuid: 5f78df94-798c-46f5-990a-b3eb6a065c78
handle: 0x0026, uuid: 00002902-0000-1000-8000-00805f9b34fb
handle: 0x0027, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x0028, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0029, uuid: 8082caa8-41a6-4021-91c6-56f9b954cc34
handle: 0x002a, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x002b, uuid: 724249f0-5ec3-4b5f-8804-42345af08651
handle: 0x002c, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x002d, uuid: 6c53db25-47a1-45fe-a022-7c92fb334fd4
handle: 0x002e, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x002f, uuid: 9d84b9a3-000c-49d8-9183-855b673fda31
handle: 0x0030, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0031, uuid: 457871e8-d516-4ca1-9116-57d0b17b9cb2
handle: 0x0032, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0033, uuid: 5f78df94-798c-46f5-990a-b3eb6a065c88
handle: 0x0034, uuid: 00002902-0000-1000-8000-00805f9b34fb
handle: 0x0035, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0036, uuid: 61c8849c-f639-4765-946e-5c3419bebb2a
handle: 0x0037, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x0038, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0039, uuid: 00002a29-0000-1000-8000-00805f9b34fb
handle: 0x003a, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x003b, uuid: 00002a24-0000-1000-8000-00805f9b34fb
handle: 0x003c, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x003d, uuid: 00002a25-0000-1000-8000-00805f9b34fb
handle: 0x003e, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x003f, uuid: 00002a27-0000-1000-8000-00805f9b34fb
handle: 0x0040, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0041, uuid: 00002a26-0000-1000-8000-00805f9b34fb
handle: 0x0042, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0043, uuid: 00002a28-0000-1000-8000-00805f9b34fb



Viele Grüße
Mark
Rock64 4GB mit Debian Strech, FHEM im LXC, Sonoff Switches/Touch, HM Thermostate, HMUART/Zigbee2MQTT@MapleCUN, ESP RGBWW Wifi Controller, ESP8266 Door Sensor/Briefkastenwächter, BT CSL Stick, BT iTags, Alexa, FireTV, RPi2 mit Kodi, Xiaomi Vacuum v1/Smarthome Komponenten

CoolTux

Zitat von: mark79 am 28 Juli 2018, 17:05:59
Hallo CoolTux,

wenn du mal Zeit hast, könntest du vielleicht die Xiaomi Oclean SE Zahnbürste mit in dein Modul einbinden? :)
https://www.chinahandys.net/oclean-one-schallzahnbuerste-im-test/
Diese ist noch im Angebot, für 34,19€ https://www.mydealz.de/deals/xiaomi-oclean-se-sonic-elektrische-zahnburste-1193722

Ich habe etwas mit gatttool rumgespielt und mit "char-read-hnd 0x0011" lässt sich der Akku stand auslesen:

Akku 96%
[70:28:45:5E:FC:73][LE]> char-read-hnd 0x0011
Characteristic value/descriptor: 60


Akku 94%
[70:28:45:5E:FC:73][LE]> char-read-hnd 0x0011
Characteristic value/descriptor: 5e


root@rocki:~# gatttool -i hci0 -b 70:28:45:5E:FC:73 -I
[70:28:45:5E:FC:73][LE]> connect
Attempting to connect to 70:28:45:5E:FC:73
Connection successful
[70:28:45:5E:FC:73][LE]> primary
attr handle: 0x0001, end grp handle: 0x0007 uuid: 00001800-0000-1000-8000-00805f9b34fb
attr handle: 0x0008, end grp handle: 0x0008 uuid: 00001801-0000-1000-8000-00805f9b34fb
attr handle: 0x0009, end grp handle: 0x000b uuid: 00001802-0000-1000-8000-00805f9b34fb
attr handle: 0x000c, end grp handle: 0x000e uuid: 00001803-0000-1000-8000-00805f9b34fb
attr handle: 0x000f, end grp handle: 0x0012 uuid: 0000180f-0000-1000-8000-00805f9b34fb
attr handle: 0x0013, end grp handle: 0x0016 uuid: 0783b03e-8535-b5a0-7140-a304d2495cd7
attr handle: 0x0017, end grp handle: 0x0026 uuid: 8082caa8-41a6-4021-91c6-56f9b954cc18
attr handle: 0x0027, end grp handle: 0x0036 uuid: 0000fef5-0000-1000-8000-00805f9b34fb
attr handle: 0x0037, end grp handle: 0x0043 uuid: 0000180a-0000-1000-8000-00805f9b34fb
[70:28:45:5E:FC:73][LE]>
[70:28:45:5E:FC:73][LE]> char-desc
handle: 0x0001, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x0002, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0003, uuid: 00002a00-0000-1000-8000-00805f9b34fb
handle: 0x0004, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0005, uuid: 00002a01-0000-1000-8000-00805f9b34fb
handle: 0x0006, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0007, uuid: 00002a04-0000-1000-8000-00805f9b34fb
handle: 0x0008, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x0009, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x000a, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x000b, uuid: 00002a06-0000-1000-8000-00805f9b34fb
handle: 0x000c, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x000d, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x000e, uuid: 00002a06-0000-1000-8000-00805f9b34fb
handle: 0x000f, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x0010, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0011, uuid: 00002a19-0000-1000-8000-00805f9b34fb
handle: 0x0012, uuid: 00002902-0000-1000-8000-00805f9b34fb
handle: 0x0013, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x0014, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0015, uuid: 0783b03e-8535-b5a0-7140-a304d2495cd8
handle: 0x0016, uuid: 00002902-0000-1000-8000-00805f9b34fb
handle: 0x0017, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x0018, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0019, uuid: 9d84b9a3-000c-49d8-9183-855b673fbb85
handle: 0x001a, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x001b, uuid: 5f78df94-798c-46f5-990a-855b673fbb86
handle: 0x001c, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x001d, uuid: 5f78df94-798c-46f5-990a-855b673fbb87
handle: 0x001e, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x001f, uuid: 5f78df94-798c-46f5-990a-855b673fbb88
handle: 0x0020, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0021, uuid: 5f78df94-798c-46f5-990a-855b673fbb89
handle: 0x0022, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0023, uuid: 5f78df94-798c-46f5-990a-855b673fbb90
handle: 0x0024, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0025, uuid: 5f78df94-798c-46f5-990a-b3eb6a065c78
handle: 0x0026, uuid: 00002902-0000-1000-8000-00805f9b34fb
handle: 0x0027, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x0028, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0029, uuid: 8082caa8-41a6-4021-91c6-56f9b954cc34
handle: 0x002a, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x002b, uuid: 724249f0-5ec3-4b5f-8804-42345af08651
handle: 0x002c, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x002d, uuid: 6c53db25-47a1-45fe-a022-7c92fb334fd4
handle: 0x002e, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x002f, uuid: 9d84b9a3-000c-49d8-9183-855b673fda31
handle: 0x0030, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0031, uuid: 457871e8-d516-4ca1-9116-57d0b17b9cb2
handle: 0x0032, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0033, uuid: 5f78df94-798c-46f5-990a-b3eb6a065c88
handle: 0x0034, uuid: 00002902-0000-1000-8000-00805f9b34fb
handle: 0x0035, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0036, uuid: 61c8849c-f639-4765-946e-5c3419bebb2a
handle: 0x0037, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x0038, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0039, uuid: 00002a29-0000-1000-8000-00805f9b34fb
handle: 0x003a, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x003b, uuid: 00002a24-0000-1000-8000-00805f9b34fb
handle: 0x003c, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x003d, uuid: 00002a25-0000-1000-8000-00805f9b34fb
handle: 0x003e, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x003f, uuid: 00002a27-0000-1000-8000-00805f9b34fb
handle: 0x0040, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0041, uuid: 00002a26-0000-1000-8000-00805f9b34fb
handle: 0x0042, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0043, uuid: 00002a28-0000-1000-8000-00805f9b34fb



Viele Grüße
Mark

Hallo Mark,

Ich schaue es mir die Wochen einmal an.


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

mark79

Zitat von: CoolTux am 28 Juli 2018, 19:57:20
Hallo Mark,

Ich schaue es mir die Wochen einmal an.

Hi Cooltux, das wäre super. Wenn du noch was brauchst, sag bescheid und es hat Zeit, der Akku soll angeblich 2 Monate durchhalten. :D

Gibt es eigentlich einen besseren Weg, um so was herauszufinden?
So etwas wie ein Sniffer, also das man die Kommunikation der APP mit dem Device mitschneiden kann...


Viele Grüße
Mark
Rock64 4GB mit Debian Strech, FHEM im LXC, Sonoff Switches/Touch, HM Thermostate, HMUART/Zigbee2MQTT@MapleCUN, ESP RGBWW Wifi Controller, ESP8266 Door Sensor/Briefkastenwächter, BT CSL Stick, BT iTags, Alexa, FireTV, RPi2 mit Kodi, Xiaomi Vacuum v1/Smarthome Komponenten

CoolTux

Zitat von: mark79 am 28 Juli 2018, 23:59:26
Hi Cooltux, das wäre super. Wenn du noch was brauchst, sag bescheid und es hat Zeit, der Akku soll angeblich 2 Monate durchhalten. :D

Gibt es eigentlich einen besseren Weg, um so was herauszufinden?
So etwas wie ein Sniffer, also das man die Kommunikation der APP mit dem Device mitschneiden kann...


Viele Grüße
Mark

Es gibt da so die ein oder andere App. Musst bitte mal schauen. Oder eventuell findest Du sogar schon Infos im Netz.
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

ToM_ToM

Hi Leon,

mir ist aufgefallen dass disabledForIntervals bei mir nicht sauber arbeitet. Es wird zwar das Device korrekt disabled, aber nicht wieder enabled. Das Verhalten habe ich beim aktuellen als auch beim alten XiaomiFolowerSens Modul.


defmod Pflanze_07 XiaomiBTLESens C4:XX:XX:XX:XX:XX
attr Pflanze_07 DbLogExclude .*
attr Pflanze_07 alias Gasteria
attr Pflanze_07 disabledForIntervals 21:00-24:00 00:00-06:00
attr Pflanze_07 interval 3600
attr Pflanze_07 maxFertility 1000
attr Pflanze_07 maxLux 30000
attr Pflanze_07 maxMoisture 50
attr Pflanze_07 maxTemp 35
attr Pflanze_07 minFertility 300
attr Pflanze_07 minLux 3500
attr Pflanze_07 minMoisture 7
attr Pflanze_07 minTemp 5
attr Pflanze_07 model flowerSens
attr Pflanze_07 room FlowerSens
attr Pflanze_07 userReadings moistureFeeling:moisture.* {\
if (ReadingsVal($name, "moisture", -1) < AttrVal($name, "minMoisture", 0)) {\
return "too dry";;\
}\
elsif (ReadingsVal($name, "moisture", -1) > AttrVal($name, "maxMoisture", 100)) {\
return "too wet";;\
}\
else {\
return "good";;\
}\
}

setstate Pflanze_07 disabled
setstate Pflanze_07 2018-06-14 20:36:07 battery ok
setstate Pflanze_07 2018-06-14 20:36:07 batteryLevel 100
setstate Pflanze_07 2018-07-31 20:33:29 batteryPercent 100
setstate Pflanze_07 2018-07-31 20:33:29 batteryState ok
setstate Pflanze_07 2018-07-31 20:33:31 fertility 1332
setstate Pflanze_07 2018-07-31 20:33:29 firmware 3.1.8
setstate Pflanze_07 2018-07-28 19:14:27 lastGattError charWrite faild
setstate Pflanze_07 2018-07-31 20:33:31 lux 164
setstate Pflanze_07 2018-07-31 20:33:31 moisture 24
setstate Pflanze_07 2018-07-31 20:33:31 moistureFeeling good
setstate Pflanze_07 2018-08-01 21:31:20 state disabled
setstate Pflanze_07 2018-07-31 20:33:31 temperature 28.2


Ich hatte es auch mit disabledForIntervals 21:00-23:59 00:00-06:00 probiert. Gleiches Verhalten.
Hardware: BananaPi, Busmaster CUL, SanDisk 16GB Ultra SD, 16 GB USB-Stick | Software: Armbian, FHEM 5.8

CoolTux

Hallo Tom,

Deine aktuelle Konfiguration ist korrekt. Wie äußert sich denn das nicht funktionieren? Wird außerhalb des Zeitintervalls nicht abgefragt?
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

ToM_ToM

ZitatDeine aktuelle Konfiguration ist korrekt. Wie äußert sich denn das nicht funktionieren? Wird außerhalb des Zeitintervalls nicht abgefragt?[/quote
Ja genau. Du siehst ja, er hat um 21:31:20 den Status geändert und das Device disabled, jedoch wird es am nächsten Tag um 06:00 bzw. nach 06:00 nicht wieder enabled. Da der Abfrage-Intervall auf eine Stunde steht, würde ich erwarten dass spätestens gegen 07:00 die Abfrage ausgeführt werden müsste. Aber selbst um 08:00 hat sich nichts getan. Wenn ich dann manuell abfrage, geht's.

VG, Thomas
Hardware: BananaPi, Busmaster CUL, SanDisk 16GB Ultra SD, 16 GB USB-Stick | Software: Armbian, FHEM 5.8

CoolTux

Da braucht ich dann aber bitte ein list vom Device, die raw definitions helfen mir da nicht.
Ich kann Dir nur sagen das es bei mir funktioniert. Das disabled verschwindet sobald der erste Aufruf nach dem Intervall kommt. Also frühstens 06:01 aber spätestens bei Dir wohl 8 Uhr
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

ToM_ToM

ZitatDa braucht ich dann aber bitte ein list vom Device, die raw definitions helfen mir da nicht.

Anbei das list. Die Mac habe ich verfälscht.


Internals:
   BTMAC      C4:XX:XX:XX:XX:70
   DEF        C4:XX:XX:XX:XX:70
   INTERVAL   3600
   NAME       Pflanze_07
   NOTIFYDEV  global,Pflanze_07
   NR         1007
   NTFY_ORDER 50-Pflanze_07
   STATE      disabled
   TYPE       XiaomiBTLESens
   VERSION    2.2.0
   loglevel   4
   READINGS:
     2018-06-14 20:36:07   battery         ok
     2018-06-14 20:36:07   batteryLevel    100
     2018-07-31 20:33:29   batteryPercent  100
     2018-07-31 20:33:29   batteryState    ok
     2018-07-31 20:33:31   fertility       1332
     2018-07-31 20:33:29   firmware        3.1.8
     2018-07-28 19:14:27   lastGattError   charWrite faild
     2018-07-31 20:33:31   lux             164
     2018-07-31 20:33:31   moisture        24
     2018-07-31 20:33:31   moistureFeeling good
     2018-08-01 21:31:20   state           disabled
     2018-07-31 20:33:31   temperature     28.2
   helper:
     CallBattery 0
     CallSensDataCounter 0
Attributes:
   DbLogExclude .*
   alias      Gasteria
   disabledForIntervals 21:00-24:00 00:00-06:00
   interval   3600
   maxFertility 1000
   maxLux     30000
   maxMoisture 50
   maxTemp    35
   minFertility 300
   minLux     3500
   minMoisture 7
   minTemp    5
   model      flowerSens
   room       FlowerSens
   userReadings moistureFeeling:moisture.* {
if (ReadingsVal($name, "moisture", -1) < AttrVal($name, "minMoisture", 0)) {
return "too dry";
}
elsif (ReadingsVal($name, "moisture", -1) > AttrVal($name, "maxMoisture", 100)) {
return "too wet";
}
else {
return "good";
}
}


VG, Thomas
Hardware: BananaPi, Busmaster CUL, SanDisk 16GB Ultra SD, 16 GB USB-Stick | Software: Armbian, FHEM 5.8

CoolTux

OK. Dann bitte morgen früh noch mal wenn er eigentlich einmal angerufen haben sollte es aber nicht hat.
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

ToM_ToM

Guten Morgen.

Ich habe gestern Abend das disabledForIntervals von meinem XiaomiBTLESens umgestellt auf 21:00-24:00 00:00-04:00.
Und heute morgen lief alles korrekt.

Ich habe derzeit 5 aktive XiaomiFlowerSens und 1 aktiven XiaomiBTLESens die alle das gleiche disableForIntervals haben.
Kann es sein dass die sich in die Quere kommen weil die alle morgens um 06:00 loslaufen wollen?

Hier nochmal ein list (allerdings läuft es ja heute morgen korrekt)


Internals:
   BTMAC      C4:XX:XX:XX:XX:70
   DEF        C4:XX:XX:XX:XX:70
   INTERVAL   3600
   NAME       Pflanze_07
   NOTIFYDEV  global,Pflanze_07
   NR         1007
   NTFY_ORDER 50-Pflanze_07
   STATE      active
   TYPE       XiaomiBTLESens
   VERSION    2.2.0
   loglevel   4
   READINGS:
     2018-06-14 20:36:07   battery         ok
     2018-06-14 20:36:07   batteryLevel    100
     2018-08-02 18:53:42   batteryPercent  100
     2018-08-02 18:53:42   batteryState    ok
     2018-08-03 06:01:28   fertility       1496
     2018-08-02 18:53:42   firmware        3.1.8
     2018-07-28 19:14:27   lastGattError   charWrite faild
     2018-08-03 06:01:28   lux             21
     2018-08-03 06:01:28   moisture        22
     2018-08-03 06:01:28   moistureFeeling good
     2018-08-03 06:01:28   state           active
     2018-08-03 06:01:28   temperature     27.8
   helper:
     CallBattery 0
     CallSensDataCounter 0
     updateTimeCallBattery 1533228822.27665
     updateTimestampCallBattery 2018-08-02 18:53:42
Attributes:
   DbLogExclude .*
   alias      Gasteria
   disabledForIntervals 21:00-24:00 00:00-04:00
   interval   3600
   maxFertility 1000
   maxLux     30000
   maxMoisture 50
   maxTemp    35
   minFertility 300
   minLux     3500
   minMoisture 7
   minTemp    5
   model      flowerSens
   room       FlowerSens
   userReadings moistureFeeling:moisture.* {
if (ReadingsVal($name, "moisture", -1) < AttrVal($name, "minMoisture", 0)) {
return "too dry";
}
elsif (ReadingsVal($name, "moisture", -1) > AttrVal($name, "maxMoisture", 100)) {
return "too wet";
}
else {
return "good";
}
}
Hardware: BananaPi, Busmaster CUL, SanDisk 16GB Ultra SD, 16 GB USB-Stick | Software: Armbian, FHEM 5.8