fhempy: Meross

Begonnen von dominik, 29 September 2021, 21:26:01

Vorheriges Thema - Nächstes Thema

Joey99917

Hi,
ja, Du hast Recht. Ich habe beim msg100 alle Optionen zum Schalten: close, off , on, open, toggle.
Kann auch mit set <device> open das Tor öffnen bzw. mit close auch schliessen.
Habe über attr Rolltor webCmd open:close auch 2 Schalter für die APP hinzugefügt, jetzt kann ich auch über die APP schalten. Lediglich den Zustand kriege ich nicht sauber angezeigt, z.B. opened oder closed. Ist immer ON / OFF. Kann man das anders definieren ?
Wegen der mss620 habe ich genau 1 device id, das scheint auch ok zu sein. Es gibt aber Channel 1 und 2. Das habe ich mit Alberts python scripts verifizieren können ( https://github.com/albertogeniola/MerossIot ). Darüber konnte ich die 2 Einzelsteckdosen auch einzeln ein/ausschalten.
Wie kriege ich das dann ins fhem rein ?

Internals
DEF   meross meross_integration 1912057866716890806048e1e9126160
DEVICEID 1912057866716890806048e1e9126160
FHEMPYTYPE meross
FUUID 6307808d-f33f-443d-dc18-5aeca63d94ed698c
IODev fhempy_local
NAME Aussensteckdose_1912057866716890806048e1e9126160
NR 67
PYTHONTYPE meross
STATE off
TYPE fhempy
eventCount 3

Liebe Grüße
Christian

dominik

Garage: Liefert ein anderes Reading open oder closed?

Channel: Bitte Version 0.1.442 testen, damit sollte es nun neben on/off auch on_1/off_1 geben.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Joey99917

Hallo Dominik,
erstmal zum msg100 Garagentor. Schalten mit off,on,toggle bewirkt nichts, nur open,close funktioniert.
Anbei auch das logfile und 3 Bilder, wie es in der APP aussieht.
Auf den mss620 antworte ich separat, das hat sich mir noch nicht erschlossen, muss ich erst testen. habe gesehen, es gibt ja mittlerweile eine Version 0.1.443.
Grüße

Christian

cat fhempy-2022-08-30.log
2022-08-30 09:18:33,564 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.441...
2022-08-30 09:18:33,576 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2022-08-30 09:18:33,640 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2022-08-30 09:18:36,511 - INFO     - websockets.server: connection open
2022-08-30 09:18:36,517 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2022-08-30 09:18:38,692 - WARNING  - asyncio: Executing <Task pending coro=<FhemModule._run_coro() running at /opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/generic.py:183> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7344da70>()] created at /usr/lib/python3.7/asyncio/base_events.py:396> cb=[FhemModule._handle_task_result()] created at /usr/lib/python3.7/asyncio/tasks.py:325> took 0.211 seconds
2022-08-30 09:19:32,706 - WARNING  - Rolltor_1909182847205590801948e1e9521c72: Device Rolltor reported online event.
2022-08-30 09:19:37,333 - WARNING  - Rolltor_1909182847205590801948e1e9521c72: Device Rolltor reported online event.
2022-08-30 09:21:20,738 - WARNING  - Rolltor_1909182847205590801948e1e9521c72: Device Rolltor reported online event.
2022-08-30 09:22:46,344 - WARNING  - Rolltor_1909182847205590801948e1e9521c72: Device Rolltor reported online event.
2022-08-30 09:23:28,950 - WARNING  - Rolltor_1909182847205590801948e1e9521c72: Device Rolltor reported online event.
2022-08-30 09:34:19,699 - WARNING  - Rolltor_1909182847205590801948e1e9521c72: Device Rolltor reported online event.
2022-08-30 09:34:29,718 - ERROR    - meross_iot.manager: Timeout occurred while waiting a response for message b'{"header":{"from":"/app/500510-bbdd49943b8a6a403058be557521e523/subscribe","messageId":"76e12bb2ae2bebdd7f7f2f0d805f06e6","method":"GET","namespace":"Appliance.System.All","payloadVersion":1,"sign":"d790df12463d9866cba733cc196550df","timestamp":1661844860,"triggerSrc":"Android","uuid":"1909182847205590801948e1e9521c72"},"payload":{}}' sent to device uuid 1909182847205590801948e1e9521c72. Timeout was: 10.000000 seconds. Mqtt Host: mqtt-eu.meross.com:443.
2022-08-30 09:34:29,719 - ERROR    - meross_iot.controller.device: Error occurred while firing push notification event Namespace.SYSTEM_ONLINE with data: {'online': {'status': 1}}
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/meross_iot/manager.py", line 806, in _async_send_and_wait_ack
    return await asyncio.wait_for(future, timeout)
  File "/usr/lib/python3.7/asyncio/tasks.py", line 423, in wait_for
    raise futures.TimeoutError()
concurrent.futures._base.TimeoutError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/meross_iot/controller/device.py", line 126, in _fire_push_notification_event
    await c(namespace=namespace, data=data, device_internal_id=device_internal_id)
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/meross/meross_device.py", line 157, in _async_push_notification_received
    await self._device.async_update()
  File "/opt/fhem/.local/lib/python3.7/site-packages/meross_iot/controller/mixins/system.py", line 25, in async_update
    timeout=timeout)
  File "/opt/fhem/.local/lib/python3.7/site-packages/meross_iot/controller/device.py", line 284, in _execute_command
    mqtt_port=self.mqtt_port)
  File "/opt/fhem/.local/lib/python3.7/site-packages/meross_iot/manager.py", line 771, in async_execute_cmd
    timeout=timeout)
  File "/opt/fhem/.local/lib/python3.7/site-packages/meross_iot/manager.py", line 792, in async_execute_cmd_client
    timeout=timeout
  File "/opt/fhem/.local/lib/python3.7/site-packages/meross_iot/manager.py", line 813, in _async_send_and_wait_ack
    raise CommandTimeoutError(message=str(message), target_device_uuid=target_device_uuid, timeout=timeout)
meross_iot.model.exception.CommandTimeoutError
2022-08-30 09:36:23,912 - WARNING  - Rolltor_1909182847205590801948e1e9521c72: Device Rolltor reported online event.
2022-08-30 09:36:37,736 - WARNING  - Rolltor_1909182847205590801948e1e9521c72: Device Rolltor reported online event.
2022-08-30 09:36:47,754 - ERROR    - meross_iot.manager: Timeout occurred while waiting a response for message b'{"header":{"from":"/app/500510-bbdd49943b8a6a403058be557521e523/subscribe","messageId":"cfa195f946172115342cbc43c830d60c","method":"GET","namespace":"Appliance.System.All","payloadVersion":1,"sign":"f7a60badd3d37a6020153168108258db","timestamp":1661844998,"triggerSrc":"Android","uuid":"1909182847205590801948e1e9521c72"},"payload":{}}' sent to device uuid 1909182847205590801948e1e9521c72. Timeout was: 10.000000 seconds. Mqtt Host: mqtt-eu.meross.com:443.
2022-08-30 09:36:47,757 - ERROR    - meross_iot.controller.device: Error occurred while firing push notification event Namespace.SYSTEM_ONLINE with data: {'online': {'status': 1}}
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/meross_iot/manager.py", line 806, in _async_send_and_wait_ack
    return await asyncio.wait_for(future, timeout)
  File "/usr/lib/python3.7/asyncio/tasks.py", line 423, in wait_for
    raise futures.TimeoutError()
concurrent.futures._base.TimeoutError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/meross_iot/controller/device.py", line 126, in _fire_push_notification_event
    await c(namespace=namespace, data=data, device_internal_id=device_internal_id)
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/meross/meross_device.py", line 157, in _async_push_notification_received
    await self._device.async_update()
  File "/opt/fhem/.local/lib/python3.7/site-packages/meross_iot/controller/mixins/system.py", line 25, in async_update
    timeout=timeout)
  File "/opt/fhem/.local/lib/python3.7/site-packages/meross_iot/controller/device.py", line 284, in _execute_command
    mqtt_port=self.mqtt_port)
  File "/opt/fhem/.local/lib/python3.7/site-packages/meross_iot/manager.py", line 771, in async_execute_cmd
    timeout=timeout)
  File "/opt/fhem/.local/lib/python3.7/site-packages/meross_iot/manager.py", line 792, in async_execute_cmd_client
    timeout=timeout
  File "/opt/fhem/.local/lib/python3.7/site-packages/meross_iot/manager.py", line 813, in _async_send_and_wait_ack
    raise CommandTimeoutError(message=str(message), target_device_uuid=target_device_uuid, timeout=timeout)
meross_iot.model.exception.CommandTimeoutError
2022-08-30 09:37:42,147 - WARNING  - Rolltor_1909182847205590801948e1e9521c72: Device Rolltor reported online event.
2022-08-30 09:38:21,374 - WARNING  - Rolltor_1909182847205590801948e1e9521c72: Device Rolltor reported online event.

Joey99917

Hallo Dominik,
habe den update auf 0.1.443 gemacht. Ich stelle jetzt fest, dass ich offensichtlich im GUI keine "set" Zeile mehr habe, bei allen fhempy devices.
Die buttons in der APP unter "meross" sind jetzt weg und ich habe auch keine Schaltoption mehr, siehe Bildanhang.
Bin mir gerade nicht sicher, wie ich weitermachen soll und wo ich unterstützen kann.
Grüße

Christian

dominik

Zitat von: Joey99917 am 30 August 2022, 11:41:41
Hallo Dominik,
habe den update auf 0.1.443 gemacht. Ich stelle jetzt fest, dass ich offensichtlich im GUI keine "set" Zeile mehr habe, bei allen fhempy devices.
Die buttons in der APP unter "meross" sind jetzt weg und ich habe auch keine Schaltoption mehr, siehe Bildanhang.
Bin mir gerade nicht sicher, wie ich weitermachen soll und wo ich unterstützen kann.
Grüße

Christian

Bitte mit 0.1.444 nochmals testen.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Joey99917

Hi,
leider noch wie vorher, anbei das fhempy logfile.
Keine "set" Zeile verfügbar, keine Schaltoptionen, nur Zustand ready.
Christian
cat fhempy-2022-08-31.log
2022-08-31 00:29:06,747 - WARNING  - Wohnzimmer_Lampe_1909044128657025185948e1e9028588: Device Wohnzimmer Lampe reported online event.
2022-08-31 00:29:23,130 - WARNING  - Wohnzimmer_Lampe_1909044128657025185948e1e9028588: Device Wohnzimmer Lampe reported online event.
2022-08-31 05:02:35,035 - WARNING  - Rolltor_1909182847205590801948e1e9521c72: Device Rolltor reported online event.
2022-08-31 05:02:41,385 - WARNING  - Rolltor_1909182847205590801948e1e9521c72: Device Rolltor reported online event.
2022-08-31 05:46:28,987 - WARNING  - Rolltor_1909182847205590801948e1e9521c72: Device Rolltor reported online event.
2022-08-31 05:46:35,354 - WARNING  - Rolltor_1909182847205590801948e1e9521c72: Device Rolltor reported online event.
2022-08-31 06:18:51,945 - WARNING  - Rolltor_1909182847205590801948e1e9521c72: Device Rolltor reported online event.
2022-08-31 06:19:09,242 - WARNING  - Rolltor_1909182847205590801948e1e9521c72: Device Rolltor reported online event.
2022-08-31 06:36:55,541 - WARNING  - Rolltor_1909182847205590801948e1e9521c72: Device Rolltor reported online event.
2022-08-31 06:37:08,956 - WARNING  - Rolltor_1909182847205590801948e1e9521c72: Device Rolltor reported online event.
2022-08-31 08:00:05,782 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.441...
2022-08-31 08:00:05,793 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2022-08-31 08:00:05,861 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2022-08-31 08:00:08,661 - INFO     - websockets.server: connection open
2022-08-31 08:00:08,668 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2022-08-31 08:00:11,320 - WARNING  - asyncio: Executing <Task pending coro=<FhemModule._run_coro() running at /opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/generic.py:183> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x73e5d110>()] created at /usr/lib/python3.7/asyncio/base_events.py:396> cb=[FhemModule._handle_task_result()] created at /usr/lib/python3.7/asyncio/tasks.py:325> took 0.356 seconds
2022-08-31 09:16:40,303 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.441...
2022-08-31 09:16:40,315 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2022-08-31 09:16:40,388 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2022-08-31 09:16:43,148 - INFO     - websockets.server: connection open
2022-08-31 09:16:43,155 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2022-08-31 09:16:45,505 - WARNING  - asyncio: Executing <Task pending coro=<FhemModule._run_coro() running at /opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/generic.py:183> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x73e69a50>()] created at /usr/lib/python3.7/asyncio/base_events.py:396> cb=[FhemModule._handle_task_result()] created at /usr/lib/python3.7/asyncio/tasks.py:325> took 0.212 seconds
2022-08-31 09:17:26,075 - INFO     - fhempy.lib.fhem_pythonbinding: Start update...
2022-08-31 09:17:26,077 - INFO     - fhempy.lib.pkg_installer: Attempting install of fhempy
2022-08-31 09:17:53,434 - INFO     - fhempy.lib.pkg_installer: Successfully installed fhempy update!
2022-08-31 09:17:53,457 - INFO     - fhempy.lib.fhem_pythonbinding: Restart initiated...
2022-08-31 09:17:53,476 - INFO     - fhempy.lib.fhem_pythonbinding: All modules successfully undefined!
2022-08-31 09:17:53,477 - ERROR    - fhempy.lib.fhem_pythonbinding: fhempy took 27461ms for b'{"function":"update","id":"11402272","argsh":{},"msgtype":"update","args":[],"defargs":["fhempy_local","BindingsIo","fhempy"],"NAME":"fhempy_local","FHEMPYTYPE":null,"defargsh":{},"PYTHONTYPE":null}'
2022-08-31 09:17:53,479 - INFO     - websockets.server: server closing
2022-08-31 09:18:03,505 - INFO     - websockets.server: connection closed
2022-08-31 09:18:03,507 - INFO     - websockets.server: server closed
2022-08-31 09:18:03,510 - INFO     - fhempy.lib.fhem_pythonbinding: Exit 1
2022-08-31 09:18:05,599 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.444...
2022-08-31 09:18:05,611 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2022-08-31 09:18:05,675 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2022-08-31 09:18:18,235 - INFO     - websockets.server: connection open
2022-08-31 09:18:18,240 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2022-08-31 09:18:18,592 - INFO     - fhempy.lib.pkg_installer: Attempting install of meross-iot==0.4.5.0
2022-08-31 09:18:30,002 - INFO     - fhempy.lib.pkg_installer: Successfully installed meross-iot==0.4.5.0 update!
2022-08-31 09:18:35,382 - WARNING  - asyncio: Executing <Task pending coro=<FhemModule._run_coro() running at /opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/generic.py:183> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x734655d0>()] created at /usr/lib/python3.7/asyncio/base_events.py:396> cb=[FhemModule._handle_task_result()] created at /usr/lib/python3.7/asyncio/tasks.py:325> took 0.212 seconds
2022-08-31 09:18:37,263 - ERROR    - Rolltor_1909182847205590801948e1e9521c72: 'bool' object is not callable
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/meross/meross_device.py", line 130, in _init_device
    await self._get_set_commands()
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/meross/meross_device.py", line 36, in _get_set_commands
    if channel.is_master_channel():
TypeError: 'bool' object is not callable
2022-08-31 09:18:37,288 - ERROR    - Wohnzimmer_Lampe_1909044128657025185948e1e9028588: 'bool' object is not callable
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/meross/meross_device.py", line 130, in _init_device
    await self._get_set_commands()
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/meross/meross_device.py", line 36, in _get_set_commands
    if channel.is_master_channel():
TypeError: 'bool' object is not callable
2022-08-31 09:18:37,388 - ERROR    - Aussensteckdose_1912057866716890806048e1e9126160: 'bool' object is not callable
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/meross/meross_device.py", line 130, in _init_device
    await self._get_set_commands()
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/meross/meross_device.py", line 36, in _get_set_commands
    if channel.is_master_channel():
TypeError: 'bool' object is not callable
2022-08-31 09:18:37,414 - ERROR    - Pumpe_nach_oben_1909045516645525185948e1e9027e85: 'bool' object is not callable
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/meross/meross_device.py", line 130, in _init_device
    await self._get_set_commands()
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/meross/meross_device.py", line 36, in _get_set_commands
    if channel.is_master_channel():
TypeError: 'bool' object is not callable
2022-08-31 09:22:27,292 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.444...
2022-08-31 09:22:27,304 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2022-08-31 09:22:27,367 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2022-08-31 09:22:30,282 - INFO     - websockets.server: connection open
2022-08-31 09:22:30,288 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2022-08-31 09:22:32,509 - WARNING  - asyncio: Executing <Task pending coro=<FhemModule._run_coro() running at /opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/generic.py:183> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x73415090>()] created at /usr/lib/python3.7/asyncio/base_events.py:396> cb=[FhemModule._handle_task_result()] created at /usr/lib/python3.7/asyncio/tasks.py:325> took 0.206 seconds
2022-08-31 09:22:34,407 - ERROR    - Wohnzimmer_Lampe_1909044128657025185948e1e9028588: 'bool' object is not callable
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/meross/meross_device.py", line 130, in _init_device
    await self._get_set_commands()
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/meross/meross_device.py", line 36, in _get_set_commands
    if channel.is_master_channel():
TypeError: 'bool' object is not callable
2022-08-31 09:22:34,455 - ERROR    - Rolltor_1909182847205590801948e1e9521c72: 'bool' object is not callable
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/meross/meross_device.py", line 130, in _init_device
    await self._get_set_commands()
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/meross/meross_device.py", line 36, in _get_set_commands
    if channel.is_master_channel():
TypeError: 'bool' object is not callable
2022-08-31 09:22:34,463 - ERROR    - Aussensteckdose_1912057866716890806048e1e9126160: 'bool' object is not callable
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/meross/meross_device.py", line 130, in _init_device
    await self._get_set_commands()
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/meross/meross_device.py", line 36, in _get_set_commands
    if channel.is_master_channel():
TypeError: 'bool' object is not callable
2022-08-31 09:22:34,554 - ERROR    - Pumpe_nach_oben_1909045516645525185948e1e9027e85: 'bool' object is not callable
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/meross/meross_device.py", line 130, in _init_device
    await self._get_set_commands()
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/meross/meross_device.py", line 36, in _get_set_commands
    if channel.is_master_channel():
TypeError: 'bool' object is not callable

dominik

jetzt sollte es klappen, bitte 0.1.445 testen. Danke
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Joey99917

Hi,
habe gestern nur auf die Schnelle testen können. im GUI sieht es gut aus, die Schaltoptionen sind da und funktionieren teilweise.
Garage : sichtbar alle, funktionieren open:close >OK
mss620: einzeln schaltbar >OK
mss310: on:off vorhanden, aber set <device> on|off bewirkt keine Aktion mehr.
In der APP finde ich mich noch nicht so zurecht zwischen den Zuständen und den Schaltoptionen. Zustand immer ON oder OFF, kann man das für die Garage auch als open| close deklarieren. Mit webcmd kann ich die Kommandos ja definieren, und unter Schalter habe ich alle Optionen.
Bei der mss620 ebenso.
Grüße Christian

Joey99917

Nachtrag logfile:
cat fhempy-2022-09-01.log
2022-09-01 13:52:01,710 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.441...
2022-09-01 13:52:01,722 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2022-09-01 13:52:01,799 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2022-09-01 13:52:03,582 - INFO     - websockets.server: connection open
2022-09-01 13:52:03,588 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2022-09-01 13:52:06,398 - WARNING  - asyncio: Executing <Task pending coro=<FhemModule._run_coro() running at /opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/generic.py:183> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x75ee0f70>()] created at /usr/lib/python3.7/asyncio/base_events.py:396> cb=[FhemModule._handle_task_result()] created at /usr/lib/python3.7/asyncio/tasks.py:325> took 0.344 seconds
2022-09-01 13:53:13,847 - INFO     - fhempy.lib.fhem_pythonbinding: Start update...
2022-09-01 13:53:13,850 - INFO     - fhempy.lib.pkg_installer: Attempting install of fhempy
2022-09-01 13:53:42,171 - INFO     - fhempy.lib.pkg_installer: Successfully installed fhempy update!
2022-09-01 13:53:42,195 - INFO     - fhempy.lib.fhem_pythonbinding: Restart initiated...
2022-09-01 13:53:42,214 - INFO     - fhempy.lib.fhem_pythonbinding: All modules successfully undefined!
2022-09-01 13:53:42,215 - ERROR    - fhempy.lib.fhem_pythonbinding: fhempy took 28433ms for b'{"defargs":["fhempy_local","BindingsIo","fhempy"],"argsh":{},"defargsh":{},"NAME":"fhempy_local","function":"update","PYTHONTYPE":null,"id":"782975","FHEMPYTYPE":null,"msgtype":"update","args":[]}'
2022-09-01 13:53:42,217 - INFO     - websockets.server: server closing
2022-09-01 13:53:52,246 - INFO     - websockets.server: connection closed
2022-09-01 13:53:52,248 - INFO     - websockets.server: server closed
2022-09-01 13:53:52,251 - INFO     - fhempy.lib.fhem_pythonbinding: Exit 1
2022-09-01 13:53:54,301 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.445...
2022-09-01 13:53:54,312 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2022-09-01 13:53:54,376 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2022-09-01 13:54:05,248 - INFO     - websockets.server: connection open
2022-09-01 13:54:05,254 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2022-09-01 13:54:05,628 - INFO     - fhempy.lib.pkg_installer: Attempting install of meross-iot==0.4.5.0
2022-09-01 13:54:17,454 - INFO     - fhempy.lib.pkg_installer: Successfully installed meross-iot==0.4.5.0 update!
2022-09-01 13:54:23,142 - WARNING  - asyncio: Executing <Task pending coro=<FhemModule._run_coro() running at /opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/generic.py:183> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x75f15930>()] created at /usr/lib/python3.7/asyncio/base_events.py:396> cb=[FhemModule._handle_task_result()] created at /usr/lib/python3.7/asyncio/tasks.py:325> took 0.353 seconds
2022-09-01 14:13:05,104 - ERROR    - Wohnzimmer_Lampe_1909044128657025185948e1e9028588: Exception raised by task: <Task finished coro=<FhemModule._run_coro() done, defined at /opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/generic.py:181> exception=KeyError('function_param') created at /usr/lib/python3.7/asyncio/tasks.py:325>
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/generic.py", line 189, in _handle_task_result
    task.result()
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/generic.py", line 183, in _run_coro
    await coro
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/meross/meross_device.py", line 106, in set_on
    await self._device.async_turn_on(params["function_param"])
KeyError: 'function_param'
2022-09-01 14:13:06,064 - ERROR    - Wohnzimmer_Lampe_1909044128657025185948e1e9028588: Exception raised by task: <Task finished coro=<FhemModule._run_coro() done, defined at /opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/generic.py:181> exception=KeyError('function_param') created at /usr/lib/python3.7/asyncio/tasks.py:325>
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/generic.py", line 189, in _handle_task_result
    task.result()
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/generic.py", line 183, in _run_coro
    await coro
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/meross/meross_device.py", line 112, in set_off
    await self._device.async_turn_off(params["function_param"])
KeyError: 'function_param'
2022-09-01 14:13:06,613 - ERROR    - Wohnzimmer_Lampe_1909044128657025185948e1e9028588: Exception raised by task: <Task finished coro=<FhemModule._run_coro() done, defined at /opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/generic.py:181> exception=KeyError('function_param') created at /usr/lib/python3.7/asyncio/tasks.py:325>
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/generic.py", line 189, in _handle_task_result
    task.result()
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/generic.py", line 183, in _run_coro
    await coro
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/meross/meross_device.py", line 112, in set_off
    await self._device.async_turn_off(params["function_param"])
KeyError: 'function_param'
2022-09-01 14:13:07,480 - ERROR    - Wohnzimmer_Lampe_1909044128657025185948e1e9028588: Exception raised by task: <Task finished coro=<FhemModule._run_coro() done, defined at /opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/generic.py:181> exception=KeyError('function_param') created at /usr/lib/python3.7/asyncio/tasks.py:325>
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/generic.py", line 189, in _handle_task_result
    task.result()
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/generic.py", line 183, in _run_coro
    await coro
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/meross/meross_device.py", line 112, in set_off
    await self._device.async_turn_off(params["function_param"])
KeyError: 'function_param'
2022-09-01 14:13:12,406 - ERROR    - Wohnzimmer_Lampe_1909044128657025185948e1e9028588: Exception raised by task: <Task finished coro=<FhemModule._run_coro() done, defined at /opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/generic.py:181> exception=KeyError('function_param') created at /usr/lib/python3.7/asyncio/tasks.py:325>
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/generic.py", line 189, in _handle_task_result
    task.result()
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/generic.py", line 183, in _run_coro
    await coro
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/meross/meross_device.py", line 106, in set_on
    await self._device.async_turn_on(params["function_param"])
KeyError: 'function_param'

dominik

Bitte 0.1.446 testen, damit sollte on/off wieder gehen.

Gib mir bitte dann Bescheid was noch fehlt.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Joey99917

Hallo Dominik,
Die Schaltoptionen funktionieren jetzt alle, im GUI alles schön dargestellt.
Beim Garagenöffner geht nur open und close, aber das ist klar.
Bei der Doppelsteckdose mss620 sehr schön: on/off für beide Dosen, _1 bzw. _2 spezifisch.
Damit bin ich happy!
Lediglich die APP könnte das etwas schöner darstellen, aber in den untergeordneten Schaltmenues kann man das auch bedienen.
Muss ich mich mal noch schlau machen, evtl. über Dummy.
Vielen Dank für Deine Zeit und Energie !
Christian

olgo

Hallo Dominik,

werden - oder ist es möglich - die Thermostate von Meross zu steuern oder zumindest die Daten zu erhalten.

Ich habe aktuell das MTS200 im Einsatz und würde gerne die Informationen Ist und Soll Temperatur in fhem anzeigen und wenn möglich auch das verändern der Soll Temperatur ermöglichen.
Siehst Du da eine Möglichkeit?

Vorab vielen Dank

Gruß
olgo

dominik

Hab es mal testweise in 0.1.476 implementiert. Bitte testen.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

olgo

Super 👍
Funktioniert einwandfrei

Vielen Dank

dominik

Perfekt :)

Es gibt noch die Möglichkeit die eco/heat/cool Temperaturen zu setzen, aber ich weiß nicht ob du das wirklich brauchst!? Daher habe ich vorerst nur manual_tempearture mit desiredTemp gesetzt.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik