fhempy: tuya (lokal)

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

Vorheriges Thema - Nächstes Thema

Sommerfeld

Im Fhem werden keine set-Befehle angeboten.
Als ich über die App die Kamera bedient habe, sind Readings gekommen.
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....
   FHEMPYTYPE tuya
   FUUID      6339dc78-f33f-3b5c-6f69-e6c00678653a84c2
   IODev      local_pybinding
   NAME       Wohnzimmerkamera_bf905cb6a14a43dbf9hhfu
   NR         14072
   PYTHONTYPE tuya
   STATE      online
   TYPE       fhempy
   eventCount 15
   .attraggr:
   .attrminint:
   READINGS:
     2022-10-02 20:46:57   IODev           local_pybinding
     2022-10-02 20:46:20   active_time     1644234172
     2022-10-02 20:51:11   basic_flip      off
     2022-10-02 20:51:11   basic_indicator on
     2022-10-02 20:51:11   basic_nightvision 0
     2022-10-02 20:51:11   basic_osd       on
     2022-10-02 20:46:20   biz_type        0
     2022-10-02 20:46:20   category        sp
     2022-10-02 20:46:20   create_time     1644234172
     2022-10-02 20:46:20   icon            smart/icon/ay1525342462043yjwZs/e9af8e6817e79859b119a322895ffc0b.png
     2022-10-02 20:46:20   id              bf905cb6a14a43dbf9hhfu
     2022-10-02 20:46:20   ip              93.203.85.174
     2022-10-02 20:46:20   lat             52.8048
     2022-10-02 20:46:20   local_key       f9ea8d1efc541ead
     2022-10-02 20:46:20   lon             13.0448
     2022-10-02 20:46:20   model           Überwachungskamera
     2022-10-02 20:51:11   motion_sensitivity 1
     2022-10-02 20:51:11   movement_detect_pic eyJidWNrZXQiOiJ0eS1ldS1zdG9yYWdlMzAiLCJmaWxlcyI6W1siLzZjOTJkNS0xNTQ4NzQ3Ni10dXlhYjcyNTA0NWJmZTE0OTg2Zi9kZXRlY3QvMTY0NDI1ODQxMC5qcGVnP3BhcmFtPWlvYW5KV3p3T3ovKzF1QzFDMTBYMFZYdjcwdHZXNTlZYXpobmtZSmdMNUE9IiwiIl1dLCJ2IjoiMy4wIn0=
     2022-10-02 20:46:20   name            Wohnzimmerkamera
     2022-10-02 20:46:20   online          1
     2022-10-02 20:46:20   owner_id        15487476
     2022-10-02 20:46:20   product_id      35twetlejkkllta0
     2022-10-02 20:46:20   product_name    ZX-5110
     2022-10-02 20:51:10   ptz_control     4
     2022-10-02 20:51:11   ptz_stop        on
     2022-10-02 20:51:11   sd_format       false
     2022-10-02 20:51:11   sd_status       0.5
     2022-10-02 20:51:11   sd_storge       0|0|0
     2022-10-02 20:51:10   state           online
     2022-10-02 20:46:20   sub             0
     2022-10-02 20:46:20   time_zone       +01:00
     2022-10-02 20:46:20   uid             eu1598817427882BAzmt
     2022-10-02 20:46:20   update_time     1644242210
     2022-10-02 20:46:20   uuid            tuyab725045bfe14986f
   args:
     Wohnzimmerkamera_bf905cb6a14a43dbf9hhfu
     fhempy
     tuya
     35twetlejkkllta0
     bf905cb6a14a43dbf9hhfu
     192.168.178.98
     f9ea8d1efc541ead
     3.3
     fq83awrvav6glwxl28ed
     59327720c0834b8d8d4bc010f9b9a072
   argsh:
   helper:
     bm:
       fhempy_Attr:
         cnt        10
         dmx        -1000
         dtot       0
         dtotcnt    0
         mTS        02.10. 20:46:17
         max        0.0418059825897217
         tot        0.0999505519866943
         mAr:
           set
           Wohnzimmerkamera_bf905cb6a14a43dbf9hhfu
           room
           fhempy
       fhempy_Define:
         cnt        1
         dmx        -1000
         dtot       0
         dtotcnt    0
         mTS        02.10. 20:46:16
         max        0.0194549560546875
         tot        0.0194549560546875
         mAr:
           HASH(0x563077fcefe8)
           ARRAY(0x563072920fb0)
           HASH(0x5630770f9810)
       fhempy_Get:
         cnt        4
         dmx        -1000
         dtot       0
         dtotcnt    0
         mTS        02.10. 20:48:11
         max        0.00657796859741211
         tot        0.0164661407470703
         mAr:
           HASH(0x563077fcefe8)
           ARRAY(0x563077831210)
           HASH(0x563077449f08)
       fhempy_Set:
         cnt        85
         dmx        -1000
         dtot       0
         dtotcnt    0
         mTS        02.10. 20:46:57
         max        0.144542932510376
         tot        1.23940968513489
         mAr:
           HASH(0x563077fcefe8)
           ARRAY(0x563077fccab0)
           HASH(0x563077fec950)
   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': '{}'}]

ZitatOk, der state online sagt nur wenig aus. Bist du sicher, dass du über fhempy die Kamera schon mal geschalten hast?
Ich hatte nur auf state geachtet, geschaltet noch nicht.

Sommerfeld

Hallo Dominik,
soll ich auf der 0.1.472 Version bleiben oder kann ich auf 0.1.497 updaten?
V G

dominik

Bitte auf die letzte Version aktualisieren und dort testen.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Sommerfeld

#273
ZitatBitte auf die letzte Version aktualisieren und dort testen.

Update auf 0.1.498 durchgeführt.
Einige Device sind jetzt auf ready. Einige andere sind auf Initializing... geblieben.
Ein Muster kann ich leider nicht erkennen.
Von der Kamera füge ich ein List an.
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
   .FhemMetaInternals 1
   DEF        tuya 35twetlejkkllta0 bf905cb6a14a43dbf9hhfu 192.168.178.98 f9ea8d1efc541ead 3.3 1234... 1234...
   DEVICEID   bf905cb6a14a43dbf9hhfu
   FHEMPYTYPE tuya
   FUUID      6339dc78-f33f-3b5c-6f69-e6c00678653a84c2
   FVERSION   10_fhempy.pm:0.182830/2019-01-16
   IODev      local_pybinding
   NAME       Wohnzimmerkamera_bf905cb6a14a43dbf9hhfu
   NR         1267
   PYTHONTYPE tuya
   STATE      ready
   TYPE       fhempy
   eventCount 12
   .attraggr:
   .attrminint:
   READINGS:
     2022-10-02 20:46:20   active_time     1644234172
     2022-10-03 08:22:30   basic_flip      off
     2022-10-03 08:22:30   basic_indicator on
     2022-10-03 08:22:30   basic_nightvision 0
     2022-10-03 08:22:30   basic_osd       on
     2022-10-02 20:46:20   biz_type        0
     2022-10-02 20:46:20   category        sp
     2022-10-02 20:46:20   create_time     1644234172
     2022-10-02 20:46:20   icon            smart/icon/ay1525342462043yjwZs/e9af8e6817e79859b119a322895ffc0b.png
     2022-10-02 20:46:20   id              bf905cb6a14a43dbf9hhfu
     2022-10-02 20:46:20   ip              93.203.85.174
     2022-10-02 20:46:20   lat             52.8048
     2022-10-02 20:46:20   local_key       f9ea8d1efc541ead
     2022-10-02 20:46:20   lon             13.0448
     2022-10-02 20:46:20   model           Überwachungskamera
     2022-10-03 08:22:30   motion_sensitivity 1
     2022-10-03 08:22:30   movement_detect_pic eyJidWNrZXQiOiJ0eS1ldS1zdG9yYWdlMzAiLCJmaWxlcyI6W1siLzZjOTJkNS0xNTQ4NzQ3Ni10dXlhYjcyNTA0NWJmZTE0OTg2Zi9kZXRlY3QvMTY0NDI1ODQxMC5qcGVnP3BhcmFtPWlvYW5KV3p3T3ovKzF1QzFDMTBYMFZYdjcwdHZXNTlZYXpobmtZSmdMNUE9IiwiIl1dLCJ2IjoiMy4wIn0=
     2022-10-02 20:46:20   name            Wohnzimmerkamera
     2022-10-04 21:09:07   online          1
     2022-10-02 20:46:20   owner_id        15487476
     2022-10-02 20:46:20   product_id      35twetlejkkllta0
     2022-10-04 20:22:07   product_name    ZX-5110
     2022-10-04 21:06:06   ptz_control     6
     2022-10-03 08:22:30   ptz_stop        on
     2022-10-03 08:22:30   sd_format       false
     2022-10-03 08:22:30   sd_status       0.5
     2022-10-03 08:22:30   sd_storge       0|0|0
     2022-10-04 21:10:14   state           ready
     2022-10-02 20:46:20   sub             0
     2022-10-02 20:46:20   time_zone       +01:00
     2022-10-02 20:46:20   uid             eu1598817427882BAzmt
     2022-10-02 20:46:20   update_time     1644242210
     2022-10-02 20:46:20   uuid            tuyab725045bfe14986f
   args:
     Wohnzimmerkamera_bf905cb6a14a43dbf9hhfu
     fhempy
     tuya
     35twetlejkkllta0
     bf905cb6a14a43dbf9hhfu
     192.168.178.98
     f9ea8d1efc541ead
     3.3
     fq83awrvav6glwxl28ed
     59327720c0834b8d8d4bc010f9b9a072
   argsh:
   helper:
     bm:
       fhempy_Attr:
         cnt        3
         dmx        -1000
         dtot       0
         dtotcnt    0
         mTS        04.10. 20:23:26
         max        0.00779104232788086
         tot        0.017035961151123
         mAr:
           set
           Wohnzimmerkamera_bf905cb6a14a43dbf9hhfu
           alias
           Wohnzimmerkamera
       fhempy_Get:
         cnt        7
         dmx        -1000
         dtot       0
         dtotcnt    0
         mTS        04.10. 21:20:02
         max        0.0869488716125488
         tot        0.106245279312134
         mAr:
           HASH(0x5639a1182a90)
           ARRAY(0x5639a458a4e8)
           HASH(0x5639a15da888)
       fhempy_Set:
         cnt        79
         dmx        -1000
         dtot       0
         dtotcnt    0
         mTS        04.10. 20:31:33
         max        3.53080010414124
         tot        5.04773449897766
         mAr:
           HASH(0x5639a1182a90)
           ARRAY(0x5639a53ae940)
           HASH(0x5639a4236a98)
   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': '{}'}]

dominik

Steht was im fhempy Log dazu?
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Sommerfeld

Hilft dies weiter?
2022-10-04 21:43:07,922 - ERROR    - Stecker_SilverCrest_Hub_Ueberwachung_bf7a36070c5531b25aubiy: Failed to connect to device
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.10/site-packages/fhempy/lib/tuya/tuya.py", line 405, in setup_connection
    self._connected_device = await pytuya.connect(
  File "/opt/fhem/.local/lib/python3.10/site-packages/fhempy/lib/tuya/pytuya/__init__.py", line 676, in connect
    _, protocol = await loop.create_connection(
  File "/usr/lib/python3.10/asyncio/base_events.py", line 1064, in create_connection
    raise exceptions[0]
  File "/usr/lib/python3.10/asyncio/base_events.py", line 1049, in create_connection
    sock = await self._connect_sock(
  File "/usr/lib/python3.10/asyncio/base_events.py", line 960, in _connect_sock
    await self.sock_connect(sock, address)
  File "/usr/lib/python3.10/asyncio/selector_events.py", line 500, in sock_connect
    return await fut
  File "/usr/lib/python3.10/asyncio/selector_events.py", line 535, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
TimeoutError: [Errno 110] Connect call failed ('192.168.178.99', 6668)
2022-10-04 21:44:07,236 - WARNING  - asyncio: Executing <Task pending name='Task-36789' coro=<FhemModule._run_coro() running at /opt/fhem/.local/lib/python3.10/site-packages/fhempy/lib/generic.py:185> wait_for=<Future pending cb=[Task.task_wakeup()] created at /usr/lib/python3.10/asyncio/base_events.py:429> cb=[FhemModule._handle_task_result()] created at /usr/lib/python3.10/asyncio/tasks.py:337> took 0.118 seconds
2022-10-04 21:44:23,699 - ERROR    - Motorrad_Ladestation_Carport_bf99d29dcdc176fbecfx9m: Failed to connect to device
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.10/site-packages/fhempy/lib/tuya/tuya.py", line 405, in setup_connection
    self._connected_device = await pytuya.connect(
  File "/opt/fhem/.local/lib/python3.10/site-packages/fhempy/lib/tuya/pytuya/__init__.py", line 676, in connect
    _, protocol = await loop.create_connection(
  File "/usr/lib/python3.10/asyncio/base_events.py", line 1064, in create_connection
    raise exceptions[0]
  File "/usr/lib/python3.10/asyncio/base_events.py", line 1049, in create_connection
    sock = await self._connect_sock(
  File "/usr/lib/python3.10/asyncio/base_events.py", line 960, in _connect_sock
    await self.sock_connect(sock, address)
  File "/usr/lib/python3.10/asyncio/selector_events.py", line 500, in sock_connect
    return await fut
  File "/usr/lib/python3.10/asyncio/selector_events.py", line 535, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
TimeoutError: [Errno 110] Connect call failed ('192.168.178.76', 6668)

stefanru

Hi Dominik,

ich habe auch das Problem das lokal Devices in "Initializing..." bleiben.
Im fhempy.log sehe ich:
2022-10-08 16:11:15,320 - ERROR    - Computer_bf881b7977c814af88jmrc: 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 339, 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 266, 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


Hast du eine Idee?

Gruß und Danke,
Stefan

dominik

Bitte mit der letzten Version testen, da sollte das nicht mehr passieren.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

stefanru

Ah ja jetzt tut's.

Danke dir!

Gruß,
Stefan

torsten12

Hallo,

ich habe das Problem, dass die set Auswahl /  das set Menü nicht mehr angezeigt wird. Im Logfile wird beim Starten Fehler angezeigt:

2022-10-14 10:32:55,738 - INFO     - fhempy.lib.fhem_pythonbinding: Restart initiated...
2022-10-14 10:32:55,749 - INFO     - fhempy.lib.fhem_pythonbinding: All modules successfully undefined!
2022-10-14 10:32:55,751 - INFO     - websockets.server: server closing
2022-10-14 10:33:05,794 - INFO     - websockets.server: connection closed
2022-10-14 10:33:05,797 - INFO     - websockets.server: server closed
2022-10-14 10:33:05,802 - INFO     - fhempy.lib.fhem_pythonbinding: Exit 1
2022-10-14 10:33:07,670 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.506...
2022-10-14 10:33:07,682 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2022-10-14 10:33:07,743 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2022-10-14 10:33:15,825 - INFO     - websockets.server: connection open
2022-10-14 10:33:15,829 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2022-10-14 10:33:17,603 - ERROR    - Infrarotheizung_bf4da370f137b68a78iwb0: Failed create_device
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/tuya/tuya.py", line 466, in create_device
    await self._create_cloudmapping_dev()
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/tuya/tuya.py", line 390, in _create_cloudmapping_dev
    info = await self.get_tuya_dev_info()
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/tuya/tuya.py", line 323, in get_tuya_dev_info
    for dev in resp["result"]:
KeyError: 'result'

Das ganze ist nach dem Update auf die Version 0.1.506 (fhempy_local) passiert.

Hat hier jemand eine Idee? Vielen Dank.

dominik

Das sieht nach einem Problem mit der Abfrage bei der Tuya IoT Cloud aus. Das Device gibt es sicher noch in der iot Cloud? Schau mal bitte dort nach.

Hast du das Problem nur mit diesem Device oder mit allen tuya Devices?
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

torsten12

Hallo,
danke erst einmal für deine Unterstützung.
Ja das Device, eine Infrarotheizung, ist noch in der Cloud vorhanden.

Ich habe die Dienste in der Tuya-Cloud geprüft. Sind alle aktiv.

Ich schaue mal, ob ich das Device lösche und noch mal neu anlege.

vielen Dank


Rossi

Hi, ich habe mein erstes Geräte eine Lytmi Ambientenbeleuchtung in Fhem eingebunden.

Leider bleibt es, nachdem alle Readings und Attribute angelegt wurden auf "Initializing..." stehen und wird auch nicht mehr upgedated.
Das einzige, das funktioniert ist ON/OFF. Das kann ich an der HW und im Tuya IoT Platform Debuging sehen.
"set Lytmi switch_led on"

Kann mir hier evtl. jemand weiter helfen?

Im fhempy.log Log steht beim Pi Neustart folgendes:

2022-10-23 17:25:41,631 - INFO     - fhempy.lib.fhem_pythonbinding: Shutdown initiated...
2022-10-23 17:25:41,662 - INFO     - fhempy.lib.fhem_pythonbinding: All modules successfully undefined!
2022-10-23 17:25:41,663 - INFO     - websockets.server: server closing
2022-10-23 17:26:28,106 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.508...
2022-10-23 17:26:28,112 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2022-10-23 17:26:28,185 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2022-10-23 17:26:31,929 - INFO     - websockets.server: connection open
2022-10-23 17:26:31,931 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2022-10-23 17:27:10,429 - WARNING  - Lytmi: dp_27 in spec but not found locally. This should be reported to TuYa
2022-10-23 17:27:10,436 - WARNING  - Lytmi: dp_28 in spec but not found locally. This should be reported to TuYa


Das define des Device sah so aus, da es mit dem create des "fhem_system" auch das selbe Verhalten zeigte, habe ich es so versucht.
"define Lytmi fhempy tuya api bf9a9e37947cxxxxxxxxxx 192.168.7.25 163f6951axxxxxxx 3.3 qfmjwvrtr5adxxxxxxxx 4edce9e221334841axxxxxxxxxxxxxx"

Das List des Device:

Internals:
   DEF        tuya api bf9a9e37947cxxxxxxxxxx 192.168.7.25 163f6951axxxxxxx 3.3 qfmjwvrtxxxxxxxxxxxx 4edce9e221334841axxxxxxxxxxxxxx
   DEVICEID   bf9a9e37947cxxxxxxxxxx
   FHEMPYTYPE tuya
   FUUID      635556ba-f33f-c387-7c3c-44e75b2d5e647ebd
   IODev      fhempy_local
   NAME       Lytmi
   NR         991
   PYTHONTYPE tuya
   STATE      Initializing...
   TYPE       fhempy
   eventCount 2
   CHANGED:
     switch_led: on
   READINGS:
     2022-10-23 16:59:08   active_time     1666454491
     2022-10-23 16:59:08   biz_type        18
     2022-10-23 16:59:09   bright_value    1000.0
     2022-10-23 16:59:08   category        dd
     2022-10-23 16:59:09   countdown       0.0
     2022-10-23 16:59:08   create_time     1641649822
     2022-10-23 16:59:08   icon            smart/icon/bay1615980634491NPlo/f297207c1591b5eaca2b2a93fd2e3452.png
     2022-10-23 16:59:08   id              bf9a9e37947cxxxxxxxxxx
     2022-10-23 16:59:08   ip              188.210.xx.xxx
     2022-10-23 16:59:08   lat             48.xx68
     2022-10-23 16:59:08   local_key       163f6951axxxxxxx
     2022-10-23 16:59:08   lon             10.xx38
     2022-10-23 16:59:08   name            AmbiLight
     2022-10-23 17:26:37   online          1
     2022-10-23 16:59:08   owner_id        50339907
     2022-10-23 16:59:08   product_id      qedtadbae1wfzkru
     2022-10-23 16:59:08   product_name    Screen sync smart light
     2022-10-23 17:26:36   state           Initializing...
     2022-10-23 16:59:08   sub             0
     2022-10-23 17:27:10   switch_led      on
     2022-10-23 16:59:08   time_zone       +02:00
     2022-10-23 16:59:08   uid             eu1644001821005bfIcL
     2022-10-23 16:59:08   update_time     1666454491
     2022-10-23 16:59:08   uuid            9a7c673fd543a119
     2022-10-23 16:59:09   work_mode       scene
   args:
     Lytmi
     fhempy
     tuya
     api
     bf9a9e37947cxxxxxxxxxx
     192.168.7.25
     163f6951axxxxxxx
     3.3
     qfmjwvrtxxxxxxxxxxxx
     4edce9e221334841axxxxxxxxxxxxxx
   argsh:
Attributes:
   DbLogExclude .*
   dp_20      switch_led
   dp_21      work_mode
   dp_22      bright_value
   dp_24      colour_data
   dp_25      scene_data
   dp_26      countdown
   event-on-change-reading .*
   group      tuya
   room       Zimmer -> Wohnzimmer,fhempy
   tuya_spec_functions [{'code': 'switch_led', 'dp_id': 20, 'type': 'Boolean', 'values': {}, 'desc': 'switch led'}, {'code': 'work_mode', 'dp_id': 21, 'type': 'Enum', 'values': {'range': ['white', 'colour', 'scene', 'music']}, 'desc': 'work mode'}, {'code': 'bright_value', 'dp_id': 22, 'type': 'Integer', 'values': {'min': 10, 'max': 1000, 'scale': 0, 'step': 1}, 'desc': 'bright value'}, {'code': 'colour_data', 'dp_id': 24, 'type': 'Json', 'values': {'h': {'min': 0, 'scale': 0, 'unit': '', 'max': 360, 'step': 1}, 's': {'min': 0, 'scale': 0, 'unit': '', 'max': 1000, 'step': 1}, 'v': {'min': 0, 'scale': 0, 'unit': '', 'max': 1000, 'step': 1}}, 'desc': 'colour data'}, {'code': 'scene_data', 'dp_id': 25, 'type': 'Json', 'values': {'scene_num': {'min': 1, 'scale': 0, 'max': 8, 'step': 1}, 'scene_units': {'unit_change_mode': {'range': ['static', 'jump', 'gradient']}, 'unit_switch_duration': {'min': 0, 'scale': 0, 'max': 100, 'step': 1}, 'unit_gradient_duration': {'min': 0, 'scale': 0, 'max': 100, 'step': 1}, 'bright': {'min': 0, 'scale': 0, 'max': 1000, 'step': 1}, 'temperature': {'min': 0, 'scale': 0, 'max': 1000, 'step': 1}, 'h': {'min': 0, 'scale': 0, 'unit': '', 'max': 360, 'step': 1}, 's': {'min': 0, 'scale': 0, 'unit': '', 'max': 1000, 'step': 1}, 'v': {'min': 0, 'scale': 0, 'unit': '', 'max': 1000, 'step': 1}}}, 'desc': 'scene data'}, {'code': 'countdown', 'dp_id': 26, 'type': 'Integer', 'values': {'min': 0, 'max': 86400, 'scale': 0, 'step': 1}, 'desc': 'countdown'}, {'code': 'music_data', 'dp_id': 27, 'type': 'Json', 'values': {'change_mode': {'range': ['direct', 'gradient']}, 'bright': {'min': 0, 'scale': 0, 'unit': '', 'max': 1000, 'step': 1}, 'temperature': {'min': 0, 'scale': 0, 'unit': '', 'max': 1000, 'step': 1}, 'h': {'min': 0, 'scale': 0, 'unit': '', 'max': 360, 'step': 1}, 's': {'min': 0, 'scale': 0, 'unit': '', 'max': 255, 'step': 1}, 'v': {'min': 0, 'scale': 0, 'unit': '', 'max': 255, 'step': 1}}, 'desc': 'music data'}, {'code': 'control_data', 'dp_id': 28, 'type': 'Json', 'values': {'change_mode': {'range': ['direct', 'gradient']}, 'bright': {'min': 0, 'scale': 0, 'unit': '', 'max': 1000, 'step': 1}, 'temperature': {'min': 0, 'scale': 0, 'unit': '', 'max': 1000, 'step': 1}, 'h': {'min': 0, 'scale': 0, 'unit': '', 'max': 360, 'step': 1}, 's': {'min': 0, 'scale': 0, 'unit': '', 'max': 255, 'step': 1}, 'v': {'min': 0, 'scale': 0, 'unit': '', 'max': 255, 'step': 1}}, 'desc': 'control data'}]
   tuya_spec_status [{'code': 'switch_led', 'dp_id': 20, 'type': 'Boolean', 'values': {}}, {'code': 'work_mode', 'dp_id': 21, 'type': 'Enum', 'values': {'range': ['white', 'colour', 'scene', 'music']}}, {'code': 'bright_value', 'dp_id': 22, 'type': 'Integer', 'values': {'min': 10, 'max': 1000, 'scale': 0, 'step': 1}}, {'code': 'colour_data', 'dp_id': 24, 'type': 'Json', 'values': {'h': {'min': 0, 'scale': 0, 'unit': '', 'max': 360, 'step': 1}, 's': {'min': 0, 'scale': 0, 'unit': '', 'max': 1000, 'step': 1}, 'v': {'min': 0, 'scale': 0, 'unit': '', 'max': 1000, 'step': 1}}}, {'code': 'scene_data', 'dp_id': 25, 'type': 'Json', 'values': {'scene_num': {'min': 1, 'scale': 0, 'max': 8, 'step': 1}, 'scene_units': {'unit_change_mode': {'range': ['static', 'jump', 'gradient']}, 'unit_switch_duration': {'min': 0, 'scale': 0, 'max': 100, 'step': 1}, 'unit_gradient_duration': {'min': 0, 'scale': 0, 'max': 100, 'step': 1}, 'bright': {'min': 0, 'scale': 0, 'max': 1000, 'step': 1}, 'temperature': {'min': 0, 'scale': 0, 'max': 1000, 'step': 1}, 'h': {'min': 0, 'scale': 0, 'unit': '', 'max': 360, 'step': 1}, 's': {'min': 0, 'scale': 0, 'unit': '', 'max': 1000, 'step': 1}, 'v': {'min': 0, 'scale': 0, 'unit': '', 'max': 1000, 'step': 1}}}}, {'code': 'countdown', 'dp_id': 26, 'type': 'Integer', 'values': {'min': 0, 'max': 86400, 'scale': 0, 'step': 1}}]


Hier das list des fhem_system devices:

Internals:
   API_KEY    qfmjwvrtr5adxxxxxxxx
   API_SECRET 4edce9e221334841axxxxxxxxxxxxxx
   DEF        tuya setup qfmjwvrtr5adxxxxxxxx 4edce9e221334841axxxxxxxxxxxxxx bf9a9e37947cxxxxxxx
   DEVICEID   0
   FHEMPYTYPE tuya
   FUUID      6353d59b-f33f-c387-41d7-a1df682ce1b98fe2
   IODev      fhempy_local
   NAME       tuya_system
   NR         990
   PYTHONTYPE tuya
   REGION     eu
   STATE      ready
   TYPE       fhempy
   READINGS:
     2022-10-22 18:07:09   bf9a9e37947cxxxxxxx_icon https://images.tuyaeu.com/smart/icon/bay1615980634491NPlo/f297207c1591b5eaca2b2a93fd2e3452.png
     2022-10-22 18:07:09   bf9a9e37947cxxxxxxx_id bf9a9e37947cxxxxxxx
     2022-10-22 18:07:59   bf9a9e37947cxxxxxxx_ip 192.168.7.25
     2022-10-22 18:07:09   bf9a9e37947cxxxxxxx_localkey 163f6951axxxxxxx
     2022-10-22 18:07:09   bf9a9e37947cxxxxxxx_name AmbiLight
     2022-10-22 18:07:09   bf9a9e37947cxxxxxxx_productid qedtadbae1wfzkru
     2022-10-22 18:07:59   bf9a9e37947cxxxxxxx_version 3.3
     2022-10-23 17:26:34   state           ready
   args:
     tuya_system
     fhempy
     tuya
     setup
     qfmjwvrtr5adxxxxxxxx
     4edce9e221334841axxxxxxxxxxxxxx
     bf9a9e37947cxxxxxxx
   argsh:
Attributes:
   DbLogExclude .*
   IODev      fhempy_local
   event-on-change-reading .*
   group      tuya
   room       Interfaces,fhempy


Gruß
CRo

ahermann86

#283
Hallo,

ich versuche gerade ein Tuya Device in mein neu aufgesetztes System einzubinden.
Nach dem Scan und anlegen bleibt der Status des Devices auf "Initializing..."

Ich habe dann nochmal alles gelöscht und nur Mal den Server gestartet. Im Log erscheint schon nach dem Neustart folgendes:


2022-11-02 12:24:25,711 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.508...
2022-11-02 12:24:25,719 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2022-11-02 12:24:25,826 - WARNING  - asyncio: Executing <Task pending name='Task-1' coro=<async_main() running at /usr/local/lib/python3.10/dist-packages/fhempy/lib/fhem_pythonbinding.py:616> wait_for=<_GatheringFuture pending cb=[Task.task_wakeup()] created at /usr/lib/python3.10/asyncio/tasks.py:665> cb=[_run_until_complete_cb() at /usr/lib/python3.10/asyncio/base_events.py:184] created at /usr/lib/python3.10/asyncio/tasks.py:636> took 0.116 seconds
2022-11-02 12:24:25,831 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2022-11-02 12:24:31,330 - INFO     - websockets.server: connection open
2022-11-02 12:24:31,336 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2022-11-02 12:24:31,478 - ERROR    - fhempy.lib.core.discover_fhempy.discover_fhempy: async_get_service_info failed for _http._tcp.local. - pvserver._wr_http._tcp.local.
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/fhempy/lib/core/discover_fhempy/discover_fhempy.py", line 32, in foundDevice
    info = await self.zeroconf.async_get_service_info(type, name)
  File "/usr/local/lib/python3.10/dist-packages/zeroconf/asyncio.py", line 233, in async_get_service_info
    info = AsyncServiceInfo(type_, name)
  File "/usr/local/lib/python3.10/dist-packages/zeroconf/_services/info.py", line 124, in __init__
    raise BadTypeInNameException
zeroconf._exceptions.BadTypeInNameException
2022-11-02 12:24:31,680 - WARNING  - asyncio: Executing <Handle _SelectorSocketTransport._read_ready() created at /usr/lib/python3.10/asyncio/selector_events.py:254> took 0.106 seconds


Definiere ich in FHEM "fhempy tuya setup.." und scanne und lege den gefunden Sensor an, steht das im Log:


2022-11-02 12:28:46,492 - ERROR    - fhempy.lib.core.discover_fhempy.discover_fhempy: async_get_service_info failed for _http._tcp.local. - pvserver._wr_http._tcp.local.
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/fhempy/lib/core/discover_fhempy/discover_fhempy.py", line 32, in foundDevice
    info = await self.zeroconf.async_get_service_info(type, name)
  File "/usr/local/lib/python3.10/dist-packages/zeroconf/asyncio.py", line 233, in async_get_service_info
    info = AsyncServiceInfo(type_, name)
  File "/usr/local/lib/python3.10/dist-packages/zeroconf/_services/info.py", line 124, in __init__
    raise BadTypeInNameException
zeroconf._exceptions.BadTypeInNameException
2022-11-02 12:29:09,238 - ERROR    - tuya_local_bf2e048397c21cbf7d1zq1: Failed to connect to device
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/fhempy/lib/tuya/tuya.py", line 444, in setup_connection
    self._connected_device = await pytuya.connect(
  File "/usr/local/lib/python3.10/dist-packages/fhempy/lib/tuya/pytuya/__init__.py", line 676, in connect
    _, protocol = await loop.create_connection(
  File "/usr/lib/python3.10/asyncio/base_events.py", line 1064, in create_connection
    raise exceptions[0]
  File "/usr/lib/python3.10/asyncio/base_events.py", line 1049, in create_connection
    sock = await self._connect_sock(
  File "/usr/lib/python3.10/asyncio/base_events.py", line 960, in _connect_sock
    await self.sock_connect(sock, address)
  File "/usr/lib/python3.10/asyncio/selector_events.py", line 500, in sock_connect
    return await fut
  File "/usr/lib/python3.10/asyncio/selector_events.py", line 535, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
OSError: [Errno 113] Connect call failed ('192.168.2.84', 6668)


Was mache ich falsch bzw. was fehlt?

Gruß
Axel (..der mit dem Orange Pi One)

Edit:

Ich habe das ganze noch auf einem "Debian GNU/Linux 11 (bullseye)" Server ausprobiert. Da passiert das gleiche:


2022-11-03 09:31:34,786 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.508...
2022-11-03 09:31:34,797 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2022-11-03 09:31:34,906 - 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:616> wait_for=<_GatheringFuture pending cb=[<TaskWakeupMethWrapper object at 0x7f2fb73efdf0>()] 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.120 seconds
2022-11-03 09:31:34,908 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2022-11-03 09:31:36,145 - INFO     - websockets.server: connection open
2022-11-03 09:31:36,151 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2022-11-03 09:31:36,321 - ERROR    - fhempy.lib.core.discover_fhempy.discover_fhempy: async_get_service_info failed for _http._tcp.local. - pvserver._wr_http._tcp.local.
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/core/discover_fhempy/discover_fhempy.py", line 32, in foundDevice
    info = await self.zeroconf.async_get_service_info(type, name)
  File "/opt/fhem/.local/lib/python3.9/site-packages/zeroconf/asyncio.py", line 233, in async_get_service_info
    info = AsyncServiceInfo(type_, name)
  File "/opt/fhem/.local/lib/python3.9/site-packages/zeroconf/_services/info.py", line 124, in __init__
    raise BadTypeInNameException
zeroconf._exceptions.BadTypeInNameException
2022-11-03 09:36:41,537 - ERROR    - tuya_local_bf2e048397c21cbf7d1zq1: Failed to connect to device
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 444, in setup_connection
    self._connected_device = await pytuya.connect(
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/pytuya/__init__.py", line 676, in connect
    _, protocol = await loop.create_connection(
  File "/usr/lib/python3.9/asyncio/base_events.py", line 1056, in create_connection
    raise exceptions[0]
  File "/usr/lib/python3.9/asyncio/base_events.py", line 1041, in create_connection
    sock = await self._connect_sock(
  File "/usr/lib/python3.9/asyncio/base_events.py", line 955, in _connect_sock
    await self.sock_connect(sock, address)
  File "/usr/lib/python3.9/asyncio/selector_events.py", line 502, in sock_connect
    return await fut
  File "/usr/lib/python3.9/asyncio/selector_events.py", line 537, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
OSError: [Errno 113] Connect call failed ('192.168.2.84', 6668)
2022-11-03 09:37:13,747 - WARNING  - asyncio: Executing <Task pending name='Task-71' coro=<FhemModule._run_coro() running at /opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/generic.py:185> wait_for=<Future pending cb=[BaseSelectorEventLoop._sock_write_done(14, handle=<Handle BaseS...events.py:296>)(), <TaskWakeupMethWrapper object at 0x7f2fae945550>()] created at /usr/lib/python3.9/asyncio/base_events.py:424> cb=[FhemModule._handle_task_result()] created at /usr/lib/python3.9/asyncio/tasks.py:361> took 0.123 seconds

denis.robel

Ich bekomme beim Anklicken der Devices, die mit fhempy angelegt worden sind ein Popup mit folgender Meldung:

fhem?detail=og_jannik.heizung2 line 428:
TypeError: helpLink[0] is undefined

Was kann das sein?
VG

Denis