Neues Modul: EQ3 Bluetooth Thermostat (10_EQ3BT)

Begonnen von dominik, 12 November 2016, 11:45:15

Vorheriges Thema - Nächstes Thema

CoolTux

Ich habe mir das im Code gerade eben angeschaut. Es stimmt. Die Reihenfolge der Codeblocks ist Fehlerhaft und muss umgedreht werden.
Aus

        $cmd .= "ssh $sshHost '" if($sshHost ne 'none');
        $cmd .= "timeout " . AttrVal($name, "timeout", 15) . " " if($listen);
        $cmd .= "gatttool -i $hciDevice -b $mac ";
        $cmd .= "--char-write-req -a $handle -n $value";
        $cmd .= " --listen" if($listen);
        $cmd .= " 2>&1 /dev/null";
        $cmd .= "'" if($sshHost ne 'none');
       
       
       

        if($value eq "03") {
            my ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) = localtime(time);
            my $currentDate = sprintf("%02X%02X%02X%02X%02X", $year+1900-2000, $mon+1, $mday, $hour, $min);
            $value .= $currentDate;
        }


Muss

        if($value eq "03") {
            my ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) = localtime(time);
            my $currentDate = sprintf("%02X%02X%02X%02X%02X", $year+1900-2000, $mon+1, $mday, $hour, $min);
            $value .= $currentDate;
        }


        $cmd .= "ssh $sshHost '" if($sshHost ne 'none');
        $cmd .= "timeout " . AttrVal($name, "timeout", 15) . " " if($listen);
        $cmd .= "gatttool -i $hciDevice -b $mac ";
        $cmd .= "--char-write-req -a $handle -n $value";
        $cmd .= " --listen" if($listen);
        $cmd .= " 2>&1 /dev/null";
        $cmd .= "'" if($sshHost ne 'none');


werden.

Super aufgepasst IT-Fuzzi. Vielen Dank Dir.
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

Master_Nick

Frohes Neues  ;D

Ich denke mal Sekunden sind raus, da man am Gerät auch keine Sekunden einstellen kann.
Das Kann Tag, Monat, Jahr, Stunden und Minuten.

Aber dann schau ich das mal bei Gelegenheit an um es auf das korrekte Datum zu bringen.
Bei der Gelegenheit werde ich dann auch die Maximalwerte auf 30 setzen.
Die Thmerostate haben Off bei 4.5 und On bei 30. Das Modul geht nur bis 29 - etwas sinnlos :-)


*EDIT ah da war CoolTux schneller :-D
Rancher K8s Cluster mit nanoCUL (a-culfw) | IObroker | IT(V1&V3), IT-PIR, THGR122NX |Co² | alexa-fhem | WOL | NFC | Harmony UltimateHub | Anwesenheitserkennnung | Roomba | 10" Touch mit Node-Red | SonOff S20 | SonOff Touch | SonOff Dual | Rolladen | Und ganz viel anderes tolles Gerödel.... ;-)

Gasmast3r

hallo habe neuerdings folgende log Einträge


bash: Zeile 1: 27474 Ungültiger Maschinenbefehl   timeout 15 gatttool -i hci0 -b 00:1A:22:05:F8:8F --char-write-req -a 0x0411 -n 03 --listen /dev/null 2>&1
bash: Zeile 1: 27562 Ungültiger Maschinenbefehl   timeout 15 gatttool -i hci0 -b 00:1A:22:05:F8:8F --char-write-req -a 0x0411 -n 4109 --listen /dev/null 2>&1
bash: Zeile 1: 27590 Ungültiger Maschinenbefehl   timeout 15 gatttool -i hci0 -b 00:1A:22:05:F8:8F --char-write-req -a 0x0411 -n 03 --listen /dev/null 2>&1
bash: Zeile 1: 27650 Ungültiger Maschinenbefehl   timeout 15 gatttool -i hci0 -b 00:1A:22:05:F8:8F --char-write-req -a 0x0411 -n 4109 --listen /dev/null 2>&1
bash: Zeile 1: 27706 Ungültiger Maschinenbefehl   timeout 15 gatttool -i hci0 -b 00:1A:22:05:F8:8F --char-write-req -a 0x0411 -n 03 --listen /dev/null 2>&1
bash: Zeile 1: 27767 Ungültiger Maschinenbefehl   timeout 15 gatttool -i hci0 -b 00:1A:22:05:F8:8F --char-write-req -a 0x0411 -n 4109 --listen /dev/null 2>&1
bash: Zeile 1: 27823 Ungültiger Maschinenbefehl   timeout 15 gatttool -i hci0 -b 00:1A:22:05:F8:8F --char-write-req -a 0x0411 -n 03 --listen /dev/null 2>&1
bash: Zeile 1: 27881 Ungültiger Maschinenbefehl   timeout 15 gatttool -i hci0 -b 00:1A:22:05:F8:8F --char-write-req -a 0x0411 -n 4109 --listen /dev/null 2>&1
bash: Zeile 1: 27939 Ungültiger Maschinenbefehl   timeout 15 gatttool -i hci0 -b 00:1A:22:05:F8:8F --char-write-req -a 0x0411 -n 03 --listen /dev/null 2>&1


habe nur ein Thermostat Per SSH am laufen und genau das was diese log Einträge erzeugt.

Per SSH kann ich mich auf den passenden Pi ohne PW anmelden, also schlisse ich das eine Fehler aus.

Master_Nick

Mh bei mir ist nichts derlei vorhanden bei 7 EQ3 in Nutzung mittels SSH Host.
Sicher, dass nicht was in die Brüche ging? Würde den Weg nochmal prüfen.

Ggf reboot.
Rancher K8s Cluster mit nanoCUL (a-culfw) | IObroker | IT(V1&V3), IT-PIR, THGR122NX |Co² | alexa-fhem | WOL | NFC | Harmony UltimateHub | Anwesenheitserkennnung | Roomba | 10" Touch mit Node-Red | SonOff S20 | SonOff Touch | SonOff Dual | Rolladen | Und ganz viel anderes tolles Gerödel.... ;-)

Gasmast3r

Werde ich morgen noch mal testen derzeit ist SSH abgestellt morgen schaue ich mal was sich getan hat.

Gesendet von meinem SNE-LX1 mit Tapatalk


dominik

Habe gerade das Modul aktualisiert, damit nun wieder die richtige Zeit auf den Thermostaten gesetzt wird.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Master_Nick

Ich hatte den Fix getestet und es war direkt wieder korrekt :-)

Kann man aus den 29° maximum bitte 30° machen? :-)
Nur dann sind die Thermostate wirklich auf on und wir haben ja auch 4.5 als off :-)
Rancher K8s Cluster mit nanoCUL (a-culfw) | IObroker | IT(V1&V3), IT-PIR, THGR122NX |Co² | alexa-fhem | WOL | NFC | Harmony UltimateHub | Anwesenheitserkennnung | Roomba | 10" Touch mit Node-Red | SonOff S20 | SonOff Touch | SonOff Dual | Rolladen | Und ganz viel anderes tolles Gerödel.... ;-)

cotecmania

Hallo,

habe aktuell folgende Fehlermeldungen im Log.
2019.01.27 00:31:53 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/10_EQ3BT.pm line 528.
2019.01.27 00:34:52 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/10_EQ3BT.pm line 528.
2019.01.27 00:38:15 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/10_EQ3BT.pm line 528.
2019.01.27 00:41:09 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/10_EQ3BT.pm line 528.
2019.01.27 00:44:21 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/10_EQ3BT.pm line 528.


Was kann das sein ?
FHEM auf RaspberryPI B (buster)
2xCUL868 für MAX/Slow_RF, HM-LAN, JeeLink
MAX!/HM-Thermostate, FS20/HM-Rolladenschalter, FS20-EM, LevelJet-Ölstandsmessung, PCA301, IT, KM271, IPCAM, FireTAB10 FTUI

Master_Nick

Als erstes empfehle ich bei sowas einen sauberen restart von FHEM "shutdown restart" und schauen ob es weiterhin so ist.

Oftmals geht es dann schon flöten (gleiche Meldung bei mir).
Rancher K8s Cluster mit nanoCUL (a-culfw) | IObroker | IT(V1&V3), IT-PIR, THGR122NX |Co² | alexa-fhem | WOL | NFC | Harmony UltimateHub | Anwesenheitserkennnung | Roomba | 10" Touch mit Node-Red | SonOff S20 | SonOff Touch | SonOff Dual | Rolladen | Und ganz viel anderes tolles Gerödel.... ;-)

CoolTux

Zitat von: cotecmania am 27 Januar 2019, 10:15:27
Hallo,

habe aktuell folgende Fehlermeldungen im Log.
2019.01.27 00:31:53 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/10_EQ3BT.pm line 528.
2019.01.27 00:34:52 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/10_EQ3BT.pm line 528.
2019.01.27 00:38:15 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/10_EQ3BT.pm line 528.
2019.01.27 00:41:09 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/10_EQ3BT.pm line 528.
2019.01.27 00:44:21 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/10_EQ3BT.pm line 528.


Was kann das sein ?

Zeig Mal bitte ein list vom device
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

cotecmania

FHEM auf RaspberryPI B (buster)
2xCUL868 für MAX/Slow_RF, HM-LAN, JeeLink
MAX!/HM-Thermostate, FS20/HM-Rolladenschalter, FS20-EM, LevelJet-Ölstandsmessung, PCA301, IT, KM271, IPCAM, FireTAB10 FTUI

Master_Nick

 ;) Gib dem CoolTux bitte dennoch sein List


Eventuell findet er ja was und kann was verbessern.
Rancher K8s Cluster mit nanoCUL (a-culfw) | IObroker | IT(V1&V3), IT-PIR, THGR122NX |Co² | alexa-fhem | WOL | NFC | Harmony UltimateHub | Anwesenheitserkennnung | Roomba | 10" Touch mit Node-Red | SonOff S20 | SonOff Touch | SonOff Dual | Rolladen | Und ganz viel anderes tolles Gerödel.... ;-)

rudeboy

Hallo zusammen,

habe jetzt auch zwei EQ3 Thermostate bei mir zuhause verbaut.
Lief auch alles recht gut nach dem Einrichten. Nur ist mir aufgefallen, dass FHEM nach ca. 5 bis 10 min. die Verbindung zu den Thermostaten verliert und folgende Meldungen im Log auftauchen:

EQ3BT (wz.hk.mitte): updateStatus, 0x0411, 0313020D0A32 failed 20 times.
EQ3BT (wz.hk.rechts): updateStatus, 0x0411, 0313020D0A32 failed 20 times.
EQ3BT (wz.hk.rechts): updateSystemInformation, 0x0411, 00 failed 20 times.
EQ3BT (wz.hk.mitte): updateSystemInformation, 0x0411, 00 failed 20 times.
EQ3BT (wz.hk.rechts): updateStatus, 0x0411, 0313020D0A34 failed 20 times.
EQ3BT (wz.hk.mitte): updateStatus, 0x0411, 0313020D0A36 failed 20 times.
EQ3BT (wz.hk.rechts): updateStatus, 0x0411, 0313020D0A37 failed 20 times. ...


mach ich dann auf der shell ein
sudo hciconfig hci0 down
sudo hciconfig hci0 up

läuft alles wieder 5 bis 10 min. bis die Fehlermeldungen wieder im Log auftauchen.
Probleme wegen Entfernung kann ich hier fast ausschließen, da es ja für ca. 10 min. funktioniert...
Benutze das interne Bluetooth Modul vom Raspberry.

Hatte/hat jemand von Euch auch dieses Problem bzw. kennt einer eine Lösung?

Vielen Dank im Voraus
Rudy
FHEM 5.9
nanoCUL868: HM-LC-DIM1T-FM/nanoCUL433 (V 1.26.05 a-culfw Build: 156): 3x Hama Funksteckdosen/1x BroadLink für TV und TECVANCE Funksteckdosen/1x Echo Dot/2xMagic UFO-WiFi LED-Controller: LED RGBW Warm White LED Strip/Tradfri Gateway: 6x Tradfri LED/2xEQ3 Bluetooth Thermostat

Gasmast3r

Hast du noch was anderes am Bluetooth laufen??
Ich habe mittlerweile 13 Thermostate mit 3 Sticks ohne Probleme.

Gesendet von meinem SNE-LX1 mit Tapatalk


rudeboy

Zitat von: Gasmast3r am 13 Februar 2019, 11:36:54
Hast du noch was anderes am Bluetooth laufen??
Ich habe mittlerweile 13 Thermostate mit 3 Sticks ohne Probleme.

Gesendet von meinem SNE-LX1 mit Tapatalk

Nö, nur die Thermostate hängen an Bluetooth, alles andere ist per WLAN oder Funk an FHEM angebunden.
FHEM 5.9
nanoCUL868: HM-LC-DIM1T-FM/nanoCUL433 (V 1.26.05 a-culfw Build: 156): 3x Hama Funksteckdosen/1x BroadLink für TV und TECVANCE Funksteckdosen/1x Echo Dot/2xMagic UFO-WiFi LED-Controller: LED RGBW Warm White LED Strip/Tradfri Gateway: 6x Tradfri LED/2xEQ3 Bluetooth Thermostat