fhempy: Tuya Cloud

Begonnen von dominik, 30 Juli 2021, 21:36:48

Vorheriges Thema - Nächstes Thema

juergen012

bei mir auch.. nach restart wieder in Ordnung..

Beste Grüße
Jürgen K.
Fhem unter Proxmox

dominik

Ist im fhempy Log etwas zu sehen? Z.B. was der letzte Event war?
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

dominik

Zitat von: barneybaer am 26 August 2021, 09:51:09
Jap das passt. Nun müsste noch der colorpicker für colour_data_v2 integriert werden.

Bitte mal testen ob der colorpicker funktioniert. Ich habe diesen mal eingebaut, kann ihn aber selbst nicht testen.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Sommerfeld

Hallo Dominik,

Zitat@Sommerfeld,
auch nach einem Neustart hast du das Problem?

Nach Neustart werden die Readings einmalig aktualisiert, dann nicht mehr.

Beste Grüße

dominik

Wie sieht's im Log aus? Kommt eine Fehlermeldung?
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Sommerfeld

Nein, keine Fehlermeldungen

dominik

Vielleicht auch eine Firewall aktiv oder so? Poste mal ein Log mit verbose 5 vom Device. Bitte die Credentials raus löschen aus dem Log vorm Posten.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Sommerfeld

Firewall nein, bei Neustart werden die Daten immer aktualisiert.
2021-08-26_11:47:11 Steckdosenleiste_20176841c4dd571d699b off
2021-08-26_11:48:15 Steckdosenleiste_20176841c4dd571d699b on
2021-08-26_11:48:29 Steckdosenleiste_20176841c4dd571d699b off
2021-08-26_19:59:44 Steckdosenleiste_20176841c4dd571d699b on
2021-08-26_19:59:55 Steckdosenleiste_20176841c4dd571d699b off
2021-08-26_20:02:40 Steckdosenleiste_20176841c4dd571d699b ready
2021-08-26_20:02:46 Steckdosenleiste_20176841c4dd571d699b active_time: 1620129556
2021-08-26_20:02:46 Steckdosenleiste_20176841c4dd571d699b biz_type: 0
2021-08-26_20:02:46 Steckdosenleiste_20176841c4dd571d699b category: cz
2021-08-26_20:02:46 Steckdosenleiste_20176841c4dd571d699b create_time: 1620129285
2021-08-26_20:02:46 Steckdosenleiste_20176841c4dd571d699b icon: https://images.tuyaeu.com/smart/icon/ay1519800722250B425i/1560222411c64286ea14a.jpg
2021-08-26_20:02:46 Steckdosenleiste_20176841c4dd571d699b id: xxxxxxxxxxxx
2021-08-26_20:02:46 Steckdosenleiste_20176841c4dd571d699b ip: xxxxxxxxxxxx
2021-08-26_20:02:46 Steckdosenleiste_20176841c4dd571d699b lat: xxxxxxxxxxx
2021-08-26_20:02:46 Steckdosenleiste_20176841c4dd571d699b local_key: xxxxxxxxxxx
2021-08-26_20:02:46 Steckdosenleiste_20176841c4dd571d699b lon: xxxxxxxxxx
2021-08-26_20:02:46 Steckdosenleiste_20176841c4dd571d699b model: 402A
2021-08-26_20:02:46 Steckdosenleiste_20176841c4dd571d699b name: Steckdosenleiste
2021-08-26_20:02:46 Steckdosenleiste_20176841c4dd571d699b online: on
2021-08-26_20:02:46 Steckdosenleiste_20176841c4dd571d699b owner_id: 15487476
2021-08-26_20:02:46 Steckdosenleiste_20176841c4dd571d699b product_id: okiuzzuwarvjos4a
2021-08-26_20:02:46 Steckdosenleiste_20176841c4dd571d699b product_name: Smart Socket
2021-08-26_20:02:46 Steckdosenleiste_20176841c4dd571d699b sub: off
2021-08-26_20:02:46 Steckdosenleiste_20176841c4dd571d699b time_zone: +01:00
2021-08-26_20:02:46 Steckdosenleiste_20176841c4dd571d699b uid: eu1598817427882BAzmt
2021-08-26_20:02:46 Steckdosenleiste_20176841c4dd571d699b update_time: 1629968906
2021-08-26_20:02:46 Steckdosenleiste_20176841c4dd571d699b uuid: 20176841c4dd571d699b
2021-08-26_20:02:48 Steckdosenleiste_20176841c4dd571d699b off
2021-08-26_20:02:48 Steckdosenleiste_20176841c4dd571d699b switch_2: off
2021-08-26_20:02:48 Steckdosenleiste_20176841c4dd571d699b switch_3: off
2021-08-26_20:02:48 Steckdosenleiste_20176841c4dd571d699b switch_4: off
2021-08-26_20:02:48 Steckdosenleiste_20176841c4dd571d699b switch_5: off
2021-08-26_20:02:48 Steckdosenleiste_20176841c4dd571d699b countdown_1: 0.0
2021-08-26_20:02:48 Steckdosenleiste_20176841c4dd571d699b countdown_2: 0.0
2021-08-26_20:02:48 Steckdosenleiste_20176841c4dd571d699b countdown_3: 0.0
2021-08-26_20:02:48 Steckdosenleiste_20176841c4dd571d699b countdown_4: 0.0
2021-08-26_20:02:48 Steckdosenleiste_20176841c4dd571d699b countdown_5: 0.0
2021-08-26_20:06:21 Steckdosenleiste_20176841c4dd571d699b on
2021-08-26_20:06:35 Steckdosenleiste_20176841c4dd571d699b off
2021-08-26_20:06:42 Steckdosenleiste_20176841c4dd571d699b off
2021-08-26_20:07:06 Steckdosenleiste_20176841c4dd571d699b on
2021-08-26_20:07:16 Steckdosenleiste_20176841c4dd571d699b off
2021-08-26_20:41:33 Steckdosenleiste_20176841c4dd571d699b on
2021-08-26_20:42:12 Steckdosenleiste_20176841c4dd571d699b off
2021-08-26_20:58:33 Steckdosenleiste_20176841c4dd571d699b on
2021-08-26_20:58:41 Steckdosenleiste_20176841c4dd571d699b off

dominik

Bitte das fhempy Log, nicht von FHEM direkt.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Sommerfeld

Hallo Dominik,

das fhempy-2021-08-26.log text ist leer und auch in der Vergangenheit wurde nie etwas reingeschrieben.

dominik

Schau bitte auch ob du noch ein PythonBinding Log hast. Eventuell steht dort was drin.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Sommerfeld

Ich habe dieses gefunden:
2021-08-26 01:56:13,252 - ERROR    - tuya_cloud_connector: 'NoneType' object has no attribute 'disconnect'
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/tuya_cloud/tuya_cloud_setup.py", line 71, in restart_mqtt_loop
    await self.restart_mqtt()
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/tuya_cloud/tuya_cloud_setup.py", line 76, in restart_mqtt
    self.device_manager.mq.stop()
  File "/opt/fhem/.local/lib/python3.8/site-packages/tuya_iot/openmq.py", line 224, in stop
    self.client.disconnect()
AttributeError: 'NoneType' object has no attribute 'disconnect'
2021-08-26 03:08:15,368 - ERROR    - pychromecast.socket_client: [Dachboden(192.168.178.74):8009] Failed to connect to service ServiceInfo(type='mdns', data='Google-Nest-Mini-143ba75a235b6b691742e0dfcf309e1a._googlecast._tcp.local.'), retrying in 5.0s
2021-08-26 03:40:55,302 - ERROR    - pychromecast.socket_client: [Chromecast(192.168.178.68):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.178.68', 8009)), retrying in 5.0s
2021-08-26 03:54:33,262 - ERROR    - tuya_cloud_connector: 'NoneType' object has no attribute 'disconnect'
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/tuya_cloud/tuya_cloud_setup.py", line 71, in restart_mqtt_loop
    await self.restart_mqtt()
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/tuya_cloud/tuya_cloud_setup.py", line 76, in restart_mqtt
    self.device_manager.mq.stop()
  File "/opt/fhem/.local/lib/python3.8/site-packages/tuya_iot/openmq.py", line 224, in stop
    self.client.disconnect()
AttributeError: 'NoneType' object has no attribute 'disconnect'
2021-08-26 04:50:17,499 - ERROR    - pychromecast.socket_client: [Google-Nest(192.168.178.28):8009] Error reading from socket.
2021-08-26 04:50:17,586 - ERROR    - pychromecast.socket_client: [Google-Nest(192.168.178.28):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.178.28', 8009)), retrying in 5.0s
2021-08-26 05:52:53,267 - ERROR    - tuya_cloud_connector: 'NoneType' object has no attribute 'disconnect'
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/tuya_cloud/tuya_cloud_setup.py", line 71, in restart_mqtt_loop
    await self.restart_mqtt()
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/tuya_cloud/tuya_cloud_setup.py", line 76, in restart_mqtt
    self.device_manager.mq.stop()
  File "/opt/fhem/.local/lib/python3.8/site-packages/tuya_iot/openmq.py", line 224, in stop
    self.client.disconnect()
AttributeError: 'NoneType' object has no attribute 'disconnect'
2021-08-26 06:45:38,299 - ERROR    - fhempy.lib.fhem: Timeout - NO RESPONSE for command: readingsBulkUpdateIfChanged($defs{'Motorrad_Ladestation_Carport_bf5ee44c2ba7b84276eueh'},'state','off');;
2021-08-26 06:58:57,147 - ERROR    - fhempy.lib.fhem: Timeout - NO RESPONSE for command: readingsBulkUpdateIfChanged($defs{'Motorrad_Ladestation_Carport_bf5ee44c2ba7b84276eueh'},'dp_26','0');;
2021-08-26 07:19:06,912 - ERROR    - fhempy.lib.fhem: Timeout - NO RESPONSE for command: readingsBeginUpdate($defs{'Motorrad_Ladestation_Carport_bf5ee44c2ba7b84276eueh'});;
2021-08-26 07:23:56,635 - ERROR    - fhempy.lib.fhem: Timeout - NO RESPONSE for command: readingsBeginUpdate($defs{'Motorrad_Ladestation_Carport_bf5ee44c2ba7b84276eueh'});;
2021-08-26 07:23:56,645 - ERROR    - fhempy.lib.fhem: Timeout - NO RESPONSE for command: readingsBeginUpdate($defs{'spoti'});;
2021-08-26 07:40:59,025 - ERROR    - fhempy.lib.fhem: Timeout - NO RESPONSE for command: readingsBeginUpdate($defs{'Motorrad_Ladestation_Carport_bf5ee44c2ba7b84276eueh'});;
2021-08-26 07:51:13,271 - ERROR    - tuya_cloud_connector: 'NoneType' object has no attribute 'disconnect'
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/tuya_cloud/tuya_cloud_setup.py", line 71, in restart_mqtt_loop
    await self.restart_mqtt()
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/tuya_cloud/tuya_cloud_setup.py", line 76, in restart_mqtt
    self.device_manager.mq.stop()
  File "/opt/fhem/.local/lib/python3.8/site-packages/tuya_iot/openmq.py", line 224, in stop
    self.client.disconnect()
AttributeError: 'NoneType' object has no attribute 'disconnect'
2021-08-26 09:49:33,274 - ERROR    - tuya_cloud_connector: 'NoneType' object has no attribute 'disconnect'
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/tuya_cloud/tuya_cloud_setup.py", line 71, in restart_mqtt_loop
    await self.restart_mqtt()
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/tuya_cloud/tuya_cloud_setup.py", line 76, in restart_mqtt
    self.device_manager.mq.stop()
  File "/opt/fhem/.local/lib/python3.8/site-packages/tuya_iot/openmq.py", line 224, in stop
    self.client.disconnect()
AttributeError: 'NoneType' object has no attribute 'disconnect'
2021-08-26 10:59:32,819 - ERROR    - fhempy.lib.fhem: Timeout - NO RESPONSE for command: readingsBulkUpdateIfChanged($defs{'Motorrad_Ladestation_Carport_bf5ee44c2ba7b84276eueh'},'cur_power','3.6');;
2021-08-26 11:24:52,791 - INFO     - fhempy.lib.pkg_installer: Attempting install of fhempy
2021-08-26 11:24:59,987 - INFO     - fhempy.lib.pkg_installer: Successfully installed fhempy update!
2021-08-26 11:25:00,568 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy...
2021-08-26 11:25:00,579 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2021-08-26 11:25:11,015 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
[2021-08-26 11:25:13,645] [tuya-openmq] error while get mqtt config
2021-08-26 11:25:13,645 - ERROR    - tuya iot: error while get mqtt config
Exception in thread Thread-4:
Traceback (most recent call last):
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/opt/fhem/.local/lib/python3.8/site-packages/tuya_iot/openmq.py", line 173, in run
    time.sleep(self.mq_config.expireTime - 60)
AttributeError: 'TuyaOpenMQ' object has no attribute 'mq_config'
2021-08-26 11:25:14,349 - DEBUG    - Castdevice_Aussenbereich: Start discovery
2021-08-26 11:30:39,592 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy...
2021-08-26 11:30:39,603 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2021-08-26 11:31:23,908 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2021-08-26 11:31:24,776 - WARNING  - asyncio: Executing <Task pending name='Task-19' coro=<PyBinding.onMessage() running at /opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py:129> wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at /usr/lib/python3.8/asyncio/futures.py:360, <TaskWakeupMethWrapper object at 0x7f0899ca0370>()] created at /usr/lib/python3.8/asyncio/base_events.py:422> created at /usr/lib/python3.8/asyncio/tasks.py:382> took 0.177 seconds
2021-08-26 11:31:24,960 - WARNING  - asyncio: Executing <Task pending name='Task-21' coro=<PyBinding.onMessage() running at /opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py:129> wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at /usr/lib/python3.8/asyncio/futures.py:360, <TaskWakeupMethWrapper object at 0x7f0898485190>()] created at /usr/lib/python3.8/asyncio/base_events.py:422> created at /usr/lib/python3.8/asyncio/tasks.py:382> took 0.118 seconds
2021-08-26 11:31:38,428 - DEBUG    - Castdevice_Aussenbereich: Start discovery
2021-08-26 11:31:42,655 - ERROR    - fhempy.lib.fhem: Timeout - NO RESPONSE for command: AttrVal('spoti', 'update_status_interval', '')
2021-08-26 11:31:42,660 - ERROR    - fhempy.lib.fhem: Timeout - NO RESPONSE for command: readingsSingleUpdate($defs{'Ladestation_bf5ee44c2ba7b84276eueh'},'state','ready',1)
2021-08-26 11:31:42,662 - ERROR    - fhempy.lib.fhem: Timeout - NO RESPONSE for command: readingsSingleUpdate($defs{'Smart_Plug_bfc0100ce21d5d7715kbjp'},'state','ready',1)
2021-08-26 11:31:42,668 - ERROR    - fhempy.lib.fhem: Timeout - NO RESPONSE for command: readingsSingleUpdate($defs{'Steckdosenleiste_20176841c4dd571d699b'},'state','ready',1)
2021-08-26 11:31:42,681 - ERROR    - fhempy.lib.fhem: Timeout - NO RESPONSE for command: readingsSingleUpdate($defs{'tuya_cloud_connector'},'state','connecting',1)
2021-08-26 11:31:42,720 - ERROR    - fhempy.lib.fhem: Timeout - NO RESPONSE for command: readingsSingleUpdate($defs{'Wohnzimmervorhang_83652817a4e57c966258'},'state','ready',1)
[2021-08-26 11:31:43,324] [tuya-openmq] error while get mqtt config
2021-08-26 11:31:43,324 - ERROR    - tuya iot: error while get mqtt config
Exception in thread Thread-79:
Traceback (most recent call last):
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/opt/fhem/.local/lib/python3.8/site-packages/tuya_iot/openmq.py", line 173, in run
    time.sleep(self.mq_config.expireTime - 60)
AttributeError: 'TuyaOpenMQ' object has no attribute 'mq_config'
2021-08-26 11:37:20,678 - ERROR    - fhempy.lib.fhem: Timeout - NO RESPONSE for command: readingsBulkUpdateIfChanged($defs{'Motorrad_Ladestation_Carport_bf5ee44c2ba7b84276eueh'},'state','off');;
2021-08-26 11:39:33,546 - INFO     - fhempy.lib.pkg_installer: Attempting install of fhempy
2021-08-26 11:39:37,119 - INFO     - fhempy.lib.pkg_installer: Successfully installed fhempy update!
2021-08-26 11:39:37,747 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy...
2021-08-26 11:39:37,759 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2021-08-26 11:39:47,436 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2021-08-26 11:39:48,026 - WARNING  - asyncio: Executing <Task pending name='Task-20' coro=<PyBinding.onMessage() running at /opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py:129> wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at /usr/lib/python3.8/asyncio/futures.py:360, <TaskWakeupMethWrapper object at 0x7f4ba8aa4100>()] created at /usr/lib/python3.8/asyncio/base_events.py:422> created at /usr/lib/python3.8/asyncio/tasks.py:382> took 0.153 seconds
2021-08-26 11:39:48,149 - WARNING  - asyncio: Executing <Task pending name='Task-21' coro=<PyBinding.onMessage() running at /opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py:129> wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at /usr/lib/python3.8/asyncio/futures.py:360, <TaskWakeupMethWrapper object at 0x7f4ba8844e20>()] created at /usr/lib/python3.8/asyncio/base_events.py:422> created at /usr/lib/python3.8/asyncio/tasks.py:382> took 0.120 seconds
[2021-08-26 11:39:50,189] [tuya-openmq] error while get mqtt config
2021-08-26 11:39:50,189 - ERROR    - tuya iot: error while get mqtt config
Exception in thread Thread-4:
Traceback (most recent call last):
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/opt/fhem/.local/lib/python3.8/site-packages/tuya_iot/openmq.py", line 173, in run
    time.sleep(self.mq_config.expireTime - 60)
AttributeError: 'TuyaOpenMQ' object has no attribute 'mq_config'
2021-08-26 11:39:50,514 - DEBUG    - Castdevice_Aussenbereich: Start discovery
2021-08-26 11:48:44,894 - ERROR    - fhempy.lib.fhem: Timeout - NO RESPONSE for command: readingsBeginUpdate($defs{'Motorrad_Ladestation_Carport_bf5ee44c2ba7b84276eueh'});;
2021-08-26 13:08:00,689 - ERROR    - fhempy.lib.fhem: Timeout - NO RESPONSE for command: readingsBulkUpdateIfChanged($defs{'Motorrad_Ladestation_Carport_bf5ee44c2ba7b84276eueh'},'state','off');;
2021-08-26 13:38:10,166 - ERROR    - tuya_cloud_connector: 'NoneType' object has no attribute 'disconnect'
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/tuya_cloud/tuya_cloud_setup.py", line 71, in restart_mqtt_loop
    await self.restart_mqtt()
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/tuya_cloud/tuya_cloud_setup.py", line 76, in restart_mqtt
    self.device_manager.mq.stop()
  File "/opt/fhem/.local/lib/python3.8/site-packages/tuya_iot/openmq.py", line 224, in stop
    self.client.disconnect()
AttributeError: 'NoneType' object has no attribute 'disconnect'
2021-08-26 15:36:30,172 - ERROR    - tuya_cloud_connector: 'NoneType' object has no attribute 'disconnect'
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/tuya_cloud/tuya_cloud_setup.py", line 71, in restart_mqtt_loop
    await self.restart_mqtt()
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/tuya_cloud/tuya_cloud_setup.py", line 76, in restart_mqtt
    self.device_manager.mq.stop()
  File "/opt/fhem/.local/lib/python3.8/site-packages/tuya_iot/openmq.py", line 224, in stop
    self.client.disconnect()
AttributeError: 'NoneType' object has no attribute 'disconnect'
2021-08-26 17:26:57,895 - ERROR    - fhempy.lib.fhem: Timeout - NO RESPONSE for command: readingsBulkUpdateIfChanged($defs{'Motorrad_Ladestation_Carport_bf5ee44c2ba7b84276eueh'},'state','off');;
2021-08-26 17:34:50,183 - ERROR    - tuya_cloud_connector: 'NoneType' object has no attribute 'disconnect'
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/tuya_cloud/tuya_cloud_setup.py", line 71, in restart_mqtt_loop
    await self.restart_mqtt()
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/tuya_cloud/tuya_cloud_setup.py", line 76, in restart_mqtt
    self.device_manager.mq.stop()
  File "/opt/fhem/.local/lib/python3.8/site-packages/tuya_iot/openmq.py", line 224, in stop
    self.client.disconnect()
AttributeError: 'NoneType' object has no attribute 'disconnect'
2021-08-26 18:29:59,822 - ERROR    - fhempy.lib.fhem: Timeout - NO RESPONSE for command: readingsBulkUpdateIfChanged($defs{'Motorrad_Ladestation_Carport_bf5ee44c2ba7b84276eueh'},'cur_power','0.0');;
2021-08-26 18:45:18,632 - ERROR    - fhempy.lib.fhem: Timeout - NO RESPONSE for command: readingsBeginUpdate($defs{'Motorrad_Ladestation_Carport_bf5ee44c2ba7b84276eueh'});;
2021-08-26 18:48:52,550 - ERROR    - fhempy.lib.fhem: Timeout - NO RESPONSE for command: readingsBeginUpdate($defs{'Motorrad_Ladestation_Carport_bf5ee44c2ba7b84276eueh'});;
2021-08-26 19:06:14,134 - ERROR    - fhempy.lib.fhem: Timeout - NO RESPONSE for command: readingsBulkUpdateIfChanged($defs{'Motorrad_Ladestation_Carport_bf5ee44c2ba7b84276eueh'},'state','off');;
2021-08-26 19:33:10,189 - ERROR    - tuya_cloud_connector: 'NoneType' object has no attribute 'disconnect'
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/tuya_cloud/tuya_cloud_setup.py", line 71, in restart_mqtt_loop
    await self.restart_mqtt()
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/tuya_cloud/tuya_cloud_setup.py", line 76, in restart_mqtt
    self.device_manager.mq.stop()
  File "/opt/fhem/.local/lib/python3.8/site-packages/tuya_iot/openmq.py", line 224, in stop
    self.client.disconnect()
AttributeError: 'NoneType' object has no attribute 'disconnect'
2021-08-26 20:01:46,750 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy...
2021-08-26 20:01:46,761 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2021-08-26 20:02:30,124 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2021-08-26 20:02:31,652 - WARNING  - asyncio: Executing <Task pending name='Task-21' coro=<PyBinding.onMessage() running at /opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py:129> wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at /usr/lib/python3.8/asyncio/futures.py:360, <TaskWakeupMethWrapper object at 0x7f8eeab62490>()] created at /usr/lib/python3.8/asyncio/base_events.py:422> created at /usr/lib/python3.8/asyncio/tasks.py:382> took 0.131 seconds
[2021-08-26 20:02:41,553] [tuya-openmq] error while get mqtt config
2021-08-26 20:02:41,553 - ERROR    - tuya iot: error while get mqtt config
Exception in thread Thread-4:
Traceback (most recent call last):
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/opt/fhem/.local/lib/python3.8/site-packages/tuya_iot/openmq.py", line 173, in run
    time.sleep(self.mq_config.expireTime - 60)
AttributeError: 'TuyaOpenMQ' object has no attribute 'mq_config'
2021-08-26 20:02:43,953 - DEBUG    - Castdevice_Aussenbereich: Start discovery
2021-08-26 21:17:47,633 - ERROR    - fhempy.lib.fhem: Timeout - NO RESPONSE for command: readingsBulkUpdateIfChanged($defs{'Motorrad_Ladestation_Carport_bf5ee44c2ba7b84276eueh'},'state','off');;

dominik

Perfekt, ich schau mir das später an was da los ist.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

barneybaer

#133
[quote author=dominik link=topic=122288.msg1171895#msg1171895 date=1629994323]
Bitte mal testen ob der colorpicker funktioniert. Ich habe diesen mal eingebaut, kann ihn aber selbst nicht testen.

Also richtig testen kann ich es erst am Sonntag, da mein Sohn vor dem Urlaub den Stecker gezogen hat. Hier aber noch ein Fehlercode für beide LED Bänder nach dem Update.

2021-08-26 21:42:22,853 - ERROR    - xxxx_Bett__bf4e9bd5b8c624f127c0io: string indices must be integers
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/tuya_cloud/tuya_cloud_device.py", line 272, in update_readings_arr
    await self.update_readings_hsv(status["code"], status["value"])
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/tuya_cloud/tuya_cloud_device.py", line 307, in update_readings_hsv
    hsv_json["h"] / 360, hsv_json["s"] / 1000, hsv_json["v"] / 1000
TypeError: string indices must be integers

dominik

@Sommerfeld,
der Fehler tritt bei dir schon beim Verbinden zum tuya MQTT Server auf.
[2021-08-26 11:25:13,645] [tuya-openmq] error while get mqtt config
2021-08-26 11:25:13,645 - ERROR    - tuya iot: error while get mqtt config
Exception in thread Thread-4:
Traceback (most recent call last):
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/opt/fhem/.local/lib/python3.8/site-packages/tuya_iot/openmq.py", line 173, in run
    time.sleep(self.mq_config.expireTime - 60)
AttributeError: 'TuyaOpenMQ' object has no attribute 'mq_config'

Prüfe bitte nochmals deine CLIENT_ID, CLIENT_SECRET, USERNAME, PASSWORD.

Ich habe gerade beim Reconnect noch etwas verbessert, aber das wird denke ich nicht helfen. Weil schon das Herstellen der Verbindung fehl schlägt.

@barneybaer,
Zumindest der Fehler sollte nun weg sein.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik