fhempy: tuya (lokal)

Begonnen von dominik, 26 April 2022, 19:12:25

Vorheriges Thema - Nächstes Thema

dominik

Hallo,

ich habe soeben die lokale Steuerung von Tuya umgebaut damit man lokal Updates der Devices sofort erhält. Dies sollte stabiler als die tuya_cloud Variante funktionieren, da dort die Server immer wieder Probleme machten.
Generell funktioniert das für alle Tuya Devices, egal ob Parkside, LSC, usw.. Also alles was auch in der SmartLife App funktioniert.

Einrichtung:

1. fhempy installieren
https://github.com/dominikkarall/fhempy#installation

2. tuya einrichten
https://github.com/dominikkarall/fhempy/blob/master/FHEM/bindings/python/fhempy/lib/tuya/README.md

Warum muss dabei auch der Cloud Zugang eingerichtet werden?
Über die Cloud wird einmalig die Konfiguration des Devices heruntergeladen, damit man weiß wie die lokalen Daten zu interpretieren sind. Danach werden keine Commands mehr von fhempy an die Tuya Cloud geschickt.

Dieses Modul ist ausschließlich für TuYa WiFi Devices geeignet. TuYa ZigBee Devices kann man über tuya_cloud oder Zigbee2mqtt (lokal) einbinden.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

MiKn

hmm, was mache ich falsch  ::) Nach dem erfolgreichen Device Scan (11 Geräte gefunden) kommt bei set tuya_system create_device Multi_Mode_Gateway und ich kann keine Geräte mehr ein/ausschalten.

Device:
defmod tuya_system fhempy tuya setup jg7m955ybb9h9xxxxxxx 50e149d0f0dd4d57bd0e0f59xxxxxx bf026b88d79daxxxxxx
attr tuya_system room fhempy
setstate tuya_system 1 devices found localy
setstate tuya_system 2022-04-26 20:15:36 bf026b88d79da17609afuy_icon https://images.tuyaeu.com/smart/icon/ay1555059089863sMgqv/4c20ba802ef497cb51ab4fa933518ed6.png
setstate tuya_system 2022-04-26 20:15:36 bf026b88d79da17609afuy_id bf026b88d79da17609afuy
setstate tuya_system 2022-04-26 20:16:27 bf026b88d79da17609afuy_ip offline
setstate tuya_system 2022-04-26 20:15:36 bf026b88d79da17609afuy_localkey 35daa79d7719990e
setstate tuya_system 2022-04-26 20:15:36 bf026b88d79da17609afuy_name Wireless Switch  2
setstate tuya_system 2022-04-26 20:15:36 bf026b88d79da17609afuy_productid eg9bol3v
setstate tuya_system 2022-04-26 20:15:36 bf259133001a731855apjh_icon https://images.tuyaeu.com/smart/icon/ay1468288548509686pw/a6150ff03eec4554fe10fcf0f5db016f.png
setstate tuya_system 2022-04-26 20:15:36 bf259133001a731855apjh_id bf259133001a731855apjh
setstate tuya_system 2022-04-26 20:16:27 bf259133001a731855apjh_ip offline
setstate tuya_system 2022-04-26 20:15:36 bf259133001a731855apjh_localkey 35daa79d7719990e
setstate tuya_system 2022-04-26 20:15:36 bf259133001a731855apjh_name Szenenschalter
setstate tuya_system 2022-04-26 20:15:36 bf259133001a731855apjh_productid axpdxqgu
setstate tuya_system 2022-04-26 20:15:36 bf327f76aacfe9bea9sgid_icon https://images.tuyaeu.com/smart/icon/ay15550606765900nC10/0379c639a05f5ab771126816d45c9ece.png
setstate tuya_system 2022-04-26 20:15:36 bf327f76aacfe9bea9sgid_id bf327f76aacfe9bea9sgid
setstate tuya_system 2022-04-26 20:16:27 bf327f76aacfe9bea9sgid_ip offline
setstate tuya_system 2022-04-26 20:15:36 bf327f76aacfe9bea9sgid_localkey 3795eb5db5719fe1
setstate tuya_system 2022-04-26 20:15:36 bf327f76aacfe9bea9sgid_name Other
setstate tuya_system 2022-04-26 20:15:36 bf327f76aacfe9bea9sgid_productid nmpejc607a8u1cim
setstate tuya_system 2022-04-26 20:15:36 bf3e7723e71e2f0bf5crga_icon https://images.tuyaeu.com/smart/icon/ay1528101790270lcTle/1c0e8abe197ca4e3b4556d10495326c4.png
setstate tuya_system 2022-04-26 20:15:36 bf3e7723e71e2f0bf5crga_id bf3e7723e71e2f0bf5crga
setstate tuya_system 2022-04-26 20:16:27 bf3e7723e71e2f0bf5crga_ip offline
setstate tuya_system 2022-04-26 20:15:36 bf3e7723e71e2f0bf5crga_localkey 35daa79d7719990e
setstate tuya_system 2022-04-26 20:15:36 bf3e7723e71e2f0bf5crga_name Filament bulb
setstate tuya_system 2022-04-26 20:15:36 bf3e7723e71e2f0bf5crga_productid zfbj19qm
setstate tuya_system 2022-04-26 20:15:36 bf4e7302b54b31e7e5iawx_icon https://images.tuyaeu.com/smart/icon/bay1590985471642quoi/7bf56ec7badbc505eec2356669a293ca.jpg
setstate tuya_system 2022-04-26 20:15:36 bf4e7302b54b31e7e5iawx_id bf4e7302b54b31e7e5iawx
setstate tuya_system 2022-04-26 20:16:27 bf4e7302b54b31e7e5iawx_ip offline
setstate tuya_system 2022-04-26 20:15:36 bf4e7302b54b31e7e5iawx_localkey 35daa79d7719990e
setstate tuya_system 2022-04-26 20:15:36 bf4e7302b54b31e7e5iawx_name Thermostat Valve
setstate tuya_system 2022-04-26 20:15:36 bf4e7302b54b31e7e5iawx_productid b6wax7g0
setstate tuya_system 2022-04-26 20:15:36 bf5918ac10bc804aadgoza_icon https://images.tuyaeu.com/smart/icon/ay15327721968035jwx9/b1db85c4c19fa20be8b8968868e2f859.png
setstate tuya_system 2022-04-26 20:15:36 bf5918ac10bc804aadgoza_id bf5918ac10bc804aadgoza
setstate tuya_system 2022-04-26 20:16:27 bf5918ac10bc804aadgoza_ip offline
setstate tuya_system 2022-04-26 20:15:36 bf5918ac10bc804aadgoza_localkey 35daa79d7719990e
setstate tuya_system 2022-04-26 20:15:36 bf5918ac10bc804aadgoza_name Dimmer Wohnzimmer
setstate tuya_system 2022-04-26 20:15:36 bf5918ac10bc804aadgoza_productid fjjbhx9d
setstate tuya_system 2022-04-26 20:15:36 bf71189d140ea394dfishb_icon https://images.tuyaeu.com/smart/icon/ay1534490862266NApJD/e7203743227d4bf6f93443ca7d45ae04.png
setstate tuya_system 2022-04-26 20:15:36 bf71189d140ea394dfishb_id bf71189d140ea394dfishb
setstate tuya_system 2022-04-26 20:16:27 bf71189d140ea394dfishb_ip 192.168.1.80
setstate tuya_system 2022-04-26 20:15:36 bf71189d140ea394dfishb_localkey 35daa79d7719990e
setstate tuya_system 2022-04-26 20:15:36 bf71189d140ea394dfishb_name Multi Mode Gateway
setstate tuya_system 2022-04-26 20:15:36 bf71189d140ea394dfishb_productid rm7ec3fg
setstate tuya_system 2022-04-26 20:16:27 bf71189d140ea394dfishb_version 3.3
setstate tuya_system 2022-04-26 20:15:36 bf9a2d0837b2c754c8f1qf_icon https://images.tuyaeu.com/smart/icon/bay16152549642749hEX/e693b723a191a2f8bf0f4d05d731ea62.png
setstate tuya_system 2022-04-26 20:15:36 bf9a2d0837b2c754c8f1qf_id bf9a2d0837b2c754c8f1qf
setstate tuya_system 2022-04-26 20:16:27 bf9a2d0837b2c754c8f1qf_ip offline
setstate tuya_system 2022-04-26 20:15:36 bf9a2d0837b2c754c8f1qf_localkey 3795eb5db5719fe1
setstate tuya_system 2022-04-26 20:15:36 bf9a2d0837b2c754c8f1qf_name USB RF IR
setstate tuya_system 2022-04-26 20:15:36 bf9a2d0837b2c754c8f1qf_productid pwla5warkrwbza0m
setstate tuya_system 2022-04-26 20:15:36 bfc6fc95442d988644evzt_icon https://images.tuyaeu.com/smart/icon/ay1555059089863sMgqv/4c20ba802ef497cb51ab4fa933518ed6.png
setstate tuya_system 2022-04-26 20:15:36 bfc6fc95442d988644evzt_id bfc6fc95442d988644evzt
setstate tuya_system 2022-04-26 20:16:27 bfc6fc95442d988644evzt_ip offline
setstate tuya_system 2022-04-26 20:15:36 bfc6fc95442d988644evzt_localkey 35daa79d7719990e
setstate tuya_system 2022-04-26 20:15:36 bfc6fc95442d988644evzt_name Wireless Switch
setstate tuya_system 2022-04-26 20:15:36 bfc6fc95442d988644evzt_productid eg9bol3v
setstate tuya_system 2022-04-26 20:15:36 bfcc0e45c8200202d4puhb_icon https://images.tuyaeu.com/smart/ir/icon/9kndaqkry6f4.png
setstate tuya_system 2022-04-26 20:15:36 bfcc0e45c8200202d4puhb_id bfcc0e45c8200202d4puhb
setstate tuya_system 2022-04-26 20:16:27 bfcc0e45c8200202d4puhb_ip offline
setstate tuya_system 2022-04-26 20:15:36 bfcc0e45c8200202d4puhb_localkey 3795eb5db5719fe1
setstate tuya_system 2022-04-26 20:15:36 bfcc0e45c8200202d4puhb_name Set-top Box
setstate tuya_system 2022-04-26 20:15:36 bfcc0e45c8200202d4puhb_productid 000000ac36
setstate tuya_system 2022-04-26 20:15:36 bfe3654e51aeecf866puer_icon https://images.tuyaeu.com/smart/icon/ay1523512777050bLIId/f2360f527259e6e8662cb351095cd056.jpg
setstate tuya_system 2022-04-26 20:15:36 bfe3654e51aeecf866puer_id bfe3654e51aeecf866puer
setstate tuya_system 2022-04-26 20:16:27 bfe3654e51aeecf866puer_ip offline
setstate tuya_system 2022-04-26 20:15:36 bfe3654e51aeecf866puer_localkey 35daa79d7719990e
setstate tuya_system 2022-04-26 20:15:36 bfe3654e51aeecf866puer_name HY368RT Zigbee
setstate tuya_system 2022-04-26 20:15:36 bfe3654e51aeecf866puer_productid cwnjrr72
setstate tuya_system 2022-04-26 21:16:33 state 1 devices found localy


Logfile:
2022-04-26 20:45:57,195 - WARNING  - ring_doorbell.doorbot: Your Ring account does not have an active subscription.
2022-04-26 20:45:57,250 - ERROR    - RingDoorBell: Failed to update readings, please report here: https://forum.fhem.de/index.php/topic,117381
Traceback (most recent call last):
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 276, in update_readings
    await self.update_if_available("existing_doorbell_type")
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 312, in update_if_available
    if hasattr(self._rdevice, reading):
  File "/home/fhem/.local/lib/python3.8/site-packages/ring_doorbell/doorbot.py", line 138, in existing_doorbell_type
    return DOORBELL_EXISTING_TYPE[
KeyError: 5
2022-04-26 20:50:58,984 - WARNING  - ring_doorbell.doorbot: Your Ring account does not have an active subscription.
2022-04-26 20:50:59,039 - ERROR    - RingDoorBell: Failed to update readings, please report here: https://forum.fhem.de/index.php/topic,117381
Traceback (most recent call last):
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 276, in update_readings
    await self.update_if_available("existing_doorbell_type")
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 312, in update_if_available
    if hasattr(self._rdevice, reading):
  File "/home/fhem/.local/lib/python3.8/site-packages/ring_doorbell/doorbot.py", line 138, in existing_doorbell_type
    return DOORBELL_EXISTING_TYPE[
KeyError: 5
2022-04-26 20:56:00,772 - WARNING  - ring_doorbell.doorbot: Your Ring account does not have an active subscription.
2022-04-26 20:56:00,828 - ERROR    - RingDoorBell: Failed to update readings, please report here: https://forum.fhem.de/index.php/topic,117381
Traceback (most recent call last):
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 276, in update_readings
    await self.update_if_available("existing_doorbell_type")
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 312, in update_if_available
    if hasattr(self._rdevice, reading):
  File "/home/fhem/.local/lib/python3.8/site-packages/ring_doorbell/doorbot.py", line 138, in existing_doorbell_type
    return DOORBELL_EXISTING_TYPE[
KeyError: 5
2022-04-26 21:01:02,566 - WARNING  - ring_doorbell.doorbot: Your Ring account does not have an active subscription.
2022-04-26 21:01:02,621 - ERROR    - RingDoorBell: Failed to update readings, please report here: https://forum.fhem.de/index.php/topic,117381
Traceback (most recent call last):
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 276, in update_readings
    await self.update_if_available("existing_doorbell_type")
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 312, in update_if_available
    if hasattr(self._rdevice, reading):
  File "/home/fhem/.local/lib/python3.8/site-packages/ring_doorbell/doorbot.py", line 138, in existing_doorbell_type
    return DOORBELL_EXISTING_TYPE[
KeyError: 5
2022-04-26 21:06:04,417 - WARNING  - ring_doorbell.doorbot: Your Ring account does not have an active subscription.
2022-04-26 21:06:04,473 - ERROR    - RingDoorBell: Failed to update readings, please report here: https://forum.fhem.de/index.php/topic,117381
Traceback (most recent call last):
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 276, in update_readings
    await self.update_if_available("existing_doorbell_type")
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 312, in update_if_available
    if hasattr(self._rdevice, reading):
  File "/home/fhem/.local/lib/python3.8/site-packages/ring_doorbell/doorbot.py", line 138, in existing_doorbell_type
    return DOORBELL_EXISTING_TYPE[
KeyError: 5
2022-04-26 21:10:31,688 - ERROR    - fhempy.lib.fhem_pythonbinding: Failed to execute function Set: Traceback (most recent call last):
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 255, in handle_function
    ret = await self.execute_function(hash, fhem_reply_done, nmInstance)
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 326, in execute_function
    ret = await asyncio.wait_for(
  File "/usr/lib/python3.8/asyncio/tasks.py", line 494, in wait_for
    return fut.result()
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/generic.py", line 173, in Set
    return await utils.handle_set(self._conf_set, self, hash, args, argsh)
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/utils.py", line 282, in handle_set
    return await fct_call(hash, final_params)
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/tuya/tuya.py", line 210, in set_create_device
    if nameid == dev["name_esc"] + "_" + dev["id"]:
KeyError: 'id'
(id: 4668725)
2022-04-26 21:11:06,231 - WARNING  - ring_doorbell.doorbot: Your Ring account does not have an active subscription.
2022-04-26 21:11:06,288 - ERROR    - RingDoorBell: Failed to update readings, please report here: https://forum.fhem.de/index.php/topic,117381
Traceback (most recent call last):
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 276, in update_readings
    await self.update_if_available("existing_doorbell_type")
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 312, in update_if_available
    if hasattr(self._rdevice, reading):
  File "/home/fhem/.local/lib/python3.8/site-packages/ring_doorbell/doorbot.py", line 138, in existing_doorbell_type
    return DOORBELL_EXISTING_TYPE[
KeyError: 5
2022-04-26 21:12:07,737 - INFO     - fhempy.lib.pkg_installer: Attempting install of fhempy
2022-04-26 21:12:12,872 - INFO     - fhempy.lib.pkg_installer: Successfully installed fhempy update!
2022-04-26 21:12:13,275 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy...
2022-04-26 21:12:13,280 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2022-04-26 21:12:13,305 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2022-04-26 21:12:22,948 - INFO     - websockets.server: connection open
2022-04-26 21:12:22,949 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2022-04-26 21:12:24,171 - WARNING  - asyncio: Executing <Task finished name='Task-30' coro=<tuya.Define() done, defined at /home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/tuya/tuya.py:27> result=None created at /usr/lib/python3.8/asyncio/tasks.py:475> took 0.211 seconds
2022-04-26 21:12:25,078 - ERROR    - RingDoorBell: Failed to update readings, please report here: https://forum.fhem.de/index.php/topic,117381
Traceback (most recent call last):
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 276, in update_readings
    await self.update_if_available("existing_doorbell_type")
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 312, in update_if_available
    if hasattr(self._rdevice, reading):
  File "/home/fhem/.local/lib/python3.8/site-packages/ring_doorbell/doorbot.py", line 138, in existing_doorbell_type
    return DOORBELL_EXISTING_TYPE[
KeyError: 5
2022-04-26 21:12:26,023 - WARNING  - ring_doorbell.doorbot: Your Ring account does not have an active subscription.
2022-04-26 21:12:26,134 - ERROR    - RingDoorBell: Failed to update readings, please report here: https://forum.fhem.de/index.php/topic,117381
Traceback (most recent call last):
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 276, in update_readings
    await self.update_if_available("existing_doorbell_type")
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 312, in update_if_available
    if hasattr(self._rdevice, reading):
  File "/home/fhem/.local/lib/python3.8/site-packages/ring_doorbell/doorbot.py", line 138, in existing_doorbell_type
    return DOORBELL_EXISTING_TYPE[
KeyError: 5
2022-04-26 21:12:36,707 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy...
2022-04-26 21:12:36,724 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2022-04-26 21:12:36,774 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2022-04-26 21:12:41,081 - INFO     - websockets.server: connection open
2022-04-26 21:12:41,082 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2022-04-26 21:12:42,227 - WARNING  - asyncio: Executing <Task finished name='Task-34' coro=<tuya.Define() done, defined at /home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/tuya/tuya.py:27> result=None created at /usr/lib/python3.8/asyncio/tasks.py:475> took 0.173 seconds
2022-04-26 21:12:43,089 - ERROR    - RingDoorBell: Failed to update readings, please report here: https://forum.fhem.de/index.php/topic,117381
Traceback (most recent call last):
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 276, in update_readings
    await self.update_if_available("existing_doorbell_type")
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 312, in update_if_available
    if hasattr(self._rdevice, reading):
  File "/home/fhem/.local/lib/python3.8/site-packages/ring_doorbell/doorbot.py", line 138, in existing_doorbell_type
    return DOORBELL_EXISTING_TYPE[
KeyError: 5
2022-04-26 21:12:44,047 - WARNING  - ring_doorbell.doorbot: Your Ring account does not have an active subscription.
2022-04-26 21:12:44,100 - ERROR    - RingDoorBell: Failed to update readings, please report here: https://forum.fhem.de/index.php/topic,117381
Traceback (most recent call last):
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 276, in update_readings
    await self.update_if_available("existing_doorbell_type")
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 312, in update_if_available
    if hasattr(self._rdevice, reading):
  File "/home/fhem/.local/lib/python3.8/site-packages/ring_doorbell/doorbot.py", line 138, in existing_doorbell_type
    return DOORBELL_EXISTING_TYPE[
KeyError: 5
2022-04-26 21:14:21,197 - ERROR    - fhempy.lib.fhem_pythonbinding: Failed to execute function Set: Traceback (most recent call last):
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 255, in handle_function
    ret = await self.execute_function(hash, fhem_reply_done, nmInstance)
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 326, in execute_function
    ret = await asyncio.wait_for(
  File "/usr/lib/python3.8/asyncio/tasks.py", line 494, in wait_for
    return fut.result()
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/generic.py", line 173, in Set
    return await utils.handle_set(self._conf_set, self, hash, args, argsh)
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/utils.py", line 282, in handle_set
    return await fct_call(hash, final_params)
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/tuya/tuya.py", line 210, in set_create_device
    if nameid == dev["name_esc"] + "_" + dev["id"]:
KeyError: 'id'
(id: 62115870)
2022-04-26 21:16:43,129 - ERROR    - fhempy.lib.fhem_pythonbinding: Failed to execute function Set: Traceback (most recent call last):
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 255, in handle_function
    ret = await self.execute_function(hash, fhem_reply_done, nmInstance)
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 326, in execute_function
    ret = await asyncio.wait_for(
  File "/usr/lib/python3.8/asyncio/tasks.py", line 494, in wait_for
    return fut.result()
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/generic.py", line 173, in Set
    return await utils.handle_set(self._conf_set, self, hash, args, argsh)
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/utils.py", line 282, in handle_set
    return await fct_call(hash, final_params)
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/tuya/tuya.py", line 210, in set_create_device
    if nameid == dev["name_esc"] + "_" + dev["id"]:
KeyError: 'id'
(id: 88114945)
2022-04-26 21:17:46,228 - WARNING  - ring_doorbell.doorbot: Your Ring account does not have an active subscription.
2022-04-26 21:17:46,306 - ERROR    - RingDoorBell: Failed to update readings, please report here: https://forum.fhem.de/index.php/topic,117381
Traceback (most recent call last):
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 276, in update_readings
    await self.update_if_available("existing_doorbell_type")
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 312, in update_if_available
    if hasattr(self._rdevice, reading):
  File "/home/fhem/.local/lib/python3.8/site-packages/ring_doorbell/doorbot.py", line 138, in existing_doorbell_type
    return DOORBELL_EXISTING_TYPE[
KeyError: 5
2022-04-26 21:17:46,343 - ERROR    - RingDoorBell: Failed to poll dings...
Traceback (most recent call last):
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 176, in update_dings_loop_thread
    alerts = self._ring.active_alerts()
  File "/home/fhem/.local/lib/python3.8/site-packages/ring_doorbell/__init__.py", line 140, in active_alerts
    for alert in self.dings_data:
TypeError: 'NoneType' object is not iterable
2022-04-26 21:18:22,371 - ERROR    - fhempy.lib.fhem_pythonbinding: Failed to execute function Set: Traceback (most recent call last):
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 255, in handle_function
    ret = await self.execute_function(hash, fhem_reply_done, nmInstance)
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 326, in execute_function
    ret = await asyncio.wait_for(
  File "/usr/lib/python3.8/asyncio/tasks.py", line 494, in wait_for
    return fut.result()
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/generic.py", line 173, in Set
    return await utils.handle_set(self._conf_set, self, hash, args, argsh)
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/utils.py", line 282, in handle_set
    return await fct_call(hash, final_params)
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/tuya/tuya.py", line 210, in set_create_device
    if nameid == dev["name_esc"] + "_" + dev["id"]:
KeyError: 'id'
(id: 83984081)
2022-04-26 21:21:19,901 - ERROR    - fhempy.lib.fhem_pythonbinding: Failed to execute function Set: Traceback (most recent call last):
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 255, in handle_function
    ret = await self.execute_function(hash, fhem_reply_done, nmInstance)
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 326, in execute_function
    ret = await asyncio.wait_for(
  File "/usr/lib/python3.8/asyncio/tasks.py", line 494, in wait_for
    return fut.result()
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/generic.py", line 173, in Set
    return await utils.handle_set(self._conf_set, self, hash, args, argsh)
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/utils.py", line 282, in handle_set
    return await fct_call(hash, final_params)
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/tuya/tuya.py", line 210, in set_create_device
    if nameid == dev["name_esc"] + "_" + dev["id"]:
KeyError: 'id'
(id: 62891581)
2022-04-26 21:22:48,183 - WARNING  - ring_doorbell.doorbot: Your Ring account does not have an active subscription.
2022-04-26 21:22:48,241 - ERROR    - RingDoorBell: Failed to update readings, please report here: https://forum.fhem.de/index.php/topic,117381
Traceback (most recent call last):
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 276, in update_readings
    await self.update_if_available("existing_doorbell_type")
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 312, in update_if_available
    if hasattr(self._rdevice, reading):
  File "/home/fhem/.local/lib/python3.8/site-packages/ring_doorbell/doorbot.py", line 138, in existing_doorbell_type
    return DOORBELL_EXISTING_TYPE[
KeyError: 5


Fehlermeldung:
Failed to execute function Set: Traceback (most recent call last):
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 255, in handle_function
    ret = await self.execute_function(hash, fhem_reply_done, nmInstance)
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 326, in execute_function
    ret = await asyncio.wait_for(
  File "/usr/lib/python3.8/asyncio/tasks.py", line 494, in wait_for
    return fut.result()
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/generic.py", line 173, in Set
    return await utils.handle_set(self._conf_set, self, hash, args, argsh)
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/utils.py", line 282, in handle_set
    return await fct_call(hash, final_params)
  File "/home/fhem/.local/lib/python3.8/site-packages/fhempy/lib/tuya/tuya.py", line 210, in set_create_device
    if nameid == dev["name_esc"] + "_" + dev["id"]:
KeyError: 'id'

dominik

Danke für die Logs!

Fehler ist behoben und sollte mit 0.1.293 funktionieren.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

MiKn

Zitat von: dominik am 26 April 2022, 22:15:00
Danke für die Logs!

Fehler ist behoben und sollte mit 0.1.293 funktionieren.

Sehr gerne!

Fehler behoben. Es werden beim Scan 11 Geräte gefunden, aber ich kann nur das Multi_Mode_Gateway anlegen. Die anderen Geräte sind alle als Oflline gekennzeichnet und nur als Reading unter tuya_system zu sehen.

defmod tuya_system fhempy tuya setup x1 y2 z3

setstate tuya_system 1 devices found localy
setstate tuya_system 2022-04-26 22:57:04 bf026b88d79da17609afuy_icon https://images.tuyaeu.com/smart/icon/ay1555059089863sMgqv/4c20ba802ef497cb51ab4fa933518ed6.png
setstate tuya_system 2022-04-26 22:57:04 bf026b88d79da17609afuy_id bf026b88d79da17609afuy
setstate tuya_system 2022-04-26 22:57:56 bf026b88d79da17609afuy_ip offline
setstate tuya_system 2022-04-26 22:57:04 bf026b88d79da17609afuy_localkey 35daa79d7719990e
setstate tuya_system 2022-04-26 22:57:04 bf026b88d79da17609afuy_name Wireless Switch  2
setstate tuya_system 2022-04-26 22:57:04 bf026b88d79da17609afuy_productid eg9bol3v
setstate tuya_system 2022-04-26 22:57:04 bf259133001a731855apjh_icon https://images.tuyaeu.com/smart/icon/ay1468288548509686pw/a6150ff03eec4554fe10fcf0f5db016f.png
setstate tuya_system 2022-04-26 22:57:04 bf259133001a731855apjh_id bf259133001a731855apjh
setstate tuya_system 2022-04-26 22:57:56 bf259133001a731855apjh_ip offline
setstate tuya_system 2022-04-26 22:57:04 bf259133001a731855apjh_localkey 35daa79d7719990e
setstate tuya_system 2022-04-26 22:57:04 bf259133001a731855apjh_name Szenenschalter
setstate tuya_system 2022-04-26 22:57:04 bf259133001a731855apjh_productid axpdxqgu
setstate tuya_system 2022-04-26 22:57:04 bf327f76aacfe9bea9sgid_icon https://images.tuyaeu.com/smart/icon/ay15550606765900nC10/0379c639a05f5ab771126816d45c9ece.png
setstate tuya_system 2022-04-26 22:57:04 bf327f76aacfe9bea9sgid_id bf327f76aacfe9bea9sgid
setstate tuya_system 2022-04-26 22:57:56 bf327f76aacfe9bea9sgid_ip offline
setstate tuya_system 2022-04-26 22:57:04 bf327f76aacfe9bea9sgid_localkey 3795eb5db5719fe1
setstate tuya_system 2022-04-26 22:57:04 bf327f76aacfe9bea9sgid_name Other
setstate tuya_system 2022-04-26 22:57:04 bf327f76aacfe9bea9sgid_productid nmpejc607a8u1cim
setstate tuya_system 2022-04-26 22:57:04 bf3e7723e71e2f0bf5crga_icon https://images.tuyaeu.com/smart/icon/ay1528101790270lcTle/1c0e8abe197ca4e3b4556d10495326c4.png
setstate tuya_system 2022-04-26 22:57:04 bf3e7723e71e2f0bf5crga_id bf3e7723e71e2f0bf5crga
setstate tuya_system 2022-04-26 22:57:56 bf3e7723e71e2f0bf5crga_ip offline
setstate tuya_system 2022-04-26 22:57:04 bf3e7723e71e2f0bf5crga_localkey 35daa79d7719990e
setstate tuya_system 2022-04-26 22:57:04 bf3e7723e71e2f0bf5crga_name Filament bulb
setstate tuya_system 2022-04-26 22:57:04 bf3e7723e71e2f0bf5crga_productid zfbj19qm
setstate tuya_system 2022-04-26 22:57:04 bf4e7302b54b31e7e5iawx_icon https://images.tuyaeu.com/smart/icon/bay1590985471642quoi/7bf56ec7badbc505eec2356669a293ca.jpg
setstate tuya_system 2022-04-26 22:57:04 bf4e7302b54b31e7e5iawx_id bf4e7302b54b31e7e5iawx
setstate tuya_system 2022-04-26 22:57:56 bf4e7302b54b31e7e5iawx_ip offline
setstate tuya_system 2022-04-26 22:57:04 bf4e7302b54b31e7e5iawx_localkey 35daa79d7719990e
setstate tuya_system 2022-04-26 22:57:04 bf4e7302b54b31e7e5iawx_name Thermostat Valve
setstate tuya_system 2022-04-26 22:57:04 bf4e7302b54b31e7e5iawx_productid b6wax7g0
setstate tuya_system 2022-04-26 22:57:03 bf5918ac10bc804aadgoza_icon https://images.tuyaeu.com/smart/icon/ay15327721968035jwx9/b1db85c4c19fa20be8b8968868e2f859.png
setstate tuya_system 2022-04-26 22:57:03 bf5918ac10bc804aadgoza_id bf5918ac10bc804aadgoza
setstate tuya_system 2022-04-26 22:57:56 bf5918ac10bc804aadgoza_ip offline
setstate tuya_system 2022-04-26 22:57:03 bf5918ac10bc804aadgoza_localkey 35daa79d7719990e
setstate tuya_system 2022-04-26 22:57:03 bf5918ac10bc804aadgoza_name Dimmer Wohnzimmer
setstate tuya_system 2022-04-26 22:57:03 bf5918ac10bc804aadgoza_productid fjjbhx9d
setstate tuya_system 2022-04-26 22:57:04 bf71189d140ea394dfishb_icon https://images.tuyaeu.com/smart/icon/ay1534490862266NApJD/e7203743227d4bf6f93443ca7d45ae04.png
setstate tuya_system 2022-04-26 22:57:04 bf71189d140ea394dfishb_id bf71189d140ea394dfishb
setstate tuya_system 2022-04-26 22:57:56 bf71189d140ea394dfishb_ip 192.168.1.80
setstate tuya_system 2022-04-26 22:57:04 bf71189d140ea394dfishb_localkey 35daa79d7719990e
setstate tuya_system 2022-04-26 22:57:04 bf71189d140ea394dfishb_name Multi Mode Gateway
setstate tuya_system 2022-04-26 22:57:04 bf71189d140ea394dfishb_productid rm7ec3fg
setstate tuya_system 2022-04-26 22:57:56 bf71189d140ea394dfishb_version 3.3
setstate tuya_system 2022-04-26 22:57:04 bf9a2d0837b2c754c8f1qf_icon https://images.tuyaeu.com/smart/icon/bay16152549642749hEX/e693b723a191a2f8bf0f4d05d731ea62.png
setstate tuya_system 2022-04-26 22:57:04 bf9a2d0837b2c754c8f1qf_id bf9a2d0837b2c754c8f1qf
setstate tuya_system 2022-04-26 22:57:56 bf9a2d0837b2c754c8f1qf_ip offline
setstate tuya_system 2022-04-26 22:57:04 bf9a2d0837b2c754c8f1qf_localkey 3795eb5db5719fe1
setstate tuya_system 2022-04-26 22:57:04 bf9a2d0837b2c754c8f1qf_name USB RF IR
setstate tuya_system 2022-04-26 22:57:04 bf9a2d0837b2c754c8f1qf_productid pwla5warkrwbza0m
setstate tuya_system 2022-04-26 22:57:04 bfc6fc95442d988644evzt_icon https://images.tuyaeu.com/smart/icon/ay1555059089863sMgqv/4c20ba802ef497cb51ab4fa933518ed6.png
setstate tuya_system 2022-04-26 22:57:04 bfc6fc95442d988644evzt_id bfc6fc95442d988644evzt
setstate tuya_system 2022-04-26 22:57:56 bfc6fc95442d988644evzt_ip offline
setstate tuya_system 2022-04-26 22:57:04 bfc6fc95442d988644evzt_localkey 35daa79d7719990e
setstate tuya_system 2022-04-26 22:57:04 bfc6fc95442d988644evzt_name Wireless Switch
setstate tuya_system 2022-04-26 22:57:04 bfc6fc95442d988644evzt_productid eg9bol3v
setstate tuya_system 2022-04-26 22:57:04 bfcc0e45c8200202d4puhb_icon https://images.tuyaeu.com/smart/ir/icon/9kndaqkry6f4.png
setstate tuya_system 2022-04-26 22:57:04 bfcc0e45c8200202d4puhb_id bfcc0e45c8200202d4puhb
setstate tuya_system 2022-04-26 22:57:56 bfcc0e45c8200202d4puhb_ip offline
setstate tuya_system 2022-04-26 22:57:04 bfcc0e45c8200202d4puhb_localkey 3795eb5db5719fe1
setstate tuya_system 2022-04-26 22:57:04 bfcc0e45c8200202d4puhb_name Set-top Box
setstate tuya_system 2022-04-26 22:57:04 bfcc0e45c8200202d4puhb_productid 000000ac36
setstate tuya_system 2022-04-26 22:57:04 bfe3654e51aeecf866puer_icon https://images.tuyaeu.com/smart/icon/ay1523512777050bLIId/f2360f527259e6e8662cb351095cd056.jpg
setstate tuya_system 2022-04-26 22:57:04 bfe3654e51aeecf866puer_id bfe3654e51aeecf866puer
setstate tuya_system 2022-04-26 22:57:56 bfe3654e51aeecf866puer_ip offline
setstate tuya_system 2022-04-26 22:57:04 bfe3654e51aeecf866puer_localkey 35daa79d7719990e
setstate tuya_system 2022-04-26 22:57:04 bfe3654e51aeecf866puer_name HY368RT Zigbee
setstate tuya_system 2022-04-26 22:57:04 bfe3654e51aeecf866puer_productid cwnjrr72
setstate tuya_system 2022-04-26 22:57:56 state 1 devices found localy


dominik

Hast du eine spezielle Netzwerkkonfiguration? Oder auf dem FHEM Host eine Firewall? Die Ports 6666 und 6667 via UDP müssen freigeschaltet sein.

Falls der Scan die Devices dennoch nicht findet, kannst du diese auch manuell anlegen:

define wifi_plug fhempy tuya api DEVICE_ID IP LOCAL_KEY VERSION API_KEY API_SECRET
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

dominik

Achso, das habe ich vergessen zu schreiben, dies ist NUR für WiFi Geräte. ZigBee Geräte muss man über Zigbee2mqtt einbinden wenn man sie lokal steuern will.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

MiKn

Zitat von: dominik am 26 April 2022, 23:14:44
Achso, das habe ich vergessen zu schreiben, dies ist NUR für WiFi Geräte. ZigBee Geräte muss man über Zigbee2mqtt einbinden wenn man sie lokal steuern will.

achso, das wußte ich nicht, na dann bleibe ich erstmal bei der tuya_Cloud Variante solange mein Dimmer nicht in Zigbee2mqtt integriert ist.

Danke!

darthi

Danke funktioniert mit meinem Robi super!

thburkhart

#8
Zitat von: dominik am 26 April 2022, 19:12:25
Hallo,

ich habe soeben die lokale Steuerung von Tuya umgebaut damit man lokal Updates der Devices sofort erhält. Dies sollte stabiler als die tuya_cloud Variante funktionieren, da dort die Server immer wieder Probleme machten.
Generell funktioniert das für alle Tuya Devices, egal ob Parkside, LSC, usw.. Also alles was auch in der SmartLife App funktioniert.

Einrichtung:

1. fhempy installieren
https://github.com/dominikkarall/fhempy#installation

2. tuya einrichten
https://github.com/dominikkarall/fhempy/blob/master/FHEM/bindings/python/fhempy/lib/tuya/README.md

Warum muss dabei auch der Cloud Zugang eingerichtet werden?
Über die Cloud wird einmalig die Konfiguration des Devices heruntergeladen, damit man weiß wie die lokalen Daten zu interpretieren sind. Danach werden keine Commands mehr von fhempy an die Tuya Cloud geschickt.

Dieses Modul ist ausschließlich für TuYa WiFi Devices geeignet. TuYa ZigBee Devices kann man über tuya_cloud oder Zigbee2mqtt (lokal) einbinden.


hmm, wo liegt denn da der Unterschied zur Cloud-Version?


ich habe bislang:

define tuya_cloud_connector PythonModule tuya_cloud setup ea8453wdazquzfl08l0e 8a4b27dd759d4c6a9xxxxxxxx456aa8155d2a0ea xxxxxxxx@gmx.net xxxxxxxx smartlife Europe



neue DEF ist:
define tuya_system fhempy tuya setup API_KEY API_SECRET DEVICE_ID
set tuya_system start_scan


wie steige ich von Cloud um ?

ich ersetze einfach
"tuya_cloud_connector"   durch "tuya_system"

"PythonModule tuya_cloud" durch "fhempy tuya"?

oder nur "tuya_cloud" durch "tuya"?

Ich habe ja ca. 80 Defines wie diese:

## TUYA temphum ########################################################################################################

define Temp1 PythonModule tuya_cloud tuya_cloud_connector bf4ae6b15fe239b42bxvpl
setuuid Temp1 625f01ef-f33f-fd5f-eb72-266acf996be40377
attr Temp1 alias Temperatur Terrasse
attr Temp1 group TempHum
attr Temp1 room TUYA TempHum
attr Temp1 userReadings Temp: temperature [C] Hum: humidity [%]

define SVG_Temp1 SVG dblog_THB:THB_temp-hum_db_tuya:HISTORY
setuuid SVG_Temp1 625f06fd-f33f-fd5f-c62e-7cd09a6ce7def42d
attr SVG_Temp1 alias Temp1 Aussen Terrasse Tuya heute
attr SVG_Temp1 fixedrange day
attr SVG_Temp1 group TemperaturAussen
attr SVG_Temp1 label " Temp- min: $data{min1}, max: $data{max1}, last: $data{currval1}"
attr SVG_Temp1 plotfunction Temp1
attr SVG_Temp1 room Temperaturen Aussen,Terrasse
attr SVG_Temp1 title "Terrasse Tuya1 heute"



Sehe ich richtig, dass ich einmalig noch den bestehenden Cloud-zugang zur Autorisierung verwende, solange diese noch aktiv ist und nicht 25.000$ im Jahr kostet?
1 RASPI4B, 1 RASPI3B, 2 CUL, 2 Jeelink, 60 Tuya-Devices (Schalter, Dimmer, Sensoren, Cameras), 30 HUE-Lampen, 5 MAX! WTs, 16 MAX! HTs, 12 MAX! FKs, 1 Bresser 5in1, 1 OilFox, 8 ALEXA Echos und Dots, FHEM, 5 Tasmota-Devices, SonOff -Bridge, PowerFox, Buderus KM200

dominik

Der Cloud Zugang bei diesem Plugin dient nur dafür, dass man die Spezifikation der einzelnen Datenpunkte (DPs) erhält.

Du kannst deine tuya_cloud Devices sogar parallel dazu nutzen. Daher einfach das hier anlegen:
define tuya_system fhempy tuya setup API_KEY API_SECRET DEVICE_ID
set tuya_system start_scan


Du kannst dann die einzelnen Devices über das set create_device Command anlegen.
Wenn dann alles funktioniert, kannst du die tuya_cloud Devices löschen.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

thburkhart

wenn ich also später ein weiteres Device anlerne, muss ich dann wieder Zugang zur Cloud haben?
1 RASPI4B, 1 RASPI3B, 2 CUL, 2 Jeelink, 60 Tuya-Devices (Schalter, Dimmer, Sensoren, Cameras), 30 HUE-Lampen, 5 MAX! WTs, 16 MAX! HTs, 12 MAX! FKs, 1 Bresser 5in1, 1 OilFox, 8 ALEXA Echos und Dots, FHEM, 5 Tasmota-Devices, SonOff -Bridge, PowerFox, Buderus KM200

dominik

Ja, es wäre vorteilhaft. Du kannst es auch komplett ohne Cloud nutzen, dann musst du aber die Attribute tuya_functions_spec und tuya_status_spec selbst manuell setzen.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

satprofi

#12
Zitat von: dominik am 30 April 2022, 20:38:47
Der Cloud Zugang bei diesem Plugin dient nur dafür, dass man die Spezifikation der einzelnen Datenpunkte (DPs) erhält.

Du kannst deine tuya_cloud Devices sogar parallel dazu nutzen. Daher einfach das hier anlegen:
define tuya_system fhempy tuya setup API_KEY API_SECRET DEVICE_ID
set tuya_system start_scan


Du kannst dann die einzelnen Devices über das set create_device Command anlegen.
Wenn dann alles funktioniert, kannst du die tuya_cloud Devices löschen.

so, habe es parallel am laufen, 1 gerät erfolgreich eingebunden.

DEVICEID   0
   FHEMPYTYPE tuya
   FUUID      626e3fab-f33f-6462-c95c-8eb14102c2232e33
   IODev      local_pybinding
   NAME       tuya_system
   NR         2714
   PYTHONTYPE tuya
   REGION     eu
   STATE      ready
   TYPE       fhempy
   READINGS:
     2022-05-01 10:07:34   state           ready
   args:
     tuya_system
     fhempy
     tuya
     setup
     xxxxxxxxx
     xxxxxxxxx
     Gang_oben_bfb727311ed41a0cc8ycsq
   argsh:
Attributes:
   group      tuya
   room       CUL_fhempy


das device ist aber immer noch nur mit tuya_cloud verbunden. mit set tuya_system scan_devices tut sich nichts.
muss ich jedes device jetzt manuell anlegen?


komme mit dem punkt nicht klar -> Open "API Groups" on the tuya portal  , wo finde ich den am portal?
gruss
-----------------------------------------------------------------------
beelink miniPC - Fhem 6.x CUL 868, FS20, NetIO230 CUL 433
HMLAN, HM-CC-RT-DN,Homematic Actoren,LD382A,Telegram

dominik

Bitte deine Credentials (API Key/Secret) beim Posten entfernen!

Der Scan tut nichts? Ändert sich state beim Scan? Oder ist was im fhempy Log zu sehen?
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

satprofi

Das kommt nach restart

2022-05-01 10:56:27,816 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy...
2022-05-01 10:56:27,829 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2022-05-01 10:56:27,986 - WARNING  - asyncio: Executing <Task pending name='Task-1' coro=<async_main() running at /opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/fhem_pythonbinding.py:456> wait_for=<_GatheringFuture pending cb=[<TaskWakeupMethWrapper object at 0x75c32760>()] created at /usr/lib/python3.9/asyncio/tasks.py:704> cb=[_run_until_complete_cb() at /usr/lib/python3.9/asyncio/base_events.py:184] created at /usr/lib/python3.9/asyncio/base_events.py:621> took 0.169 seconds
2022-05-01 10:56:27,993 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2022-05-01 10:56:38,835 - INFO     - websockets.server: connection open
2022-05-01 10:56:38,841 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2022-05-01 10:56:47,357 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy...
2022-05-01 10:56:47,374 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2022-05-01 10:56:47,549 - WARNING  - asyncio: Executing <Task pending name='Task-1' coro=<async_main() running at /opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/fhem_pythonbinding.py:456> wait_for=<_GatheringFuture pending cb=[<TaskWakeupMethWrapper object at 0x75b62760>()] created at /usr/lib/python3.9/asyncio/tasks.py:704> cb=[_run_until_complete_cb() at /usr/lib/python3.9/asyncio/base_events.py:184] created at /usr/lib/python3.9/asyncio/base_events.py:621> took 0.192 seconds
2022-05-01 10:56:47,557 - INFO     - websockets.server: server listening on 0.0.0.0:15733


bei set scan tut sich nichts....
gruss
-----------------------------------------------------------------------
beelink miniPC - Fhem 6.x CUL 868, FS20, NetIO230 CUL 433
HMLAN, HM-CC-RT-DN,Homematic Actoren,LD382A,Telegram