fhempy: miio (Xiaomi WiFi Devices)

Begonnen von dominik, 30 Oktober 2020, 21:26:31

Vorheriges Thema - Nächstes Thema

dominik

Ich vermute der Saugroboter liefert einen Status zurück der in python-miio noch nicht implementiert ist. Kannst du das Gerät steuern? Was passiert wenn du ein Command an das Gerät schickst? Bzw. auch mal "consumption" oder so ausprobieren, da sollte auch was zurück kommen.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Madstar2409

Kommandos funktionieren nicht. In den Logs sehe ich auch nichts außer die genannten ERROR Meldungen. Ich habe mal ein bisschen im Netz gestöbert. Ich bin dabei auf dieses Skript gestoßen.

https://github.com/microfrost1/xiaomi_vacuum/commit/896a5f5b5bc649abd90dca67a607f0139cdaec9b

Könnte man das Skript adaptieren für dein Modul?

VG
Madstar2409

dominik

#152
Probier mal
defmod miio_vacuum_382944668 PythonModule miio dreamevacuum 192.168.178.189 6*************

also statt vacuum steht dreamevacuum, bitte davor das bestehende Device loeschen

Falls es noch nicht funktioniert, muessen wir leider noch auf das Update der miio Library warten. Der Support wurde erst vor 6 Tagen hinzugefuegt und ein neues Package gibt es noch nicht.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Madstar2409

Habe ich getestet. Bekomme "Unknown module PhytonModule".
In welchen Intervallen wird die library aktualisiert?

dominik

Sorry, ich meinte define statt defmod.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Madstar2409

Habe ich schon verstanden. Trotzdem gleiche Meldung. In welchen Pfad liegen die Python Skripte eigentlich? Könnte ich es manuell hinzufügen?

dominik

Aber Moment, wenn du unknown Module für PythonModule bekommst, dann ist fhempy nicht installiert!? Mit Vacuum geht's?
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Madstar2409

Du hast recht. Ein Eingabefehler von mir. Jetzt konnte ich das Gerät anlegen aber es kommen keine Readings rein.

dominik

Ok, dann müssen wir auf ein Update von python-miio (https://github.com/rytilahti/python-miio) warten. Wenn da ein neues Release kommt, kann ich auch fhempy miio aktualisieren.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Madstar2409

Zitat von: dominik am 04 März 2021, 20:05:03
Ok, dann müssen wir auf ein Update von python-miio (https://github.com/rytilahti/python-miio) warten. Wenn da ein neues Release kommt, kann ich auch fhempy miio aktualisieren.

Python Miio 0.5.5 ist seit 2 Tagen raus. Kannst du bitte fhempy updaten? ;-)


Danke im Voraus
MFG
Mad

Guenni1404

Hallo Dominik,

ich habe mich mal durch die ganzen Seiten durchgelesen und wollte es jetzt mal probieren.
Ich habe alles eingerichtet.
Die Verbingdung steht.

Internals:
   BindingType Python
   CFGFN     
   DEF        Python
   DeviceName ws:127.0.0.1:15733
   FD         61
   FUUID      606c5ed6-f33f-5815-ac3e-d8e0c540298f3a57
   IP         127.0.0.1
   NAME       local_pybinding
   NR         66676
   NTFY_ORDER 50-local_pybinding
   PARTIAL   
   PORT       15733
   STATE      opened
   TYPE       BindingsIo
   WEBSOCKET  1
   localBinding 1
   nextOpenDelay 10
   READINGS:
     2021-04-06 15:47:47   info            ready
     2021-04-06 15:47:47   state           opened
     2021-04-06 15:47:47   version         0.1.57
   args:
     local_pybinding
     BindingsIo
     Python
   argsh:
Attributes:
   room       hidden


Gerät ist eingerichtet:
Internals:
   CFGFN     
   DEF        miio airpurifier 192.168.178.58 xxxxxx
   FUUID      606c5f67-f33f-5815-9ffc-ff7fcdfaf3a3bf77
   IODev      local_pybinding
   NAME       AirPurifier3CTest
   NR         66749
   PYTHONTYPE miio
   STATE      active
   TYPE       PythonModule
   READINGS:
     2021-04-06 15:18:39   accesspoint_bssid xxxxx
     2021-04-06 15:18:39   accesspoint_primary 11
     2021-04-06 15:18:39   accesspoint_rssi -42
     2021-04-06 15:18:39   accesspoint_ssid xxxxx
     2021-04-06 15:33:45   fan_level       1
     2021-04-06 15:18:39   firmware_version 2.0.8
     2021-04-06 15:18:39   hardware_version esp32
     2021-04-06 15:33:45   led_brightness  LedBrightness.Dim
     2021-04-06 15:18:39   mac_address     xxxx
     2021-04-06 15:18:39   model           zhimi.airpurifier.mb4
     2021-04-06 15:18:39   network_interface_gw 192.168.178.1
     2021-04-06 15:18:39   network_interface_localIp 192.168.178.58
     2021-04-06 15:18:39   network_interface_mask 255.255.255.0
     2021-04-06 15:47:48   presence        offline
     2021-04-06 15:45:50   state           active
   args:
     AirPurifier3CTest
     PythonModule
     miio
     airpurifier
     192.168.178.58
     xxxxx
   argsh:
Attributes:
   IODev      local_pybinding


Es wird erkannt und auch einige Readings korrekt ausgelesen.  Wird aber immer als offline angezeigt.
Im log erhalte ich folgendes:
-- Logs begin at Sat 2021-03-13 15:53:44 CET. --
Apr 06 15:44:28 fhemserver systemd[1]: fhempy.service: Scheduled restart job, restart counter is at 105.
Apr 06 15:44:28 fhemserver systemd[1]: Stopped FHEM PythonBinding.
Apr 06 15:44:28 fhemserver systemd[1]: Started FHEM PythonBinding.
Apr 06 15:44:30 fhemserver fhempy[27792]: 2021-04-06 15:44:30,181 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy...
Apr 06 15:44:30 fhemserver fhempy[27792]: 2021-04-06 15:44:30,217 - INFO     - fhempy.lib.fhem_pythonbinding: Advertise fhempy on local netw                                                         ork
Apr 06 15:44:31 fhemserver fhempy[27792]: 2021-04-06 15:44:31,046 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
Apr 06 15:44:40 fhemserver fhempy[27792]: 2021-04-06 15:44:40,880 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.                                                         0.0.1
Apr 06 15:44:40 fhemserver fhempy[27792]: 2021-04-06 15:44:40,916 - WARNING  - asyncio: Executing <Handle <TaskWakeupMethWrapper object at 0                                                         x75ba0f10>(<Future finis...events.py:396>) created at /usr/lib/python3.7/asyncio/streams.py:408> took 0.300 seconds
Apr 06 15:44:40 fhemserver fhempy[27792]: 2021-04-06 15:44:40,925 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 192.                                                         168.178.45
Apr 06 15:44:41 fhemserver fhempy[27792]: 2021-04-06 15:44:41,134 - INFO     - fhempy.lib.pkg_installer: Attempting install of python-miio>=                                                         0.5.4
Apr 06 15:47:27 fhemserver fhempy[27792]: 2021-04-06 15:47:27,114 - INFO     - fhempy.lib.pkg_installer: Attempting install of fhempy
Apr 06 15:47:36 fhemserver fhempy[27792]: 2021-04-06 15:47:36,734 - ERROR    - asyncio: Task exception was never retrieved
Apr 06 15:47:36 fhemserver fhempy[27792]: future: <Task finished coro=<PyBinding.onMessage() done, defined at /home/pi/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py           :126> exception=SystemExit(1) created at /usr/lib/python3.7/asyncio/tasks.py:325>
Apr 06 15:47:36 fhemserver fhempy[27792]: source_traceback: Object created at (most recent call last):
Apr 06 15:47:36 fhemserver fhempy[27792]:   File "/home/pi/.local/bin/fhempy", line 121, in <module>
Apr 06 15:47:36 fhemserver fhempy[27792]:     fpb.run()
Apr 06 15:47:36 fhemserver fhempy[27792]:   File "/home/pi/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 471, in run
Apr 06 15:47:36 fhemserver fhempy[27792]:     asyncio.get_event_loop().run_forever()
Apr 06 15:47:36 fhemserver fhempy[27792]:   File "/usr/lib/python3.7/asyncio/base_events.py", line 539, in run_forever
Apr 06 15:47:36 fhemserver fhempy[27792]:     self._run_once()
Apr 06 15:47:36 fhemserver fhempy[27792]:   File "/usr/lib/python3.7/asyncio/base_events.py", line 1767, in _run_once
Apr 06 15:47:36 fhemserver fhempy[27792]:     handle._run()
Apr 06 15:47:36 fhemserver fhempy[27792]:   File "/usr/lib/python3.7/asyncio/events.py", line 88, in _run
Apr 06 15:47:36 fhemserver fhempy[27792]:     self._context.run(self._callback, *self._args)
Apr 06 15:47:36 fhemserver fhempy[27792]:   File "/home/pi/.local/lib/python3.7/site-packages/websockets/server.py", line 191, in handler
Apr 06 15:47:36 fhemserver fhempy[27792]:     await self.ws_handler(self, path)
Apr 06 15:47:36 fhemserver fhempy[27792]:   File "/home/pi/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 67, in pybinding
Apr 06 15:47:36 fhemserver fhempy[27792]:     asyncio.create_task(pb.onMessage(message))
Apr 06 15:47:36 fhemserver fhempy[27792]:   File "/usr/lib/python3.7/asyncio/tasks.py", line 325, in create_task
Apr 06 15:47:36 fhemserver fhempy[27792]:     return loop.create_task(coro)
Apr 06 15:47:36 fhemserver fhempy[27792]: Traceback (most recent call last):
Apr 06 15:47:36 fhemserver fhempy[27792]:   File "/home/pi/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 128, in onMessage
Apr 06 15:47:36 fhemserver fhempy[27792]:     await self._onMessage(payload)
Apr 06 15:47:36 fhemserver fhempy[27792]:   File "/home/pi/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 391, in _onMessage
Apr 06 15:47:36 fhemserver fhempy[27792]:     raise se
Apr 06 15:47:36 fhemserver fhempy[27792]:   File "/home/pi/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 170, in _onMessage
Apr 06 15:47:36 fhemserver fhempy[27792]:     sys.exit(1)
Apr 06 15:47:36 fhemserver fhempy[27792]: SystemExit: 1
Apr 06 15:47:36 fhemserver fhempy[27792]: During handling of the above exception, another exception occurred:
Apr 06 15:47:36 fhemserver fhempy[27792]: Traceback (most recent call last):
Apr 06 15:47:36 fhemserver fhempy[27792]:   File "/usr/lib/python3.7/asyncio/base_events.py", line 539, in run_forever
Apr 06 15:47:36 fhemserver fhempy[27792]:     self._run_once()
Apr 06 15:47:36 fhemserver fhempy[27792]:   File "/usr/lib/python3.7/asyncio/base_events.py", line 1767, in _run_once
Apr 06 15:47:36 fhemserver fhempy[27792]:     handle._run()
Apr 06 15:47:36 fhemserver fhempy[27792]:   File "/usr/lib/python3.7/asyncio/events.py", line 88, in _run
Apr 06 15:47:36 fhemserver fhempy[27792]:     self._context.run(self._callback, *self._args)
Apr 06 15:47:36 fhemserver fhempy[27792]:   File "/home/pi/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 130, in onMessage
Apr 06 15:47:36 fhemserver fhempy[27792]:     sys.exit(1)
Apr 06 15:47:36 fhemserver fhempy[27792]: SystemExit: 1
Apr 06 15:47:37 fhemserver systemd[1]: fhempy.service: Main process exited, code=exited, status=1/FAILURE
Apr 06 15:47:37 fhemserver systemd[1]: fhempy.service: Failed with result 'exit-code'.
Apr 06 15:47:37 fhemserver systemd[1]: fhempy.service: Service RestartSec=100ms expired, scheduling restart.
Apr 06 15:47:37 fhemserver systemd[1]: fhempy.service: Scheduled restart job, restart counter is at 106.
Apr 06 15:47:37 fhemserver systemd[1]: Stopped FHEM PythonBinding.
Apr 06 15:47:37 fhemserver systemd[1]: Started FHEM PythonBinding.
Apr 06 15:47:38 fhemserver fhempy[29683]: 2021-04-06 15:47:38,464 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy...
Apr 06 15:47:38 fhemserver fhempy[29683]: 2021-04-06 15:47:38,503 - INFO     - fhempy.lib.fhem_pythonbinding: Advertise fhempy on local network
Apr 06 15:47:39 fhemserver fhempy[29683]: 2021-04-06 15:47:39,346 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
Apr 06 15:47:47 fhemserver fhempy[29683]: 2021-04-06 15:47:47,227 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 192.168.178.45
Apr 06 15:47:47 fhemserver fhempy[29683]: 2021-04-06 15:47:47,247 - WARNING  - asyncio: Executing <Handle <TaskWakeupMethWrapper object at 0x75bd08f0>(<Future finis...events.py:396>) cre           ated at /usr/lib/python3.7/asyncio/streams.py:408> took 0.281 seconds
Apr 06 15:47:47 fhemserver fhempy[29683]: 2021-04-06 15:47:47,260 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
Apr 06 15:47:48 fhemserver fhempy[29683]: 2021-04-06 15:47:48,836 - ERROR    - AirPurifier3CTest: Failed to send_command: status
Apr 06 15:47:51 fhemserver fhempy[29683]: 2021-04-06 15:47:51,623 - ERROR    - AirPurifier3CTest: Failed to send_command: info


Python läuft als Python 3.7.3

Hast du mir einen Tipp?

Guenni1404

Hallo Dominik,

ich habe es nochmal weiter getestet. Habe das unisntall über PIP durchgeführt, da ich mir nicht sicher war.

Bekomme jetzt folgende Meldungen
2021-04-07 09:33:42,364 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
Traceback (most recent call last):
  File "FHEM/bindings/python/bin/fhempy", line 121, in <module>
    fpb.run()
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 468, in run
    pybinding, "0.0.0.0", port, ping_timeout=None, ping_interval=None
  File "/usr/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete
    return future.result()
  File "/usr/lib/python3.7/asyncio/tasks.py", line 603, in _wrap_awaitable
    return (yield from awaitable.__await__())
  File "/opt/fhem/.local/lib/python3.7/site-packages/websockets/server.py", line 965, in __await_impl__
    server = await self._create_server()
  File "/usr/lib/python3.7/asyncio/base_events.py", line 1378, in create_server
    % (sa, err.strerror.lower())) from None
OSError: [Errno 98] error while attempting to bind on address ('0.0.0.0', 15733): address already in use


und

Apr 07 09:26:12 fhemserver systemd[1]: Started FHEM PythonBinding.
Apr 07 09:26:13 fhemserver fhempy[29451]: 2021-04-07 09:26:13,984 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy...
Apr 07 09:26:14 fhemserver fhempy[29451]: 2021-04-07 09:26:14,020 - INFO     - fhempy.lib.fhem_pythonbinding: Advertise fhempy on local network
Apr 07 09:26:14 fhemserver fhempy[29451]: 2021-04-07 09:26:14,850 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
Apr 07 09:27:25 fhemserver fhempy[29451]: 2021-04-07 09:27:25,436 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
Apr 07 09:27:25 fhemserver fhempy[29451]: 2021-04-07 09:27:25,465 - WARNING  - asyncio: Executing <Handle <TaskWakeupMethWrapper object at 0x75b79910>(<Future finis...events.py:396>) created at /usr/lib/python3.7/asyncio/streams.py:408> took 0.289 seconds
Apr 07 09:32:01 fhemserver fhempy[29451]: 2021-04-07 09:32:01,195 - ERROR    - fhempy.lib.fhem_pythonbinding: Connection closed error
Apr 07 09:32:01 fhemserver fhempy[29451]: Traceback (most recent call last):
Apr 07 09:32:01 fhemserver fhempy[29451]:   File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 827, in transfer_data
Apr 07 09:32:01 fhemserver fhempy[29451]:     message = await self.read_message()
Apr 07 09:32:01 fhemserver fhempy[29451]:   File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 895, in read_message
Apr 07 09:32:01 fhemserver fhempy[29451]:     frame = await self.read_data_frame(max_size=self.max_size)
Apr 07 09:32:01 fhemserver fhempy[29451]:   File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 971, in read_data_frame
Apr 07 09:32:01 fhemserver fhempy[29451]:     frame = await self.read_frame(max_size)
Apr 07 09:32:01 fhemserver fhempy[29451]:   File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 1051, in read_frame
Apr 07 09:32:01 fhemserver fhempy[29451]:     extensions=self.extensions,
Apr 07 09:32:01 fhemserver fhempy[29451]:   File "/home/pi/.local/lib/python3.7/site-packages/websockets/framing.py", line 105, in read
Apr 07 09:32:01 fhemserver fhempy[29451]:     data = await reader(2)
Apr 07 09:32:01 fhemserver fhempy[29451]:   File "/usr/lib/python3.7/asyncio/streams.py", line 677, in readexactly
Apr 07 09:32:01 fhemserver fhempy[29451]:     raise IncompleteReadError(incomplete, n)
Apr 07 09:32:01 fhemserver fhempy[29451]: asyncio.streams.IncompleteReadError: 0 bytes read on a total of 2 expected bytes
Apr 07 09:32:01 fhemserver fhempy[29451]: The above exception was the direct cause of the following exception:
Apr 07 09:32:01 fhemserver fhempy[29451]: Traceback (most recent call last):
Apr 07 09:32:01 fhemserver fhempy[29451]:   File "/home/pi/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 66, in pybinding
Apr 07 09:32:01 fhemserver fhempy[29451]:     async for message in websocket:
Apr 07 09:32:01 fhemserver fhempy[29451]:   File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 439, in __aiter__
Apr 07 09:32:01 fhemserver fhempy[29451]:     yield await self.recv()
Apr 07 09:32:01 fhemserver fhempy[29451]:   File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 509, in recv
Apr 07 09:32:01 fhemserver fhempy[29451]:     await self.ensure_open()
Apr 07 09:32:01 fhemserver fhempy[29451]:   File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 803, in ensure_open
Apr 07 09:32:01 fhemserver fhempy[29451]:     raise self.connection_closed_exc()
Apr 07 09:32:01 fhemserver fhempy[29451]: websockets.exceptions.ConnectionClosedError: code = 1006 (connection closed abnormally [internal]), no reason
Apr 07 09:32:01 fhemserver fhempy[29451]: 2021-04-07 09:32:01,199 - INFO     - fhempy.lib.fhem_pythonbinding: Restart binding
Apr 07 09:32:01 fhemserver systemd[1]: fhempy.service: Main process exited, code=exited, status=1/FAILURE
Apr 07 09:32:01 fhemserver systemd[1]: fhempy.service: Failed with result 'exit-code'.
Apr 07 09:32:01 fhemserver systemd[1]: fhempy.service: Service RestartSec=100ms expired, scheduling restart.
Apr 07 09:32:01 fhemserver systemd[1]: fhempy.service: Scheduled restart job, restart counter is at 110.
Apr 07 09:32:01 fhemserver systemd[1]: Stopped FHEM PythonBinding.
Apr 07 09:32:01 fhemserver systemd[1]: Started FHEM PythonBinding.
Apr 07 09:32:02 fhemserver fhempy[464]: 2021-04-07 09:32:02,884 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy...
Apr 07 09:32:02 fhemserver fhempy[464]: 2021-04-07 09:32:02,918 - INFO     - fhempy.lib.fhem_pythonbinding: Advertise fhempy on local network
Apr 07 09:32:03 fhemserver fhempy[464]: 2021-04-07 09:32:03,743 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
Apr 07 09:33:42 fhemserver fhempy[464]: 2021-04-07 09:33:42,884 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
Apr 07 09:33:42 fhemserver fhempy[464]: 2021-04-07 09:33:42,904 - WARNING  - asyncio: Executing <Handle <TaskWakeupMethWrapper object at 0x75b8da70>(<Future finis...events.py:396>) created at /usr/lib/python3.7/asyncio/streams.py:408> took 0.281 seconds


Bräuchte Hilfe!

Guenni1404

Hallo Dominik,

habe es jetzt hinbekommen.
Leider erhalte ich keine Daten bzw es funktioniert kein Befehl.
HIer das Log:
2021-04-07 20:14:23 PythonModule AirPurifier3CTest on
2021.04.07 20:14:26 3 : MQTT2_DEVICE set MQTT2_DVES_01DE2C on
2021.04.07 20:14:26 5 : BindingsIo: DevIo_SimpleRead
2021.04.07 20:14:26 5 : BindingsIo: DevIo_SimpleRead NoTimeout
2021.04.07 20:14:26 4 : BindingsIo: >>> WS: {"awaitId": 22523105, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBeginUpdate($defs{'AirPurifier3CTest'});;"}
2021.04.07 20:14:26 5 : BindingsIo: QUEUE: start handling - 1
2021.04.07 20:14:26 5 : processMessage: {"awaitId": 22523105, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBeginUpdate($defs{'AirPurifier3CTest'});;"}
2021.04.07 20:14:26 4 : BindingsIo: <<< WS: {"error":0,"awaitId":22523105,"result":"2021-04-07 20:14:26"}
2021.04.07 20:14:26 5 : SW: 7b226572726f72223a302c2261776169744964223a32323532333130352c22726573756c74223a22323032312d30342d30372032303a31343a3236227d
2021.04.07 20:14:26 5 : BindingsIo: QUEUE: finished handling - 0
2021.04.07 20:14:26 5 : BindingsIo: DevIo_SimpleRead
2021.04.07 20:14:26 5 : BindingsIo: DevIo_SimpleRead NoTimeout
2021.04.07 20:14:26 4 : BindingsIo: >>> WS: {"awaitId": 41328151, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'average_aqi','');;"}
2021.04.07 20:14:26 5 : BindingsIo: QUEUE: start handling - 1
2021.04.07 20:14:26 5 : processMessage: {"awaitId": 41328151, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'average_aqi','');;"}
2021.04.07 20:14:26 4 : BindingsIo: <<< WS: {"result":null,"awaitId":41328151,"error":0}
2021.04.07 20:14:26 5 : SW: 7b22726573756c74223a6e756c6c2c2261776169744964223a34313332383135312c226572726f72223a307d
2021.04.07 20:14:26 5 : BindingsIo: QUEUE: finished handling - 0
2021.04.07 20:14:26 5 : BindingsIo: DevIo_SimpleRead
2021.04.07 20:14:26 5 : BindingsIo: DevIo_SimpleRead NoTimeout
2021.04.07 20:14:26 4 : BindingsIo: >>> WS: {"awaitId": 92597957, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'humidity','');;"}
2021.04.07 20:14:26 5 : BindingsIo: QUEUE: start handling - 1
2021.04.07 20:14:26 5 : processMessage: {"awaitId": 92597957, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'humidity','');;"}
2021.04.07 20:14:26 4 : BindingsIo: <<< WS: {"awaitId":92597957,"result":null,"error":0}
2021.04.07 20:14:26 5 : SW: 7b2261776169744964223a39323539373935372c22726573756c74223a6e756c6c2c226572726f72223a307d
2021.04.07 20:14:26 5 : BindingsIo: QUEUE: finished handling - 0
2021.04.07 20:14:26 5 : BindingsIo: DevIo_SimpleRead
2021.04.07 20:14:26 5 : BindingsIo: DevIo_SimpleRead NoTimeout
2021.04.07 20:14:26 4 : BindingsIo: >>> WS: {"awaitId": 67114349, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'temperature','');;"}
2021.04.07 20:14:26 5 : BindingsIo: QUEUE: start handling - 1
2021.04.07 20:14:26 5 : processMessage: {"awaitId": 67114349, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'temperature','');;"}
2021.04.07 20:14:26 4 : BindingsIo: <<< WS: {"error":0,"awaitId":67114349,"result":null}
2021.04.07 20:14:26 5 : SW: 7b226572726f72223a302c2261776169744964223a36373131343334392c22726573756c74223a6e756c6c7d
2021.04.07 20:14:26 5 : BindingsIo: QUEUE: finished handling - 0
2021.04.07 20:14:26 5 : BindingsIo: DevIo_SimpleRead
2021.04.07 20:14:26 5 : BindingsIo: DevIo_SimpleRead NoTimeout
2021.04.07 20:14:26 4 : BindingsIo: >>> WS: {"awaitId": 17606306, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'fan_level','1');;"}
2021.04.07 20:14:26 5 : BindingsIo: QUEUE: start handling - 1
2021.04.07 20:14:26 5 : processMessage: {"awaitId": 17606306, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'fan_level','1');;"}
2021.04.07 20:14:26 4 : BindingsIo: <<< WS: {"error":0,"awaitId":17606306,"result":null}
2021.04.07 20:14:26 5 : SW: 7b226572726f72223a302c2261776169744964223a31373630363330362c22726573756c74223a6e756c6c7d
2021.04.07 20:14:26 5 : BindingsIo: QUEUE: finished handling - 0
2021.04.07 20:14:26 5 : BindingsIo: DevIo_SimpleRead
2021.04.07 20:14:26 5 : BindingsIo: DevIo_SimpleRead NoTimeout
2021.04.07 20:14:26 4 : BindingsIo: >>> WS: {"awaitId": 47682985, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'led','');;"}
2021.04.07 20:14:26 5 : BindingsIo: QUEUE: start handling - 1
2021.04.07 20:14:26 5 : processMessage: {"awaitId": 47682985, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'led','');;"}
2021.04.07 20:14:26 4 : BindingsIo: <<< WS: {"awaitId":47682985,"result":null,"error":0}
2021.04.07 20:14:26 5 : SW: 7b2261776169744964223a34373638323938352c22726573756c74223a6e756c6c2c226572726f72223a307d
2021.04.07 20:14:26 5 : BindingsIo: QUEUE: finished handling - 0
2021.04.07 20:14:26 5 : BindingsIo: DevIo_SimpleRead
2021.04.07 20:14:26 5 : BindingsIo: DevIo_SimpleRead NoTimeout
2021.04.07 20:14:26 4 : BindingsIo: >>> WS: {"awaitId": 22625057, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'led_brightness','LedBrightness.Dim');;"}
2021.04.07 20:14:26 5 : BindingsIo: QUEUE: start handling - 1
2021.04.07 20:14:26 5 : processMessage: {"awaitId": 22625057, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'led_brightness','LedBrightness.Dim');;"}
2021.04.07 20:14:26 4 : BindingsIo: <<< WS: {"result":null,"awaitId":22625057,"error":0}
2021.04.07 20:14:26 5 : SW: 7b22726573756c74223a6e756c6c2c2261776169744964223a32323632353035372c226572726f72223a307d
2021.04.07 20:14:26 5 : BindingsIo: QUEUE: finished handling - 0
2021.04.07 20:14:26 5 : BindingsIo: DevIo_SimpleRead
2021.04.07 20:14:26 5 : BindingsIo: DevIo_SimpleRead NoTimeout
2021.04.07 20:14:26 4 : BindingsIo: >>> WS: {"awaitId": 99876465, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'buzzer_volume','');;"}
2021.04.07 20:14:26 5 : BindingsIo: QUEUE: start handling - 1
2021.04.07 20:14:26 5 : processMessage: {"awaitId": 99876465, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'buzzer_volume','');;"}
2021.04.07 20:14:26 4 : BindingsIo: <<< WS: {"error":0,"awaitId":99876465,"result":null}
2021.04.07 20:14:26 5 : SW: 7b226572726f72223a302c2261776169744964223a39393837363436352c22726573756c74223a6e756c6c7d
2021.04.07 20:14:26 5 : BindingsIo: QUEUE: finished handling - 0
2021.04.07 20:14:26 5 : BindingsIo: DevIo_SimpleRead
2021.04.07 20:14:26 5 : BindingsIo: DevIo_SimpleRead NoTimeout
2021.04.07 20:14:26 4 : BindingsIo: >>> WS: {"awaitId": 58849204, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'favorite_level','');;"}
2021.04.07 20:14:26 5 : BindingsIo: QUEUE: start handling - 1
2021.04.07 20:14:26 5 : processMessage: {"awaitId": 58849204, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'favorite_level','');;"}
2021.04.07 20:14:26 4 : BindingsIo: <<< WS: {"awaitId":58849204,"result":null,"error":0}
2021.04.07 20:14:26 5 : SW: 7b2261776169744964223a35383834393230342c22726573756c74223a6e756c6c2c226572726f72223a307d
2021.04.07 20:14:26 5 : BindingsIo: QUEUE: finished handling - 0
2021.04.07 20:14:26 5 : BindingsIo: DevIo_SimpleRead
2021.04.07 20:14:26 5 : BindingsIo: DevIo_SimpleRead NoTimeout
2021.04.07 20:14:26 4 : BindingsIo: >>> WS: {"awaitId": 68364599, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'use_time','');;"}
2021.04.07 20:14:26 5 : BindingsIo: QUEUE: start handling - 1
2021.04.07 20:14:26 5 : processMessage: {"awaitId": 68364599, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'use_time','');;"}
2021.04.07 20:14:26 4 : BindingsIo: <<< WS: {"result":null,"awaitId":68364599,"error":0}
2021.04.07 20:14:26 5 : SW: 7b22726573756c74223a6e756c6c2c2261776169744964223a36383336343539392c226572726f72223a307d
2021.04.07 20:14:26 5 : BindingsIo: QUEUE: finished handling - 0
2021.04.07 20:14:26 5 : BindingsIo: DevIo_SimpleRead
2021.04.07 20:14:26 5 : BindingsIo: DevIo_SimpleRead NoTimeout
2021.04.07 20:14:26 4 : BindingsIo: >>> WS: {"awaitId": 85321391, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'purify_volume','');;"}
2021.04.07 20:14:26 5 : BindingsIo: QUEUE: start handling - 1
2021.04.07 20:14:26 5 : processMessage: {"awaitId": 85321391, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'purify_volume','');;"}
2021.04.07 20:14:26 4 : BindingsIo: <<< WS: {"result":null,"awaitId":85321391,"error":0}
2021.04.07 20:14:26 5 : SW: 7b22726573756c74223a6e756c6c2c2261776169744964223a38353332313339312c226572726f72223a307d
2021.04.07 20:14:26 5 : BindingsIo: QUEUE: finished handling - 0
2021.04.07 20:14:26 5 : BindingsIo: DevIo_SimpleRead
2021.04.07 20:14:26 5 : BindingsIo: DevIo_SimpleRead NoTimeout
2021.04.07 20:14:26 4 : BindingsIo: >>> WS: {"awaitId": 73922346, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'filter_rfid_product_id','');;"}
2021.04.07 20:14:26 5 : BindingsIo: QUEUE: start handling - 1
2021.04.07 20:14:26 5 : processMessage: {"awaitId": 73922346, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'filter_rfid_product_id','');;"}
2021.04.07 20:14:26 4 : BindingsIo: <<< WS: {"result":null,"awaitId":73922346,"error":0}
2021.04.07 20:14:26 5 : SW: 7b22726573756c74223a6e756c6c2c2261776169744964223a37333932323334362c226572726f72223a307d
2021.04.07 20:14:26 5 : BindingsIo: QUEUE: finished handling - 0
2021.04.07 20:14:26 5 : BindingsIo: DevIo_SimpleRead
2021.04.07 20:14:26 5 : BindingsIo: DevIo_SimpleRead NoTimeout
2021.04.07 20:14:26 4 : BindingsIo: >>> WS: {"awaitId": 86108279, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'filter_rfid_tag','');;"}
2021.04.07 20:14:26 5 : BindingsIo: QUEUE: start handling - 1
2021.04.07 20:14:26 5 : processMessage: {"awaitId": 86108279, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'filter_rfid_tag','');;"}
2021.04.07 20:14:26 4 : BindingsIo: <<< WS: {"error":0,"result":null,"awaitId":86108279}
2021.04.07 20:14:26 5 : SW: 7b226572726f72223a302c22726573756c74223a6e756c6c2c2261776169744964223a38363130383237397d
2021.04.07 20:14:26 5 : BindingsIo: QUEUE: finished handling - 0
2021.04.07 20:14:27 5 : BindingsIo: DevIo_SimpleRead
2021.04.07 20:14:27 5 : BindingsIo: DevIo_SimpleRead NoTimeout
2021.04.07 20:14:27 4 : BindingsIo: >>> WS: {"awaitId": 58718439, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'filter_type','');;"}
2021.04.07 20:14:27 5 : BindingsIo: QUEUE: start handling - 1
2021.04.07 20:14:27 5 : processMessage: {"awaitId": 58718439, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'filter_type','');;"}
2021.04.07 20:14:27 4 : BindingsIo: <<< WS: {"awaitId":58718439,"result":null,"error":0}
2021.04.07 20:14:27 5 : SW: 7b2261776169744964223a35383731383433392c22726573756c74223a6e756c6c2c226572726f72223a307d
2021.04.07 20:14:27 5 : BindingsIo: QUEUE: finished handling - 0
2021.04.07 20:14:27 5 : BindingsIo: DevIo_SimpleRead
2021.04.07 20:14:27 5 : BindingsIo: DevIo_SimpleRead NoTimeout
2021.04.07 20:14:27 4 : BindingsIo: >>> WS: {"awaitId": 77110550, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsEndUpdate($defs{'AirPurifier3CTest'},1);;"}
2021.04.07 20:14:27 5 : BindingsIo: QUEUE: start handling - 1
2021.04.07 20:14:27 5 : processMessage: {"awaitId": 77110550, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsEndUpdate($defs{'AirPurifier3CTest'},1);;"}
2021.04.07 20:14:27 4 : BindingsIo: <<< WS: {"error":0,"awaitId":77110550,"result":null}
2021.04.07 20:14:27 5 : SW: 7b226572726f72223a302c2261776169744964223a37373131303535302c22726573756c74223a6e756c6c7d
2021.04.07 20:14:27 5 : BindingsIo: QUEUE: finished handling - 0
2021.04.07 20:14:30 5 : BindingsIo: DevIo_SimpleRead
2021.04.07 20:14:30 5 : BindingsIo: DevIo_SimpleRead NoTimeout
2021.04.07 20:14:30 4 : BindingsIo: >>> WS: {"awaitId": 11822667, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBeginUpdate($defs{'AirPurifier3CTest'});;"}
2021.04.07 20:14:30 5 : BindingsIo: QUEUE: start handling - 1
2021.04.07 20:14:30 5 : processMessage: {"awaitId": 11822667, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBeginUpdate($defs{'AirPurifier3CTest'});;"}
2021.04.07 20:14:30 4 : BindingsIo: <<< WS: {"error":0,"awaitId":11822667,"result":"2021-04-07 20:14:30"}
2021.04.07 20:14:30 5 : SW: 7b226572726f72223a302c2261776169744964223a31313832323636372c22726573756c74223a22323032312d30342d30372032303a31343a3330227d
2021.04.07 20:14:30 5 : BindingsIo: QUEUE: finished handling - 0
2021.04.07 20:14:30 5 : BindingsIo: DevIo_SimpleRead
2021.04.07 20:14:30 5 : BindingsIo: DevIo_SimpleRead NoTimeout
2021.04.07 20:14:30 4 : BindingsIo: >>> WS: {"awaitId": 66388217, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'average_aqi','');;"}
2021.04.07 20:14:30 5 : BindingsIo: QUEUE: start handling - 1
2021.04.07 20:14:30 5 : processMessage: {"awaitId": 66388217, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'average_aqi','');;"}
2021.04.07 20:14:30 4 : BindingsIo: <<< WS: {"error":0,"result":null,"awaitId":66388217}
2021.04.07 20:14:30 5 : SW: 7b226572726f72223a302c22726573756c74223a6e756c6c2c2261776169744964223a36363338383231377d
2021.04.07 20:14:30 5 : BindingsIo: QUEUE: finished handling - 0
2021.04.07 20:14:30 5 : BindingsIo: DevIo_SimpleRead
2021.04.07 20:14:30 5 : BindingsIo: DevIo_SimpleRead NoTimeout
2021.04.07 20:14:30 4 : BindingsIo: >>> WS: {"awaitId": 82135233, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'humidity','');;"}
2021.04.07 20:14:30 5 : BindingsIo: QUEUE: start handling - 1
2021.04.07 20:14:30 5 : processMessage: {"awaitId": 82135233, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'humidity','');;"}
2021.04.07 20:14:30 4 : BindingsIo: <<< WS: {"error":0,"awaitId":82135233,"result":null}
2021.04.07 20:14:30 5 : SW: 7b226572726f72223a302c2261776169744964223a38323133353233332c22726573756c74223a6e756c6c7d
2021.04.07 20:14:30 5 : BindingsIo: QUEUE: finished handling - 0
2021.04.07 20:14:30 5 : BindingsIo: DevIo_SimpleRead
2021.04.07 20:14:30 5 : BindingsIo: DevIo_SimpleRead NoTimeout
2021.04.07 20:14:30 4 : BindingsIo: >>> WS: {"awaitId": 27564392, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'temperature','');;"}
2021.04.07 20:14:30 5 : BindingsIo: QUEUE: start handling - 1
2021.04.07 20:14:30 5 : processMessage: {"awaitId": 27564392, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'temperature','');;"}
2021.04.07 20:14:30 4 : BindingsIo: <<< WS: {"error":0,"awaitId":27564392,"result":null}
2021.04.07 20:14:30 5 : SW: 7b226572726f72223a302c2261776169744964223a32373536343339322c22726573756c74223a6e756c6c7d
2021.04.07 20:14:30 5 : BindingsIo: QUEUE: finished handling - 0
2021.04.07 20:14:30 5 : BindingsIo: DevIo_SimpleRead
2021.04.07 20:14:30 5 : BindingsIo: DevIo_SimpleRead NoTimeout
2021.04.07 20:14:30 4 : BindingsIo: >>> WS: {"awaitId": 88665215, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'fan_level','1');;"}
2021.04.07 20:14:30 5 : BindingsIo: QUEUE: start handling - 1
2021.04.07 20:14:30 5 : processMessage: {"awaitId": 88665215, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'fan_level','1');;"}
2021.04.07 20:14:30 4 : BindingsIo: <<< WS: {"error":0,"awaitId":88665215,"result":null}
2021.04.07 20:14:30 5 : SW: 7b226572726f72223a302c2261776169744964223a38383636353231352c22726573756c74223a6e756c6c7d
2021.04.07 20:14:30 5 : BindingsIo: QUEUE: finished handling - 0
2021.04.07 20:14:30 5 : BindingsIo: DevIo_SimpleRead
2021.04.07 20:14:30 5 : BindingsIo: DevIo_SimpleRead NoTimeout
2021.04.07 20:14:30 4 : BindingsIo: >>> WS: {"awaitId": 74564090, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'led','');;"}
2021.04.07 20:14:30 5 : BindingsIo: QUEUE: start handling - 1
2021.04.07 20:14:30 5 : processMessage: {"awaitId": 74564090, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'led','');;"}
2021.04.07 20:14:30 4 : BindingsIo: <<< WS: {"result":null,"awaitId":74564090,"error":0}
2021.04.07 20:14:30 5 : SW: 7b22726573756c74223a6e756c6c2c2261776169744964223a37343536343039302c226572726f72223a307d
2021.04.07 20:14:30 5 : BindingsIo: QUEUE: finished handling - 0
2021.04.07 20:14:30 5 : BindingsIo: DevIo_SimpleRead
2021.04.07 20:14:30 5 : BindingsIo: DevIo_SimpleRead NoTimeout
2021.04.07 20:14:30 4 : BindingsIo: >>> WS: {"awaitId": 44498405, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'led_brightness','LedBrightness.Dim');;"}
2021.04.07 20:14:30 5 : BindingsIo: QUEUE: start handling - 1
2021.04.07 20:14:30 5 : processMessage: {"awaitId": 44498405, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'led_brightness','LedBrightness.Dim');;"}
2021.04.07 20:14:30 4 : BindingsIo: <<< WS: {"error":0,"result":null,"awaitId":44498405}
2021.04.07 20:14:30 5 : SW: 7b226572726f72223a302c22726573756c74223a6e756c6c2c2261776169744964223a34343439383430357d
2021.04.07 20:14:30 5 : BindingsIo: QUEUE: finished handling - 0
2021.04.07 20:14:30 5 : BindingsIo: DevIo_SimpleRead
2021.04.07 20:14:30 5 : BindingsIo: DevIo_SimpleRead NoTimeout
2021.04.07 20:14:30 4 : BindingsIo: >>> WS: {"awaitId": 23824724, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'buzzer_volume','');;"}
2021.04.07 20:14:30 5 : BindingsIo: QUEUE: start handling - 1
2021.04.07 20:14:30 5 : processMessage: {"awaitId": 23824724, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'buzzer_volume','');;"}
2021.04.07 20:14:30 4 : BindingsIo: <<< WS: {"awaitId":23824724,"result":null,"error":0}
2021.04.07 20:14:30 5 : SW: 7b2261776169744964223a32333832343732342c22726573756c74223a6e756c6c2c226572726f72223a307d
2021.04.07 20:14:30 5 : BindingsIo: QUEUE: finished handling - 0
2021.04.07 20:14:30 5 : BindingsIo: DevIo_SimpleRead
2021.04.07 20:14:30 5 : BindingsIo: DevIo_SimpleRead NoTimeout
2021.04.07 20:14:30 4 : BindingsIo: >>> WS: {"awaitId": 15039709, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'favorite_level','');;"}
2021.04.07 20:14:30 5 : BindingsIo: QUEUE: start handling - 1
2021.04.07 20:14:30 5 : processMessage: {"awaitId": 15039709, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'favorite_level','');;"}
2021.04.07 20:14:30 4 : BindingsIo: <<< WS: {"error":0,"result":null,"awaitId":15039709}
2021.04.07 20:14:30 5 : SW: 7b226572726f72223a302c22726573756c74223a6e756c6c2c2261776169744964223a31353033393730397d
2021.04.07 20:14:30 5 : BindingsIo: QUEUE: finished handling - 0
2021.04.07 20:14:30 5 : BindingsIo: DevIo_SimpleRead
2021.04.07 20:14:30 5 : BindingsIo: DevIo_SimpleRead NoTimeout
2021.04.07 20:14:30 4 : BindingsIo: >>> WS: {"awaitId": 95212624, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'use_time','');;"}
2021.04.07 20:14:30 5 : BindingsIo: QUEUE: start handling - 1
2021.04.07 20:14:30 5 : processMessage: {"awaitId": 95212624, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'use_time','');;"}
2021.04.07 20:14:30 4 : BindingsIo: <<< WS: {"error":0,"awaitId":95212624,"result":null}
2021.04.07 20:14:30 5 : SW: 7b226572726f72223a302c2261776169744964223a39353231323632342c22726573756c74223a6e756c6c7d
2021.04.07 20:14:30 5 : BindingsIo: QUEUE: finished handling - 0
2021.04.07 20:14:30 5 : BindingsIo: DevIo_SimpleRead
2021.04.07 20:14:30 5 : BindingsIo: DevIo_SimpleRead NoTimeout
2021.04.07 20:14:30 4 : BindingsIo: >>> WS: {"awaitId": 61051049, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'purify_volume','');;"}
2021.04.07 20:14:30 5 : BindingsIo: QUEUE: start handling - 1
2021.04.07 20:14:30 5 : processMessage: {"awaitId": 61051049, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'purify_volume','');;"}
2021.04.07 20:14:30 4 : BindingsIo: <<< WS: {"awaitId":61051049,"result":null,"error":0}
2021.04.07 20:14:30 5 : SW: 7b2261776169744964223a36313035313034392c22726573756c74223a6e756c6c2c226572726f72223a307d
2021.04.07 20:14:30 5 : BindingsIo: QUEUE: finished handling - 0
2021.04.07 20:14:30 5 : BindingsIo: DevIo_SimpleRead
2021.04.07 20:14:30 5 : BindingsIo: DevIo_SimpleRead NoTimeout
2021.04.07 20:14:30 4 : BindingsIo: >>> WS: {"awaitId": 36568786, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'filter_rfid_product_id','');;"}
2021.04.07 20:14:30 5 : BindingsIo: QUEUE: start handling - 1
2021.04.07 20:14:30 5 : processMessage: {"awaitId": 36568786, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'filter_rfid_product_id','');;"}
2021.04.07 20:14:30 4 : BindingsIo: <<< WS: {"awaitId":36568786,"result":null,"error":0}
2021.04.07 20:14:30 5 : SW: 7b2261776169744964223a33363536383738362c22726573756c74223a6e756c6c2c226572726f72223a307d
2021.04.07 20:14:30 5 : BindingsIo: QUEUE: finished handling - 0
2021.04.07 20:14:30 5 : BindingsIo: DevIo_SimpleRead
2021.04.07 20:14:30 5 : BindingsIo: DevIo_SimpleRead NoTimeout
2021.04.07 20:14:30 4 : BindingsIo: >>> WS: {"awaitId": 70908668, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'filter_rfid_tag','');;"}
2021.04.07 20:14:30 5 : BindingsIo: QUEUE: start handling - 1
2021.04.07 20:14:30 5 : processMessage: {"awaitId": 70908668, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'filter_rfid_tag','');;"}
2021.04.07 20:14:30 4 : BindingsIo: <<< WS: {"awaitId":70908668,"result":null,"error":0}
2021.04.07 20:14:30 5 : SW: 7b2261776169744964223a37303930383636382c22726573756c74223a6e756c6c2c226572726f72223a307d
2021.04.07 20:14:30 5 : BindingsIo: QUEUE: finished handling - 0
2021.04.07 20:14:30 5 : BindingsIo: DevIo_SimpleRead
2021.04.07 20:14:30 5 : BindingsIo: DevIo_SimpleRead NoTimeout
2021.04.07 20:14:30 4 : BindingsIo: >>> WS: {"awaitId": 91438504, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'filter_type','');;"}
2021.04.07 20:14:30 5 : BindingsIo: QUEUE: start handling - 1
2021.04.07 20:14:30 5 : processMessage: {"awaitId": 91438504, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'filter_type','');;"}
2021.04.07 20:14:30 4 : BindingsIo: <<< WS: {"error":0,"awaitId":91438504,"result":null}
2021.04.07 20:14:30 5 : SW: 7b226572726f72223a302c2261776169744964223a39313433383530342c22726573756c74223a6e756c6c7d
2021.04.07 20:14:30 5 : BindingsIo: QUEUE: finished handling - 0
2021.04.07 20:14:30 5 : BindingsIo: DevIo_SimpleRead
2021.04.07 20:14:30 5 : BindingsIo: DevIo_SimpleRead NoTimeout
2021.04.07 20:14:30 4 : BindingsIo: >>> WS: {"awaitId": 43828185, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsEndUpdate($defs{'AirPurifier3CTest'},1);;"}
2021.04.07 20:14:30 5 : BindingsIo: QUEUE: start handling - 1
2021.04.07 20:14:30 5 : processMessage: {"awaitId": 43828185, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsEndUpdate($defs{'AirPurifier3CTest'},1);;"}
2021.04.07 20:14:30 4 : BindingsIo: <<< WS: {"error":0,"result":null,"awaitId":43828185}
2021.04.07 20:14:30 5 : SW: 7b226572726f72223a302c22726573756c74223a6e756c6c2c2261776169744964223a34333832383138357d
2021.04.07 20:14:30 5 : BindingsIo: QUEUE: finished handling - 0
2021.04.07 20:14:30 5 : BindingsIo: DevIo_SimpleRead
2021.04.07 20:14:30 5 : BindingsIo: DevIo_SimpleRead NoTimeout
2021.04.07 20:14:30 4 : BindingsIo: >>> WS: {"awaitId": 91558634, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBeginUpdate($defs{'AirPurifier3CTest'});;readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'presence','online');;readingsEndUpdate($defs{'AirPurifier3CTest'},1);;"}
2021.04.07 20:14:30 5 : BindingsIo: QUEUE: start handling - 1
2021.04.07 20:14:30 5 : processMessage: {"awaitId": 91558634, "NAME": "AirPurifier3CTest", "msgtype": "command", "command": "readingsBeginUpdate($defs{'AirPurifier3CTest'});;readingsBulkUpdateIfChanged($defs{'AirPurifier3CTest'},'presence','online');;readingsEndUpdate($defs{'AirPurifier3CTest'},1);;"}
2021.04.07 20:14:30 4 : BindingsIo: <<< WS: {"awaitId":91558634,"result":null,"error":0}
2021.04.07 20:14:30 5 : SW: 7b2261776169744964223a39313535383633342c22726573756c74223a6e756c6c2c226572726f72223a307d
2021.04.07 20:14:30 5 : BindingsIo: QUEUE: finished handling - 0


Hier das Device
Internals:
   CFGFN     
   DEF        miio airpurifiermiot 192.168.178.58 XXXXXXXXXXXXXXXXXXXXXXX
   FUUID      606db757-f33f-5815-0acd-662306217abdfa2a
   IODev      local_pybinding
   NAME       AirPurifier3CTest
   NR         9745
   PYTHONTYPE miio
   STATE      active
   TYPE       PythonModule
   READINGS:
     2021-04-07 15:44:58   accesspoint_bssid XXXXXXXXXXXXXXXXXXXXXXX
     2021-04-07 15:44:58   accesspoint_primary 11
     2021-04-07 15:44:58   accesspoint_rssi -52
     2021-04-07 15:44:58   accesspoint_ssid XXXXXXXXXXXXXXXXXXXXXXX
     2021-04-07 15:44:58   fan_level       1
     2021-04-07 15:44:58   firmware_version 2.0.8
     2021-04-07 15:44:58   hardware_version esp32
     2021-04-07 15:44:58   led_brightness  LedBrightness.Dim
     2021-04-07 15:44:58   mac_address    XXXXXXXXXXXXXXXXXXXXXXX
     2021-04-07 15:44:58   model           zhimi.airpurifier.mb4
     2021-04-07 15:44:58   network_interface_gw 192.168.178.1
     2021-04-07 15:44:58   network_interface_localIp 192.168.178.58
     2021-04-07 15:44:58   network_interface_mask 255.255.255.0
     2021-04-07 15:44:58   presence        online
     2021-04-07 15:44:57   state           active
   args:
     AirPurifier3CTest
     PythonModule
     miio
     airpurifiermiot
     192.168.178.58
     XXXXXXXXXXXXXXXXXXXXXXX
   argsh:
Attributes:
   IODev      local_pybinding
   room       !


Habe ich noch einen Fehler?

dominik

Hi,
sorry für die späte Rückmeldung. Bin seit ein paar Wochen nahezu Tag und Nacht beschäftigt und habe daher im Moment wenig Zeit für FHEM.

Die Readings wurden aber bereits einmal aktualisiert, oder? Ich werde heute noch die miio Library auf 0.5.5.2 aktualisieren, vielleicht gab es dort einen Fehler. Bitte dann morgen um nochmaligen Test.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Guenni1404

Hi,
hatte leider auch nicht wirklich Zeit. Habe das Update gemacht. Hat leider nicht funktioniert.

Im Log erhalte ich folgende Meldung:
2021-04-23 15:25:44,974 - INFO     - fhempy.lib.pkg_installer: Attempting install of fhempy
2021-04-23 15:25:53,787 - ERROR    - asyncio: Task exception was never retrieved
future: <Task finished coro=<PyBinding.onMessage() done, defined at /opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py:126> exception=SystemExit(1) created at /usr/lib/python3.7/asyncio/tasks.py:325>
source_traceback: Object created at (most recent call last):
  File "FHEM/bindings/python/bin/fhempy", line 121, in <module>
    fpb.run()
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 471, in run
    asyncio.get_event_loop().run_forever()
  File "/usr/lib/python3.7/asyncio/base_events.py", line 539, in run_forever
    self._run_once()
  File "/usr/lib/python3.7/asyncio/base_events.py", line 1767, in _run_once
    handle._run()
  File "/usr/lib/python3.7/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/opt/fhem/.local/lib/python3.7/site-packages/websockets/server.py", line 191, in handler
    await self.ws_handler(self, path)
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 67, in pybinding
    asyncio.create_task(pb.onMessage(message))
  File "/usr/lib/python3.7/asyncio/tasks.py", line 325, in create_task
    return loop.create_task(coro)
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 128, in onMessage
    await self._onMessage(payload)
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 391, in _onMessage
    raise se
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 170, in _onMessage
    sys.exit(1)
SystemExit: 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.7/asyncio/base_events.py", line 539, in run_forever
    self._run_once()
  File "/usr/lib/python3.7/asyncio/base_events.py", line 1767, in _run_once
    handle._run()
  File "/usr/lib/python3.7/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 130, in onMessage
    sys.exit(1)
SystemExit: 1
2021-04-23 15:25:55,501 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy...
2021-04-23 15:25:55,548 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2021-04-23 15:26:04,188 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2021-04-23 15:26:05,752 - WARNING  - asyncio: Executing <Handle <TaskWakeupMethWrapper object at 0x72688d70>(<Future finis...events.py:396>) created at /usr/lib/python3.7/asyncio/tasks.py:368> took 0.450 seconds