Product Model: HHCCJCY01HHCC. Erhalte keine Daten und nach miflora.py folgender Fehler: Plugin configuration file missing miflora.cfg. ( Vorgängiger Lösungsansatz hat bei mir nicht funktioniert.)
Plugin: Xiaomi MiFlora Flower Monitor
Einklappen
X
-
Hallo zusammen, habe mir den Flower Care von HHCC gekauft. Ich denke ist dasselbe da ich nach Login mit meinem MI Account die Daten vom alten Sensor (von MI) mit dem neuen abglichen.
Product Model: HHCCJCY01HHCC. Erhalte keine Daten und nach miflora.py folgender Fehler: Plugin configuration file missing miflora.cfg. ( Vorgängiger Lösungsansatz hat bei mir nicht funktioniert.) -
Step 5 Output: SyntaxError: Non-UTF-8 code starting with '\x80' in file /usr/bin/python3 on line 2, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
Kommentar
-
Test 1:
Code:/usr/bin/python3 --version
Test 2:
Code:file -i /opt/loxberry/bin/plugins/xiaomi-miflora/miflora.py
Bei mir kommt als output beim Test 2 /opt/loxberry/bin/plugins/xiaomi-miflora/miflora.py: text/x-python; charset=us-ascii
Kommentar
-
Danke für Deine schnelle Antwort.
Inzwischen habe ich das Problem gefunden. Anscheinend funktioniert beim RPi3 B das Bluetooth nicht. Mit einem Externen Dongel (CSR 4.0) habe ich das Teil nun zum laufen gebracht. Ich gehe davon aus, dass das Problem daher rührte.Kommentar
-
Ich hatte genau das gleiche Problem, wie Hannibal014 und looxer. Das Install Skript für den Flower Sensor lief ohne Fehler durch, insbesondere gab es keine Fehler für bluepy und btlewrap. Nachdem ich nach längerer Suche eine Lösung gefunden habe, möchte ich die mit Euch teilen (wird sicherlich nicht die Probleme bei allen lösen):
Ausgabe des Log Viewer - /system/plugininstall/xiaomi-miflora.log
Code:... Successfully installed bluepy ... Successfully installed btlewrap
Code:root@loxberry:/opt/loxberry# /opt/loxberry/bin/plugins/xiaomi-miflora/miflora.py Traceback (most recent call last): File "/opt/loxberry/bin/plugins/xiaomi-miflora/miflora.py", line 18, in <module> from btlewrap import available_backends, BluepyBackend ModuleNotFoundError: No module named 'btlewrap'
Zur Info: mein Loxberry läuft auf Buster auf einem RP3 mit internem Bluetooth und schon über mehrere Jahre. Alle hier im Beitrag aufgeführten Hilfen und Infos unter https://github.com/IanHarvey/bluepy/issues/158 haben nicht geholfen.
Ich habe dann aber den Hinweis aus der Warnung nach der Installation der o.a. Module befolgt (steht auch im o.a. Log).
Code:WARNING: You are using pip version 19.3.1; however, version 23.3.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command.
Code:root@loxberry:~# pip3 install --no-cache-dir bluepy root@loxberry:~# pip3 install --no-cache-dir btlewrap
Code:root@loxberry:~# /opt/loxberry/bin/plugins/xiaomi-miflora/miflora.py Number of arguments: 1 arguments. Argument List: ['/opt/loxberry/bin/plugins/xiaomi-miflora/miflora.py'] using plugin log file xiaomi-miflora.log Plugin configuration file missing miflora.cfg
Code:loxberry@loxberry:~ $ /usr/bin/python3 /opt/loxberry/bin/plugins/xiaomi-miflora/miflora.py \ --logfile=/opt/loxberry/log/plugins/xiaomi-miflora/xiaomi-miflora.log \ --configfile=/opt/loxberry/config/plugins/xiaomi-miflora/miflora.cfg Number of arguments: 3 arguments. Argument List: ['/opt/loxberry/bin/plugins/xiaomi-miflora/miflora.py', '--logfile=/opt/loxberry/log/plugins/xiaomi-miflora/xiaomi-miflora.log', '--configfile=/opt/loxberry/config/plugins/xiaomi-miflora/miflora.cfg'] using plugin log file /opt/loxberry/log/plugins/xiaomi-miflora/xiaomi-miflora.log using system configuration file /opt/loxberry/config/system/general.json Miniserver ip address: 192.168.128.25 Scanning for Xiaomi MiFlora devices (takes up to 10 seconds) Found 1 devices: Polling device: 5C:85:7E:B0:F3:AD 5C857EB0F3AD.Name=Flower care 5C857EB0F3AD.PollTime=471561489 5C857EB0F3AD.PollTimeString=11.12.2023 21:18:09 Received result for handle 56: 64 39 33 2E 33 2E 36 5C857EB0F3AD.Firmware=3.3.6 Filling cache with new sensor data. Received result for handle 53: FD 00 03 A4 00 00 00 06 00 00 02 3C 00 FB 34 9B 5C857EB0F3AD.Temperature=25.3 Using cache (0:00:00.003840 < 0:10:00) 5C857EB0F3AD.Moisture=6 Using cache (0:00:00.005981 < 0:10:00) 5C857EB0F3AD.Light=164 Using cache (0:00:00.008260 < 0:10:00) 5C857EB0F3AD.Conductivity=0 5C857EB0F3AD.Battery=100 -------------------------------------------------
Michael M. Danke für das Plugin! Ein kleinen Fehler habe ich im /system_tmpfs/pluginsupdatecheck.log gesehen.
Code:INFO: xiaomi-miflora: Found plugin Xiaomi Flower Monitor. INFO: xiaomi-miflora: Current version is: v2.0.4 INFO: xiaomi-miflora: RELEASES enabled. INFO: xiaomi-miflora: Requesting release file from https://raw.githubusercontent.com/michaelmiklis/loxberry-plugin-xiaomi-miflora/master/release.cfg CRITICAL: xiaomi-miflora: Could not fetch RELEASE file. Error: curl: (22) The requested URL returned error: 404
P.S.: warum kann man eigentlich in "CODE" Blöcken nicht hervorheben?Zuletzt geändert von Jan W.; 11.12.2023, 21:55.Miniserver v14.5.12.7, 2x Ext., 2x Relay Ext., 2x Dimmer Ext., DMX Ext., 1-Wire Ext., Gira KNX Tastsensor 3 Komfort, Gira KNX Präsenzmelder, Fenster- und Türkontakte, Loxone Regen- und Windsensor, Gira Dual Q Rauchmelder vernetzt, 1x Relais-Modul
Loxberry: SmartMeter, MS Backup, CamConnect, Weather4Lox
Lüftung: Helios KWL EC 370W ET mit Modbus TCP - via Pico-C
Heizung: Stiebel Eltron WPF 5 cool (Sole-Wasser WP) mit ISG, FB-Heizung mit 18 Kreisen, Erdsonde - via modbus/TCP
Node-RED: IKEA TradfriKommentar
-
Hallo,
ich weiß nicht ob das Plugin noch lebt aber falls doch wäre ich für Hilfe dankbar.
Wenn ich den Job manuell (über die Konsole) starte mit:
Code:/usr/bin/python3 /opt/loxberry/bin/plugins/xiaomi-miflora/miflora.py \ --logfile=/opt/loxberry/log/plugins/xiaomi-miflora/xiaomi-miflora.log \ --configfile=/opt/loxberry/config/plugins/xiaomi-miflora/miflora.cfg
Wenn ich die Abfrage über das Plugin versuche zu starten kommt folgendes:
Can't open file Permission denied at /opt/loxberry/webfrontend/htmlauth/plugins/xiaomi-miflora/index.cgi line 78.
Depending of what you have done, report this error to the plugin developer or the LoxBerry-Core team.
Further information you may find in the error logs.
Number of arguments: 5 arguments. Argument List: ['/opt/loxberry/bin/plugins/xiaomi-miflora/miflora.py', '--configfile', '/opt/loxberry/config/plugins/xiaomi-miflora/miflora.cfg', '--logfile', '/opt/loxberry/log/plugins/xiaomi-miflora/xiaomi-miflora.log']
gibt es hier irgendwie Abhilfe?Loxone seit 2015Kommentar
-
Same problem here, genau wie von Halskrause beschrieben. Manueller Code in der Console bedeutet: ich habe die Daten im Plugin. Bei Abfrage per Plugin bekomme ich den von Halskrause beschriebenen Fehler:
Code:DEBUG: manual poll /opt/loxberry/bin/plugins/xiaomi-miflora/miflora.py [h=1]Software error:[/h] Can't open file Permission denied at /opt/loxberry/webfrontend/htmlauth/plugins/xiaomi-miflora/index.cgi line 78. Depending of what you have done, report this error to the plugin developer or the LoxBerry-Core team. Further information you may find in the error logs. Number of arguments: 5 arguments. Argument List: ['/opt/loxberry/bin/plugins/xiaomi-miflora/miflora.py', '--configfile', '/opt/loxberry/config/plugins/xiaomi-miflora/miflora.cfg', '--logfile', '/opt/loxberry/log/plugins/xiaomi-miflora/xiaomi-miflora.log']
Leider hat die Neuinstallation des Plugin & Restart LB nichts gebracht.Wäre cool, falls sich das jemand ansehen könnte und mir einen entscheidenden Tipp geben könne. Ich hab den LB erst vor wenigen Tagen von LB 2.x auf LoxBerry V3.0.1.2 aktualisiert. Rest läuft gut.
Danke und viele Grüße
beekayZuletzt geändert von beekaydottv; 19.09.2024, 23:19.Kommentar
Kommentar