fhempy: tuya (lokal)

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

Vorheriges Thema - Nächstes Thema

dominik

Und es hat sicher schon mal funktioniert?
Poste bitte noch ein list vom neuen Device.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

ChrisA4

Zitat von: dominik am 01 Oktober 2022, 16:21:02
Poste bitte das fhempy Log mit den Einträgen von der Klima bei einem fhempy Neustart.

2022-10-01 23:44:46,103 - ERROR    - NousA1WiFiBT7: Failed create_device
Traceback (most recent call last):
  File "/usr/lib/python3.9/asyncio/locks.py", line 413, in acquire
    await fut
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.9/asyncio/tasks.py", line 492, in wait_for
    fut.result()
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 424, in create_device
    await self._create_cloudmapping_dev()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 354, in _create_cloudmapping_dev
    status = await self._connected_device.status()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/pytuya/__init__.py", line 484, in status
    status = await self.exchange(STATUS)
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/pytuya/__init__.py", line 463, in exchange
    msg = await self.dispatcher.wait_for(seqno)
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/pytuya/__init__.py", line 250, in wait_for
    await asyncio.wait_for(self.listeners[seqno].acquire(), timeout=timeout)
  File "/usr/lib/python3.9/asyncio/tasks.py", line 494, in wait_for
    raise exceptions.TimeoutError() from exc
asyncio.exceptions.TimeoutError


das kommt bei fhempy restart

dominik

ok, das ist nur das V3.4 Device, das passt.

Poste bitte ein list von der Klima nach dem Neustart.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

ChrisA4

2022-10-02 00:04:38,319 - ERROR    - Klima_21320014a4cf12eb2408: Failed create_device
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 424, in create_device
    await self._create_cloudmapping_dev()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 341, in _create_cloudmapping_dev
    await self.retrieve_tuya_specs()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 319, in retrieve_tuya_specs
    self._convert_values_to_json()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 266, in _convert_values_to_json
    spec["values"] = json.loads(spec["values"])
  File "/usr/lib/python3.9/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.9/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.9/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)


ist aus opt/fhem/log $ sudo nano fhempy-2022-10-02.log

hoffe es ist der richtige oder wo kann ich sonst noch schauen

dominik

Das sieht ja schon besser aus, bitte jetzt noch ein list vom Klima Device.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

ChrisA4

Zitat von: dominik am 02 Oktober 2022, 00:27:35
Das sieht ja schon besser aus, bitte jetzt noch ein list vom Klima Device.
wo is die

dominik

list Klima_21320014a4cf12eb2408
in FHEMWEB eingeben.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

ChrisA4

#247
ok

Internals:
   DEF        .28 91114d8dc415311f 3.3 uwwmgv3hb4d7dph9b2un
   FHEMPYTYPE tuya
   FUUID      6337fe37-f33f-c95d-bf78-efee064b421eb33b
   IODev      pyBinding
   NAME       Klima_21320014a4cf12eb2408
   NR         387
   PYTHONTYPE tuya
   STATE      Initializing...
   TYPE       fhempy
   eventCount 1
   READINGS:
     2022-10-01 10:45:43   online          0
     2022-10-02 00:04:37   state           Initializing...
   args:
     Klima_21320014a4cf12eb2408
     fhempy
     tuya
   
     3.3
     uwwmgv3hb4d7dph9b2un
     c345434e6b984aadaf56ed6880cd1eb8
   argsh:
Attributes:
   IODev      pyBinding
   group      tuya
   room       fhempy

dominik

Perfekt, jetzt sollte das Problem in der Version 0.1.491 behoben sein.

Bitte lösche in deinem Post noch API_KEY/SECRET im DEF und unter args.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Sommerfeld

ZitatUnd es hat sicher schon mal funktioniert?
Die Kamera zeigte bereits ein state an und der wurde auch aktualisiert.
Internals:
   .AttrList  tuya_spec_functions tuya_spec_status IODev:local_pybinding event-aggregator event-min-interval event-on-change-reading event-on-update-reading oldreadings stateFormat:textField-long timestamp-on-change-reading
   CFGFN     
   DEF        tuya 35twetlejkkllta0 bf905cb6a14a43dbf9hhfu 192.168.178.98 f9ea8d1efc541ead 3.3 1234.... 1234......
   DEVICEID   bf905cb6a14a43dbf9hhfu
   FHEMPYTYPE tuya
   FUUID      63388082-f33f-3b5c-6817-fe667177dcd35be6
   IODev      local_pybinding
   NAME       Wohnzimmerkamera_bf905cb6a14a43dbf9hhfu
   NR         18168
   PYTHONTYPE tuya
   STATE      Initializing...
   TYPE       fhempy
   eventCount 81
   .attraggr:
   .attrminint:
   READINGS:
     2022-10-01 20:03:12   IODev           local_pybinding
     2022-10-01 20:01:42   active_time     1644234172
     2022-10-01 20:01:42   biz_type        0
     2022-10-01 20:01:42   category        sp
     2022-10-01 20:01:42   create_time     1644234172
     2022-10-01 20:01:42   icon            smart/icon/ay1525342462043yjwZs/e9af8e6817e79859b119a322895ffc0b.png
     2022-10-01 20:01:42   id              bf905cb6a14a43dbf9hhfu
     2022-10-01 20:01:42   ip              93.203.85.174
     2022-10-01 20:01:42   lat             52.8048
     2022-10-01 20:01:42   local_key       f9ea8d1efc541ead
     2022-10-01 20:01:42   lon             13.0448
     2022-10-01 20:01:42   model           Überwachungskamera
     2022-10-01 20:01:42   name            Wohnzimmerkamera
     2022-10-02 07:40:43   online          0
     2022-10-01 20:01:42   owner_id        15487476
     2022-10-01 20:01:42   product_id      35twetlejkkllta0
     2022-10-01 20:01:42   product_name    ZX-5110
     2022-10-01 20:03:12   state           Initializing...
     2022-10-01 20:01:42   sub             0
     2022-10-01 20:01:42   time_zone       +01:00
     2022-10-01 20:01:42   uid             eu1598817427882BAzmt
     2022-10-01 20:01:42   update_time     1644242210
     2022-10-01 20:01:42   uuid            tuyab725045bfe14986f
   args:
     Wohnzimmerkamera_bf905cb6a14a43dbf9hhfu
     fhempy
     tuya
     35twetlejkkllta0
     bf905cb6a14a43dbf9hhfu
     192.168.178.98
     f9ea8d1efc541ead
     3.3
     fq83awrvav6glwxl28ed
     59327720c0834b8d8d4bc010f9b9a072
   argsh:
   helper:
     bm:
       fhempy_Attr:
         cnt        14
         dmx        -1000
         dtot       0
         dtotcnt    0
         mTS        01.10. 20:01:40
         max        0.01173996925354
         tot        0.0837311744689941
         mAr:
           set
           Wohnzimmerkamera_bf905cb6a14a43dbf9hhfu
           tuya_spec_functions
           [{'code': 'basic_indicator', 'dp_id': 101, 'type': 'Boolean', 'values': {}, 'desc': 'basic indicator'}, {'code': 'basic_flip', 'dp_id': 103, 'type': 'Boolean', 'values': {}, 'desc': 'basic flip'}, {'code': 'basic_osd', 'dp_id': 104, 'type': 'Boolean', 'values': {}, 'desc': 'basic osd'}, {'code': 'motion_sensitivity', 'dp_id': 106, 'type': 'Enum', 'values': {'range': ['0', '1', '2']}, 'desc': 'motion sensitivity'}, {'code': 'basic_nightvision', 'dp_id': 108, 'type': 'Enum', 'values': {'range': ['0', '1', '2']}, 'desc': 'basic nightvision'}, {'code': 'sd_format', 'dp_id': 111, 'type': 'Boolean', 'values': {}, 'desc': 'sd format'}, {'code': 'ptz_stop', 'dp_id': 116, 'type': 'Boolean', 'values': {}, 'desc': 'ptz stop'}, {'code': 'ptz_control', 'dp_id': 119, 'type': 'Enum', 'values': {'range': ['1', '2', '3', '4', '5', '6', '7', '0']}, 'desc': 'ptz control'}, {'code': 'motion_switch', 'dp_id': 134, 'type': 'Boolean', 'values': {}, 'desc': 'motion switch'}, {'code': 'decibel_switch', 'dp_id': 139, 'type': 'Boolean', 'values': {}, 'desc': 'decibel switch'}, {'code': 'decibel_sensitivity', 'dp_id': 140, 'type': 'Enum', 'values': {'range': ['0', '1']}, 'desc': 'decibel sensitivity'}, {'code': 'record_switch', 'dp_id': 150, 'type': 'Boolean', 'values': {}, 'desc': 'record switch'}, {'code': 'record_mode', 'dp_id': 151, 'type': 'Enum', 'values': {'range': ['1', '2']}, 'desc': 'record mode'}, {'code': 'motion_tracking', 'dp_id': 161, 'type': 'Boolean', 'values': {}, 'desc': 'motion tracking'}, {'code': 'motion_area_switch', 'dp_id': 168, 'type': 'Boolean', 'values': {}, 'desc': 'motion area switch'}, {'code': 'motion_area', 'dp_id': 169, 'type': 'String', 'values': {'maxlen': 255}, 'desc': 'motion area'}]
       fhempy_Define:
         cnt        1
         dmx        -1000
         dtot       0
         dtotcnt    0
         mTS        01.10. 20:01:38
         max        0.0212669372558594
         tot        0.0212669372558594
         mAr:
           HASH(0x55ee744fe890)
           ARRAY(0x55ee72763fd8)
           HASH(0x55ee747268e0)
       fhempy_Get:
         cnt        2
         dmx        -1000
         dtot       0
         dtotcnt    0
         mTS        02.10. 07:42:24
         max        0.00397086143493652
         tot        0.00753879547119141
         mAr:
           HASH(0x55ee744fe890)
           ARRAY(0x55ee7abf3be8)
           HASH(0x55ee7a099920)
       fhempy_Set:
         cnt        221
         dmx        -1000
         dtot       0
         dtotcnt    0
         mTS        01.10. 20:33:58
         max        0.088547945022583
         tot        1.79667472839355
         mAr:
           HASH(0x55ee744fe890)
           ARRAY(0x55ee7168a180)
           HASH(0x55ee72b00b30)
   hmccu:
Attributes:
   IODev      local_pybinding
   alias      Wohnzimmerkamera
   devStateIcon online:it_wifi@green offline:it_wifi@red
   group      tuya
   icon       it_camera@red
   room       02_0_EG->02_4_EG_Wohnzimmer,Tuya
   tuya_spec_functions [{'code': 'basic_indicator', 'dp_id': 101, 'type': 'Boolean', 'values': '{}', 'desc': 'basic indicator'}, {'code': 'basic_flip', 'dp_id': 103, 'type': 'Boolean', 'values': '{}', 'desc': 'basic flip'}, {'code': 'basic_osd', 'dp_id': 104, 'type': 'Boolean', 'values': '{}', 'desc': 'basic osd'}, {'code': 'motion_sensitivity', 'dp_id': 106, 'type': 'Enum', 'values': '{"range":["0","1","2"]}', 'desc': 'motion sensitivity'}, {'code': 'basic_nightvision', 'dp_id': 108, 'type': 'Enum', 'values': '{"range":["0","1","2"]}', 'desc': 'basic nightvision'}, {'code': 'sd_format', 'dp_id': 111, 'type': 'Boolean', 'values': '{}', 'desc': 'sd format'}, {'code': 'ptz_stop', 'dp_id': 116, 'type': 'Boolean', 'values': '{}', 'desc': 'ptz stop'}, {'code': 'ptz_control', 'dp_id': 119, 'type': 'Enum', 'values': '{"range":["1","2","3","4","5","6","7","0"]}', 'desc': 'ptz control'}, {'code': 'motion_switch', 'dp_id': 134, 'type': 'Boolean', 'values': '{}', 'desc': 'motion switch'}, {'code': 'decibel_switch', 'dp_id': 139, 'type': 'Boolean', 'values': '{}', 'desc': 'decibel switch'}, {'code': 'decibel_sensitivity', 'dp_id': 140, 'type': 'Enum', 'values': '{"range":["0","1"]}', 'desc': 'decibel sensitivity'}, {'code': 'record_switch', 'dp_id': 150, 'type': 'Boolean', 'values': '{}', 'desc': 'record switch'}, {'code': 'record_mode', 'dp_id': 151, 'type': 'Enum', 'values': '{"range":["1","2"]}', 'desc': 'record mode'}, {'code': 'motion_tracking', 'dp_id': 161, 'type': 'Boolean', 'values': '{}', 'desc': 'motion tracking'}, {'code': 'motion_area_switch', 'dp_id': 168, 'type': 'Boolean', 'values': '{}', 'desc': 'motion area switch'}, {'code': 'motion_area', 'dp_id': 169, 'type': 'String', 'values': '{"maxlen":255}', 'desc': 'motion area'}]
   tuya_spec_status [{'code': 'basic_indicator', 'dp_id': 101, 'type': 'Boolean', 'values': '{}'}, {'code': 'basic_flip', 'dp_id': 103, 'type': 'Boolean', 'values': '{}'}, {'code': 'basic_osd', 'dp_id': 104, 'type': 'Boolean', 'values': '{}'}, {'code': 'motion_sensitivity', 'dp_id': 106, 'type': 'Enum', 'values': '{"range":["0","1","2"]}'}, {'code': 'basic_nightvision', 'dp_id': 108, 'type': 'Enum', 'values': '{"range":["0","1","2"]}'}, {'code': 'sd_storge', 'dp_id': 109, 'type': 'String', 'values': '{"maxlen":255}'}, {'code': 'sd_status', 'dp_id': 110, 'type': 'Integer', 'values': '{"unit":"","min":1,"max":5,"scale":1,"step":1}'}, {'code': 'sd_format', 'dp_id': 111, 'type': 'Boolean', 'values': '{}'}, {'code': 'movement_detect_pic', 'dp_id': 115, 'type': 'Raw', 'values': '{}'}, {'code': 'ptz_stop', 'dp_id': 116, 'type': 'Boolean', 'values': '{}'}, {'code': 'sd_format_state', 'dp_id': 117, 'type': 'Integer', 'values': '{"unit":"","min":-20000,"max":20000,"scale":1,"step":1}'}, {'code': 'ptz_control', 'dp_id': 119, 'type': 'Enum', 'values': '{"range":["1","2","3","4","5","6","7","0"]}'}, {'code': 'motion_switch', 'dp_id': 134, 'type': 'Boolean', 'values': '{}'}, {'code': 'decibel_switch', 'dp_id': 139, 'type': 'Boolean', 'values': '{}'}, {'code': 'decibel_sensitivity', 'dp_id': 140, 'type': 'Enum', 'values': '{"range":["0","1"]}'}, {'code': 'decibel_upload', 'dp_id': 141, 'type': 'String', 'values': '{"maxlen":255}'}, {'code': 'record_switch', 'dp_id': 150, 'type': 'Boolean', 'values': '{}'}, {'code': 'record_mode', 'dp_id': 151, 'type': 'Enum', 'values': '{"range":["1","2"]}'}, {'code': 'motion_tracking', 'dp_id': 161, 'type': 'Boolean', 'values': '{}'}, {'code': 'motion_area_switch', 'dp_id': 168, 'type': 'Boolean', 'values': '{}'}, {'code': 'motion_area', 'dp_id': 169, 'type': 'String', 'values': '{"maxlen":255}'}, {'code': 'alarm_message', 'dp_id': 185, 'type': 'String', 'values': '{}'}]

ChrisA4

Zitat von: dominik am 02 Oktober 2022, 00:58:44
Perfekt, jetzt sollte das Problem in der Version 0.1.491 behoben sein.

Bitte lösche in deinem Post noch API_KEY/SECRET im DEF und unter args.

Nach neuem definieren der klima funkt es

was jetzt auch nicht geht ein blindsdriver

Internals:
   CFGFN     
   DEF        tuya   192.168.1.149 27a8388484e1eb41 3.3
   DEVICEID   00408365e868e7894c32
   FHEMPYTYPE tuya
   FUUID      633947e3-f33f-c95d-206b-31ee30d54ec7db9e
   IODev      pyBinding
   NAME       Blinds_Controller_00408365e868e7894c32
   NR         877
   PYTHONTYPE tuya
   STATE      Initializing...
   TYPE       fhempy
   eventCount 17
   READINGS:
     2022-10-02 10:12:22   active_time     1637828406
     2022-10-02 10:12:22   biz_type        18
     2022-10-02 10:12:22   category        cl
     2022-10-02 10:12:22   create_time     1619464496
     2022-10-02 10:12:22   icon            smart/program_category_icon/cl.png
     2022-10-02 10:12:22   id              00408365e868e7894c32
     2022-10-02 10:12:22   ip              92.248.3.214
     2022-10-02 10:12:22   lat             48.6951
     2022-10-02 10:12:22   local_key     
     2022-10-02 10:12:22   lon             15.9707
     2022-10-02 10:12:22   name            Blinds Controller
     2022-10-02 10:13:12   online          1
     2022-10-02 10:12:22   owner_id        9189095
     2022-10-02 10:14:32   percent_state   24.0
     2022-10-02 10:12:22   product_id      3r8gc33pnqsxfe1g
     2022-10-02 10:12:22   product_name    Blinds Controller
     2022-10-02 10:12:20   state           Initializing...
     2022-10-02 10:12:22   sub             0
     2022-10-02 10:12:22   time_zone       +01:00
     2022-10-02 10:12:22   uid             eu1577993184739WO7bA
     2022-10-02 10:12:22   update_time     1639073311
     2022-10-02 10:12:22   uuid            00408365e868e7894c32
     2022-10-02 10:14:24   work_state      closing
   args:
     Blinds_Controller_00408365e868e7894c32
     fhempy
     tuya
   
     192.168.1.149
     27a8388484e1eb41
     3.3
     
   argsh:
   hmccu:
Attributes:
   group      tuya
   room       fhempy
   tuya_spec_functions [{'code': 'control', 'dp_id': 1, 'type': 'Enum', 'values': {'range': ['open', 'stop', 'close']}, 'desc': 'control'}, {'code': 'percent_control', 'dp_id': 2, 'type': 'Integer', 'values': {'unit': '%', 'min': 0, 'max': 100, 'scale': 0, 'step': 1}, 'desc': 'percent control'}, {'code': 'control_back', 'dp_id': 5, 'type': 'Boolean', 'values': {}, 'desc': 'control back'}, {'code': 'countdown', 'dp_id': 8, 'type': 'Enum', 'values': {'range': ['cancel', '1', '2', '3', '4']}, 'desc': 'countdown'}]
   tuya_spec_status [{'code': 'control', 'dp_id': 1, 'type': 'Enum', 'values': {'range': ['open', 'stop', 'close']}}, {'code': 'percent_control', 'dp_id': 2, 'type': 'Integer', 'values': {'unit': '%', 'min': 0, 'max': 100, 'scale': 0, 'step': 1}}, {'code': 'percent_state', 'dp_id': 3, 'type': 'Integer', 'values': {'unit': '%', 'min': 0, 'max': 100, 'scale': 0, 'step': 1}}, {'code': 'control_back', 'dp_id': 5, 'type': 'Boolean', 'values': {}}, {'code': 'work_state', 'dp_id': 7, 'type': 'Enum', 'values': {'range': ['opening', 'closing']}}, {'code': 'countdown', 'dp_id': 8, 'type': 'Enum', 'values': {'range': ['cancel', '1', '2', '3', '4']}}, {'code': 'countdown_left', 'dp_id': 9, 'type': 'Integer', 'values': {'unit': 's', 'min': 0, 'max': 86400, 'scale': 0, 'step': 1}}, {'code': 'time_total', 'dp_id': 11, 'type': 'Integer', 'values': {'unit': 'ms', 'min': 0, 'max': 120000, 'scale': 0, 'step': 1}}]


Eine Kamera
und kann man mit der auch was anfangen?

Internals:
   CFGFN     
   DEF        tuya fvjbqt0r3 192.168.1.43 287f5e721ff7d3e0 3.3
   DEVICEID   bf60f994ba65089eea3k2g
   FHEMPYTYPE tuya
   FUUID      6339402f-f33f-c95d-d375-bed3d083901ab2d7
   IODev      pyBinding
   NAME       LSC_Smart_Indoor_Camera_bf60f994ba65089eea3k2g
   NR         596
   PYTHONTYPE tuya
   STATE      Initializing...
   TYPE       fhempy
   eventCount 3
   READINGS:
     2022-10-02 09:39:29   active_time     1664444679
     2022-10-02 09:39:29   biz_type        18
     2022-10-02 09:39:29   category        sp
     2022-10-02 09:39:29   create_time     1664444679
     2022-10-02 09:39:29   icon            smart/icon/bay16279833154642Sqp/1654860913bd19a90faf9.png
     2022-10-02 09:39:29   id              bf60f994ba65089eea3k2g
     2022-10-02 09:39:29   ip              92.248.15.174
     2022-10-02 09:39:29   lat             48.6951
     2022-10-02 09:39:29   local_key     
     2022-10-02 09:39:29   lon             15.9708
     2022-10-02 09:39:29   model           5525000300
     2022-10-02 09:39:29   name            LSC Smart Indoor Camera
     2022-10-02 09:39:29   online          1
     2022-10-02 09:39:29   owner_id        9189095
     2022-10-02 09:39:29   product_id      fvjbqt0r31vaxaf4
     2022-10-02 09:39:29   product_name    LSC Smart Indoor Camera
     2022-10-02 09:39:28   state           Initializing...
     2022-10-02 09:39:29   sub             0
     2022-10-02 09:39:29   time_zone       +02:00
     2022-10-02 09:39:29   uid             eu1577993184739WO7bA
     2022-10-02 09:39:29   update_time     1664444682
     2022-10-02 09:39:29   uuid            calef55ad20954da82e6
   args:
     LSC_Smart_Indoor_Camera_bf60f994ba65089eea3k2g
     fhempy
     tuya
     
     192.168.1.43
     287f5e721ff7d3e0
     3.3
   
   argsh:
   hmccu:
Attributes:
   group      tuya
   room       fhempy
   tuya_spec_functions [{'code': 'basic_indicator', 'dp_id': 101, 'type': 'Boolean', 'values': {}, 'desc': 'basic indicator'}, {'code': 'basic_flip', 'dp_id': 103, 'type': 'Boolean', 'values': {}, 'desc': 'basic flip'}, {'code': 'basic_private', 'dp_id': 105, 'type': 'Boolean', 'values': {}, 'desc': 'basic private'}, {'code': 'motion_sensitivity', 'dp_id': 106, 'type': 'Enum', 'values': {'range': ['0', '1', '2']}, 'desc': 'motion sensitivity'}, {'code': 'basic_nightvision', 'dp_id': 108, 'type': 'Enum', 'values': {'range': ['0', '1', '2']}, 'desc': 'basic nightvision'}, {'code': 'sd_format', 'dp_id': 111, 'type': 'Boolean', 'values': {}, 'desc': 'sd format'}, {'code': 'motion_record', 'dp_id': 113, 'type': 'Boolean', 'values': {}, 'desc': 'motion record'}, {'code': 'motion_interval', 'dp_id': 133, 'type': 'Enum', 'values': {'range': ['1', '3', '5']}, 'desc': 'motion interval'}, {'code': 'motion_switch', 'dp_id': 134, 'type': 'Boolean', 'values': {}, 'desc': 'motion switch'}, {'code': 'record_switch1', 'dp_id': 137, 'type': 'Boolean', 'values': {}, 'desc': 'record switch1'}, {'code': 'decibel_switch', 'dp_id': 139, 'type': 'Boolean', 'values': {}, 'desc': 'decibel switch'}, {'code': 'decibel_sensitivity', 'dp_id': 140, 'type': 'Enum', 'values': {'range': ['0', '1']}, 'desc': 'decibel sensitivity'}, {'code': 'record_switch', 'dp_id': 150, 'type': 'Boolean', 'values': {}, 'desc': 'record switch'}, {'code': 'record_mode', 'dp_id': 151, 'type': 'Enum', 'values': {'range': ['1', '2']}, 'desc': 'record mode'}, {'code': 'motion_area_switch', 'dp_id': 168, 'type': 'Boolean', 'values': {}, 'desc': 'motion area switch'}, {'code': 'motion_area', 'dp_id': 169, 'type': 'String', 'values': {'maxlen': 255}, 'desc': 'motion area'}, {'code': 'humanoid_filter', 'dp_id': 170, 'type': 'Boolean', 'values': {}, 'desc': 'humanoid filter'}, {'code': 'ipc_mute_record', 'dp_id': 197, 'type': 'Boolean', 'values': {}, 'desc': 'ipc mute record'}]
   tuya_spec_status [{'code': 'basic_indicator', 'dp_id': 101, 'type': 'Boolean', 'values': {}}, {'code': 'basic_flip', 'dp_id': 103, 'type': 'Boolean', 'values': {}}, {'code': 'basic_private', 'dp_id': 105, 'type': 'Boolean', 'values': {}}, {'code': 'motion_sensitivity', 'dp_id': 106, 'type': 'Enum', 'values': {'range': ['0', '1', '2']}}, {'code': 'basic_nightvision', 'dp_id': 108, 'type': 'Enum', 'values': {'range': ['0', '1', '2']}}, {'code': 'sd_storge', 'dp_id': 109, 'type': 'String', 'values': {'maxlen': 255}}, {'code': 'sd_status', 'dp_id': 110, 'type': 'Integer', 'values': {'unit': '', 'min': 1, 'max': 5, 'scale': 1, 'step': 1}}, {'code': 'sd_format', 'dp_id': 111, 'type': 'Boolean', 'values': {}}, {'code': 'motion_record', 'dp_id': 113, 'type': 'Boolean', 'values': {}}, {'code': 'movement_detect_pic', 'dp_id': 115, 'type': 'Raw', 'values': {}}, {'code': 'sd_format_state', 'dp_id': 117, 'type': 'Integer', 'values': {'unit': '', 'min': -20000, 'max': 20000, 'scale': 1, 'step': 1}}, {'code': 'motion_interval', 'dp_id': 133, 'type': 'Enum', 'values': {'range': ['1', '3', '5']}}, {'code': 'motion_switch', 'dp_id': 134, 'type': 'Boolean', 'values': {}}, {'code': 'record_switch1', 'dp_id': 137, 'type': 'Boolean', 'values': {}}, {'code': 'decibel_switch', 'dp_id': 139, 'type': 'Boolean', 'values': {}}, {'code': 'decibel_sensitivity', 'dp_id': 140, 'type': 'Enum', 'values': {'range': ['0', '1']}}, {'code': 'decibel_upload', 'dp_id': 141, 'type': 'String', 'values': {'maxlen': 255}}, {'code': 'record_switch', 'dp_id': 150, 'type': 'Boolean', 'values': {}}, {'code': 'record_mode', 'dp_id': 151, 'type': 'Enum', 'values': {'range': ['1', '2']}}, {'code': 'motion_area_switch', 'dp_id': 168, 'type': 'Boolean', 'values': {}}, {'code': 'motion_area', 'dp_id': 169, 'type': 'String', 'values': {'maxlen': 255}}, {'code': 'humanoid_filter', 'dp_id': 170, 'type': 'Boolean', 'values': {}}, {'code': 'alarm_message', 'dp_id': 185, 'type': 'String', 'values': {}}, {'code': 'ipc_mute_record', 'dp_id': 197, 'type': 'Boolean', 'values': {}}]

ChrisA4

#251
Jetzt stehen ALLE GERÄTE auf Initilizing... >:(
bzw manchmal auf ERROR

dominik

Zitat von: Sommerfeld am 02 Oktober 2022, 07:46:59
Die Kamera zeigte bereits ein state an und der wurde auch aktualisiert.
Internals:
   .AttrList  tuya_spec_functions tuya_spec_status IODev:local_pybinding event-aggregator event-min-interval event-on-change-reading event-on-update-reading oldreadings stateFormat:textField-long timestamp-on-change-reading
   CFGFN     
   DEF        tuya 35twetlejkkllta0 bf905cb6a14a43dbf9hhfu 192.168.178.98 f9ea8d1efc541ead 3.3 1234.... 1234......
   DEVICEID   bf905cb6a14a43dbf9hhfu
   FHEMPYTYPE tuya
   FUUID      63388082-f33f-3b5c-6817-fe667177dcd35be6
   IODev      local_pybinding
   NAME       Wohnzimmerkamera_bf905cb6a14a43dbf9hhfu
   NR         18168
   PYTHONTYPE tuya
   STATE      Initializing...
   TYPE       fhempy
   eventCount 81
   .attraggr:
   .attrminint:
   READINGS:
     2022-10-01 20:03:12   IODev           local_pybinding
     2022-10-01 20:01:42   active_time     1644234172
     2022-10-01 20:01:42   biz_type        0
     2022-10-01 20:01:42   category        sp
     2022-10-01 20:01:42   create_time     1644234172
     2022-10-01 20:01:42   icon            smart/icon/ay1525342462043yjwZs/e9af8e6817e79859b119a322895ffc0b.png
     2022-10-01 20:01:42   id              bf905cb6a14a43dbf9hhfu
     2022-10-01 20:01:42   ip              93.203.85.174
     2022-10-01 20:01:42   lat             52.8048
     2022-10-01 20:01:42   local_key       f9ea8d1efc541ead
     2022-10-01 20:01:42   lon             13.0448
     2022-10-01 20:01:42   model           Überwachungskamera
     2022-10-01 20:01:42   name            Wohnzimmerkamera
     2022-10-02 07:40:43   online          0
     2022-10-01 20:01:42   owner_id        15487476
     2022-10-01 20:01:42   product_id      35twetlejkkllta0
     2022-10-01 20:01:42   product_name    ZX-5110
     2022-10-01 20:03:12   state           Initializing...
     2022-10-01 20:01:42   sub             0
     2022-10-01 20:01:42   time_zone       +01:00
     2022-10-01 20:01:42   uid             eu1598817427882BAzmt
     2022-10-01 20:01:42   update_time     1644242210
     2022-10-01 20:01:42   uuid            tuyab725045bfe14986f
   args:
     Wohnzimmerkamera_bf905cb6a14a43dbf9hhfu
     fhempy
     tuya
     35twetlejkkllta0
     bf905cb6a14a43dbf9hhfu
     192.168.178.98
     f9ea8d1efc541ead
     3.3
     fq83awrvav6glwxl28ed
     59327720c0834b8d8d4bc010f9b9a072
   argsh:
   helper:
     bm:
       fhempy_Attr:
         cnt        14
         dmx        -1000
         dtot       0
         dtotcnt    0
         mTS        01.10. 20:01:40
         max        0.01173996925354
         tot        0.0837311744689941
         mAr:
           set
           Wohnzimmerkamera_bf905cb6a14a43dbf9hhfu
           tuya_spec_functions
           [{'code': 'basic_indicator', 'dp_id': 101, 'type': 'Boolean', 'values': {}, 'desc': 'basic indicator'}, {'code': 'basic_flip', 'dp_id': 103, 'type': 'Boolean', 'values': {}, 'desc': 'basic flip'}, {'code': 'basic_osd', 'dp_id': 104, 'type': 'Boolean', 'values': {}, 'desc': 'basic osd'}, {'code': 'motion_sensitivity', 'dp_id': 106, 'type': 'Enum', 'values': {'range': ['0', '1', '2']}, 'desc': 'motion sensitivity'}, {'code': 'basic_nightvision', 'dp_id': 108, 'type': 'Enum', 'values': {'range': ['0', '1', '2']}, 'desc': 'basic nightvision'}, {'code': 'sd_format', 'dp_id': 111, 'type': 'Boolean', 'values': {}, 'desc': 'sd format'}, {'code': 'ptz_stop', 'dp_id': 116, 'type': 'Boolean', 'values': {}, 'desc': 'ptz stop'}, {'code': 'ptz_control', 'dp_id': 119, 'type': 'Enum', 'values': {'range': ['1', '2', '3', '4', '5', '6', '7', '0']}, 'desc': 'ptz control'}, {'code': 'motion_switch', 'dp_id': 134, 'type': 'Boolean', 'values': {}, 'desc': 'motion switch'}, {'code': 'decibel_switch', 'dp_id': 139, 'type': 'Boolean', 'values': {}, 'desc': 'decibel switch'}, {'code': 'decibel_sensitivity', 'dp_id': 140, 'type': 'Enum', 'values': {'range': ['0', '1']}, 'desc': 'decibel sensitivity'}, {'code': 'record_switch', 'dp_id': 150, 'type': 'Boolean', 'values': {}, 'desc': 'record switch'}, {'code': 'record_mode', 'dp_id': 151, 'type': 'Enum', 'values': {'range': ['1', '2']}, 'desc': 'record mode'}, {'code': 'motion_tracking', 'dp_id': 161, 'type': 'Boolean', 'values': {}, 'desc': 'motion tracking'}, {'code': 'motion_area_switch', 'dp_id': 168, 'type': 'Boolean', 'values': {}, 'desc': 'motion area switch'}, {'code': 'motion_area', 'dp_id': 169, 'type': 'String', 'values': {'maxlen': 255}, 'desc': 'motion area'}]
       fhempy_Define:
         cnt        1
         dmx        -1000
         dtot       0
         dtotcnt    0
         mTS        01.10. 20:01:38
         max        0.0212669372558594
         tot        0.0212669372558594
         mAr:
           HASH(0x55ee744fe890)
           ARRAY(0x55ee72763fd8)
           HASH(0x55ee747268e0)
       fhempy_Get:
         cnt        2
         dmx        -1000
         dtot       0
         dtotcnt    0
         mTS        02.10. 07:42:24
         max        0.00397086143493652
         tot        0.00753879547119141
         mAr:
           HASH(0x55ee744fe890)
           ARRAY(0x55ee7abf3be8)
           HASH(0x55ee7a099920)
       fhempy_Set:
         cnt        221
         dmx        -1000
         dtot       0
         dtotcnt    0
         mTS        01.10. 20:33:58
         max        0.088547945022583
         tot        1.79667472839355
         mAr:
           HASH(0x55ee744fe890)
           ARRAY(0x55ee7168a180)
           HASH(0x55ee72b00b30)
   hmccu:
Attributes:
   IODev      local_pybinding
   alias      Wohnzimmerkamera
   devStateIcon online:it_wifi@green offline:it_wifi@red
   group      tuya
   icon       it_camera@red
   room       02_0_EG->02_4_EG_Wohnzimmer,Tuya
   tuya_spec_functions [{'code': 'basic_indicator', 'dp_id': 101, 'type': 'Boolean', 'values': '{}', 'desc': 'basic indicator'}, {'code': 'basic_flip', 'dp_id': 103, 'type': 'Boolean', 'values': '{}', 'desc': 'basic flip'}, {'code': 'basic_osd', 'dp_id': 104, 'type': 'Boolean', 'values': '{}', 'desc': 'basic osd'}, {'code': 'motion_sensitivity', 'dp_id': 106, 'type': 'Enum', 'values': '{"range":["0","1","2"]}', 'desc': 'motion sensitivity'}, {'code': 'basic_nightvision', 'dp_id': 108, 'type': 'Enum', 'values': '{"range":["0","1","2"]}', 'desc': 'basic nightvision'}, {'code': 'sd_format', 'dp_id': 111, 'type': 'Boolean', 'values': '{}', 'desc': 'sd format'}, {'code': 'ptz_stop', 'dp_id': 116, 'type': 'Boolean', 'values': '{}', 'desc': 'ptz stop'}, {'code': 'ptz_control', 'dp_id': 119, 'type': 'Enum', 'values': '{"range":["1","2","3","4","5","6","7","0"]}', 'desc': 'ptz control'}, {'code': 'motion_switch', 'dp_id': 134, 'type': 'Boolean', 'values': '{}', 'desc': 'motion switch'}, {'code': 'decibel_switch', 'dp_id': 139, 'type': 'Boolean', 'values': '{}', 'desc': 'decibel switch'}, {'code': 'decibel_sensitivity', 'dp_id': 140, 'type': 'Enum', 'values': '{"range":["0","1"]}', 'desc': 'decibel sensitivity'}, {'code': 'record_switch', 'dp_id': 150, 'type': 'Boolean', 'values': '{}', 'desc': 'record switch'}, {'code': 'record_mode', 'dp_id': 151, 'type': 'Enum', 'values': '{"range":["1","2"]}', 'desc': 'record mode'}, {'code': 'motion_tracking', 'dp_id': 161, 'type': 'Boolean', 'values': '{}', 'desc': 'motion tracking'}, {'code': 'motion_area_switch', 'dp_id': 168, 'type': 'Boolean', 'values': '{}', 'desc': 'motion area switch'}, {'code': 'motion_area', 'dp_id': 169, 'type': 'String', 'values': '{"maxlen":255}', 'desc': 'motion area'}]
   tuya_spec_status [{'code': 'basic_indicator', 'dp_id': 101, 'type': 'Boolean', 'values': '{}'}, {'code': 'basic_flip', 'dp_id': 103, 'type': 'Boolean', 'values': '{}'}, {'code': 'basic_osd', 'dp_id': 104, 'type': 'Boolean', 'values': '{}'}, {'code': 'motion_sensitivity', 'dp_id': 106, 'type': 'Enum', 'values': '{"range":["0","1","2"]}'}, {'code': 'basic_nightvision', 'dp_id': 108, 'type': 'Enum', 'values': '{"range":["0","1","2"]}'}, {'code': 'sd_storge', 'dp_id': 109, 'type': 'String', 'values': '{"maxlen":255}'}, {'code': 'sd_status', 'dp_id': 110, 'type': 'Integer', 'values': '{"unit":"","min":1,"max":5,"scale":1,"step":1}'}, {'code': 'sd_format', 'dp_id': 111, 'type': 'Boolean', 'values': '{}'}, {'code': 'movement_detect_pic', 'dp_id': 115, 'type': 'Raw', 'values': '{}'}, {'code': 'ptz_stop', 'dp_id': 116, 'type': 'Boolean', 'values': '{}'}, {'code': 'sd_format_state', 'dp_id': 117, 'type': 'Integer', 'values': '{"unit":"","min":-20000,"max":20000,"scale":1,"step":1}'}, {'code': 'ptz_control', 'dp_id': 119, 'type': 'Enum', 'values': '{"range":["1","2","3","4","5","6","7","0"]}'}, {'code': 'motion_switch', 'dp_id': 134, 'type': 'Boolean', 'values': '{}'}, {'code': 'decibel_switch', 'dp_id': 139, 'type': 'Boolean', 'values': '{}'}, {'code': 'decibel_sensitivity', 'dp_id': 140, 'type': 'Enum', 'values': '{"range":["0","1"]}'}, {'code': 'decibel_upload', 'dp_id': 141, 'type': 'String', 'values': '{"maxlen":255}'}, {'code': 'record_switch', 'dp_id': 150, 'type': 'Boolean', 'values': '{}'}, {'code': 'record_mode', 'dp_id': 151, 'type': 'Enum', 'values': '{"range":["1","2"]}'}, {'code': 'motion_tracking', 'dp_id': 161, 'type': 'Boolean', 'values': '{}'}, {'code': 'motion_area_switch', 'dp_id': 168, 'type': 'Boolean', 'values': '{}'}, {'code': 'motion_area', 'dp_id': 169, 'type': 'String', 'values': '{"maxlen":255}'}, {'code': 'alarm_message', 'dp_id': 185, 'type': 'String', 'values': '{}'}]


Mach bitte mal:
sudo -u fhem bash
pip3 install fhempy==0.1.472

Danach nur einen fhempyServer_15733 restart machen und lass mich dann wissen ob die Kamera funktioniert bzw. welche Fehler im Log auftauchen.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

dominik

Zitat von: ChrisA4 am 02 Oktober 2022, 10:44:33
Jetzt stehen ALLE GERÄTE auf Initilizing... >:(
bzw manchmal auf ERROR

Bitte um Details wie das passiert ist und bitte auch unbedingt immer Logs in solchen Fällen (fhem und fhempy Log).

Nachdem es ja heute schon mal funktioniert hat, mach bitte auch noch einen fhempyServer_15733 restart und lass mich dann wissen was der Status der Klima ist.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

ChrisA4

Zitat von: dominik am 02 Oktober 2022, 11:11:41
Bitte um Details wie das passiert ist und bitte auch unbedingt immer Logs in solchen Fällen (fhem und fhempy Log).

Nachdem es ja heute schon mal funktioniert hat, mach bitte auch noch einen fhempyServer_15733 restart und lass mich dann wissen was der Status der Klima ist.

Hab eigentlich nur die Räume verändert als plötzlich bei einem Gerät bei attr setzen der fehler ERROR kam seitdem geht nichts mehr

fhempy log

2022-10-02 11:19:20,055 - INFO     - fhempy.lib.fhem_pythonbinding: Shutdown initiated...
2022-10-02 11:19:20,120 - INFO     - fhempy.lib.fhem_pythonbinding: All modules successfully undefined!
2022-10-02 11:19:20,122 - INFO     - websockets.server: server closing
2022-10-02 11:19:26,068 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.491...
2022-10-02 11:19:26,072 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2022-10-02 11:19:26,112 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2022-10-02 11:19:35,141 - INFO     - websockets.server: connection open
2022-10-02 11:19:35,145 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2022-10-02 11:19:39,966 - ERROR    - Vitrine_Keller_bf4ff99fe700de582025jo: Failed create_device
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 426, in create_device
    await self._create_cloudmapping_dev()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 341, in _create_cloudmapping_dev
    await self.check_tuya_attributes()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 262, in check_tuya_attributes
    self._convert_values_to_json()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 268, in _convert_values_to_json
    spec["values"] = json.loads(spec["values"])
  File "/usr/lib/python3.9/json/__init__.py", line 339, in loads
    raise TypeError(f'the JSON object must be str, bytes or bytearray, '
TypeError: the JSON object must be str, bytes or bytearray, not dict
2022-10-02 11:19:39,972 - ERROR    - Springbrunnen_OG_bf2c81700c9d962d96bxsj: Failed create_device
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 426, in create_device
    await self._create_cloudmapping_dev()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 341, in _create_cloudmapping_dev
    await self.check_tuya_attributes()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 262, in check_tuya_attributes
    self._convert_values_to_json()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 268, in _convert_values_to_json
    spec["values"] = json.loads(spec["values"])
  File "/usr/lib/python3.9/json/__init__.py", line 339, in loads
    raise TypeError(f'the JSON object must be str, bytes or bytearray, '
TypeError: the JSON object must be str, bytes or bytearray, not dict
2022-10-02 11:19:39,982 - ERROR    - Nous5_bffd0c7e5b7aea4199jaaz: Failed create_device
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 426, in create_device
    await self._create_cloudmapping_dev()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 341, in _create_cloudmapping_dev
    await self.check_tuya_attributes()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 262, in check_tuya_attributes
    self._convert_values_to_json()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 268, in _convert_values_to_json
    spec["values"] = json.loads(spec["values"])
  File "/usr/lib/python3.9/json/__init__.py", line 339, in loads
    raise TypeError(f'the JSON object must be str, bytes or bytearray, '
TypeError: the JSON object must be str, bytes or bytearray, not dict
2022-10-02 11:19:39,988 - ERROR    - Cam_Nord_bfeb362a7007656081x09j: Failed create_device
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 426, in create_device
    await self._create_cloudmapping_dev()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 341, in _create_cloudmapping_dev
    await self.check_tuya_attributes()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 262, in check_tuya_attributes
    self._convert_values_to_json()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 268, in _convert_values_to_json
    spec["values"] = json.loads(spec["values"])
  File "/usr/lib/python3.9/json/__init__.py", line 339, in loads
    raise TypeError(f'the JSON object must be str, bytes or bytearray, '
TypeError: the JSON object must be str, bytes or bytearray, not dict
2022-10-02 11:19:39,993 - ERROR    - Klima_21320014a4cf12eb2408: Failed create_device
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 426, in create_device
    await self._create_cloudmapping_dev()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 341, in _create_cloudmapping_dev
    await self.check_tuya_attributes()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 262, in check_tuya_attributes
    self._convert_values_to_json()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 268, in _convert_values_to_json
    spec["values"] = json.loads(spec["values"])
  File "/usr/lib/python3.9/json/__init__.py", line 339, in loads
    raise TypeError(f'the JSON object must be str, bytes or bytearray, '
TypeError: the JSON object must be str, bytes or bytearray, not dict
2022-10-02 11:19:39,997 - ERROR    - Gartenhaus_Stecker_bf8a37bcac0c0dfb68e0zd: Failed create_device
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 426, in create_device
    await self._create_cloudmapping_dev()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 341, in _create_cloudmapping_dev
    await self.check_tuya_attributes()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 262, in check_tuya_attributes
    self._convert_values_to_json()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 268, in _convert_values_to_json
    spec["values"] = json.loads(spec["values"])
  File "/usr/lib/python3.9/json/__init__.py", line 339, in loads
    raise TypeError(f'the JSON object must be str, bytes or bytearray, '
TypeError: the JSON object must be str, bytes or bytearray, not dict
2022-10-02 11:19:40,000 - ERROR    - Dartlicht_bfaace0990fdcdadebpxnf: Failed create_device
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 426, in create_device
    await self._create_cloudmapping_dev()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 341, in _create_cloudmapping_dev
    await self.check_tuya_attributes()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 262, in check_tuya_attributes
    self._convert_values_to_json()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 268, in _convert_values_to_json
    spec["values"] = json.loads(spec["values"])
  File "/usr/lib/python3.9/json/__init__.py", line 339, in loads
    raise TypeError(f'the JSON object must be str, bytes or bytearray, '
TypeError: the JSON object must be str, bytes or bytearray, not dict
2022-10-02 11:19:40,003 - ERROR    - Dartscheibe_bf4264b6f6b3c5fa8fztz6: Failed create_device
2022-10-02 11:19:40,003 - ERROR    - Dartscheibe_bf4264b6f6b3c5fa8fztz6: Failed create_device
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 426, in create_device
    await self._create_cloudmapping_dev()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 341, in _create_cloudmapping_dev
    await self.check_tuya_attributes()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 262, in check_tuya_attributes
    self._convert_values_to_json()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 268, in _convert_values_to_json
    spec["values"] = json.loads(spec["values"])
  File "/usr/lib/python3.9/json/__init__.py", line 339, in loads
    raise TypeError(f'the JSON object must be str, bytes or bytearray, '
TypeError: the JSON object must be str, bytes or bytearray, not dict
2022-10-02 11:19:40,052 - ERROR    - LED_TV_Buero_bfd6f8368a299a33c66ziz: Failed create_device
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 426, in create_device
    await self._create_cloudmapping_dev()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 341, in _create_cloudmapping_dev
    await self.check_tuya_attributes()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 262, in check_tuya_attributes
    self._convert_values_to_json()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 268, in _convert_values_to_json
    spec["values"] = json.loads(spec["values"])
  File "/usr/lib/python3.9/json/__init__.py", line 339, in loads
    raise TypeError(f'the JSON object must be str, bytes or bytearray, '
TypeError: the JSON object must be str, bytes or bytearray, not dict
2022-10-02 11:19:40,055 - ERROR    - Fernsehlicht_bf4a23f4f8a190e7cb8ytf: Failed create_device
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 426, in create_device
    await self._create_cloudmapping_dev()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 341, in _create_cloudmapping_dev
    await self.check_tuya_attributes()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 262, in check_tuya_attributes
    self._convert_values_to_json()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 268, in _convert_values_to_json
    spec["values"] = json.loads(spec["values"])
  File "/usr/lib/python3.9/json/__init__.py", line 339, in loads
    raise TypeError(f'the JSON object must be str, bytes or bytearray, '
TypeError: the JSON object must be str, bytes or bytearray, not dict
2022-10-02 11:19:40,061 - ERROR    - LSC_Smart_Indoor_Camera_bf60f994ba65089eea3k2g: Failed create_device
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 426, in create_device
    await self._create_cloudmapping_dev()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 341, in _create_cloudmapping_dev
    await self.check_tuya_attributes()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 262, in check_tuya_attributes
    self._convert_values_to_json()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 268, in _convert_values_to_json
    spec["values"] = json.loads(spec["values"])
  File "/usr/lib/python3.9/json/__init__.py", line 339, in loads
    raise TypeError(f'the JSON object must be str, bytes or bytearray, '
TypeError: the JSON object must be str, bytes or bytearray, not dict
2022-10-02 11:19:40,065 - ERROR    - Couchlicht_bfe8664488739843aaiudq: Failed create_device
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 426, in create_device
    await self._create_cloudmapping_dev()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 341, in _create_cloudmapping_dev
    await self.check_tuya_attributes()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 262, in check_tuya_attributes
    self._convert_values_to_json()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 268, in _convert_values_to_json
    spec["values"] = json.loads(spec["values"])
  File "/usr/lib/python3.9/json/__init__.py", line 339, in loads
    raise TypeError(f'the JSON object must be str, bytes or bytearray, '
TypeError: the JSON object must be str, bytes or bytearray, not dict
2022-10-02 11:19:40,068 - ERROR    - Blinds_Controller_00408365e868e7894c32: Failed create_device
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 426, in create_device
    await self._create_cloudmapping_dev()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 341, in _create_cloudmapping_dev
    await self.check_tuya_attributes()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 262, in check_tuya_attributes
    self._convert_values_to_json()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 268, in _convert_values_to_json
    spec["values"] = json.loads(spec["values"])
  File "/usr/lib/python3.9/json/__init__.py", line 339, in loads
    raise TypeError(f'the JSON object must be str, bytes or bytearray, '
TypeError: the JSON object must be str, bytes or bytearray, not dict
2022-10-02 11:19:40,091 - ERROR    - Werkbank_Licht_bf5249863250b4bdd3jpx8: Failed create_device
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 426, in create_device
    await self._create_cloudmapping_dev()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 341, in _create_cloudmapping_dev
    await self.check_tuya_attributes()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 262, in check_tuya_attributes
    self._convert_values_to_json()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 268, in _convert_values_to_json
    spec["values"] = json.loads(spec["values"])
  File "/usr/lib/python3.9/json/__init__.py", line 339, in loads
    raise TypeError(f'the JSON object must be str, bytes or bytearray, '
TypeError: the JSON object must be str, bytes or bytearray, not dict