fhempy: tuya (lokal)

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

Vorheriges Thema - Nächstes Thema

ChrisA4

fhem log hab ich die per pm geschickt

ChrisA4

gerade entdeckt

127.0.0.1: Verbindungsaufbau abgelehnt (111)

Internals:
   BindingType fhempy
   DEF        fhempy
   DeviceName ws:127.0.0.1:15733
   FD         99
   FUUID      627d1469-f33f-c95d-383f-64875f4db38e21c5
   IP         127.0.0.1
   NAME       pyBinding
   NR         300
   NTFY_ORDER 50-pyBinding
   PARTIAL   
   PORT       15733
   STATE      opened
   TYPE       BindingsIo
   WEBSOCKET  1
   binary     1
   devioLoglevel 0
   eventCount 23
   installing 0
   localBinding 1
   nextOpenDelay 10
   prev_error 127.0.0.1: Verbindungsaufbau abgelehnt (111)
   READINGS:
     2022-10-02 11:19:35   hostname        fhem
     2022-10-02 11:19:35   os              posix
     2022-10-02 11:19:35   python          3.9.2
     2022-10-02 11:19:35   release         5.15.61-v7l+
     2022-10-02 11:56:00   state           opened
     2022-10-02 11:19:35   system          Linux
     2022-10-02 11:19:35   version         0.1.491
     2022-10-02 11:19:35   version_available 0.1.492
     2022-10-02 11:19:35   version_release_notes <html><a href="https://github.com/fhempy/fhempy/releases" target="_blank">Release Notes</a></html>
   args:
     pyBinding
     BindingsIo
     fhempy
   argsh:
Attributes:
   devStateIcon {      my $status_img = "10px-kreis-gruen";;      my $status_txt = "connected";;      if (ReadingsVal($name, "state", "disconnected") eq "disconnected") {        $status_img = "10px-kreis-rot";;        $status_txt = "disconnected";;      }      my $ver = ReadingsVal($name, "version", "-");;      "<div><a>".FW_makeImage($status_img, $status_txt)."</a><a> ".$ver." </a><a  href=\"/fhem?cmd.dummy=set $name update&XHR=1\" title=\"Start update\">".FW_makeImage("refresh")."</a></div>"    }
   group      fhempy
   icon       file_json-ld2
   room       System->fhempy

dominik

Bitte mit 0.1.493 testen.

Der Fehler "Verbindungsaufbau abgelehnt" ist ok, da es prev_error (previous error) ist und der Status aktuell bereits opened.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

ChrisA4

#258
einige geräte sind wieder da
sobald ich aber ein gerät manuel hinzufüge kommt die initialsierung dannch error

ChrisA4

#259
nochmal das log


dominik

Zitat von: ChrisA4 am 02 Oktober 2022, 14:23:25
einige geräte sind wieder da
sobald ich aber ein gerät manuel hinzufüge kommt die initialsierung dannch error

Wie fügst du ein Gerät manuell hinzu?
Bitte das Log in code Quotes.
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, 14:51:22

Bitte das Log in code Quotes.
der letzte teil will einfach nicht

ZitatWie fügst du ein Gerät manuell hinzu?

wenn das gerät gefunden worden ist mit offline die ip ersetzen das hat bis lang geklappt

dominik

Mach bitte nochmals einen restart von fhempyServer_15733 und drück bitte 5min nix in FHEMWEB. Poste danach nochmals das fhem Log.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

dominik

@Chris, nur zur Sicherheit, du testest eh mit der letzten fhempy Version und hast nicht (wie ich für Sommerfeld geschrieben habe) downgegraded, oder? 0.1.494 sollte beim BindingsIo Device stehen.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

ChrisA4

#264
2022.10.02 16:58:43 1: BindingsIo (pyBinding): received JSON was: up', '')"}�~�{"awaitId": 65587723, "NAME": "Dartscheibe_bf4264b6f6b3c5fa8fztz6", "msgtype": "command", "comman: "AttrVal('Dartscheibe_bf4264b6f6c5fa8fztz6', 'group', '')"}�~�{"awaitId": 8939608890e7cb8ytf", "msgtype": "command", "command": "AtVal('Fernsehlicht_bf4a23f4f8a190e7cb8ytf', 'group', '')"}�~�{"awaitId": 56005865, "NAME": "Gartenhaus_Stecker_bf87bcac0c0dfb68e0zd", "msgtype": "command", "command"7bcac0c0dfb68e0zd', 'group', '')"}�~�{"awaitId": 695433, "NAME": "Gartenhaus_Tuere_13600724840d8ea44d", "msgtype": "command", "command": "AttrVal('Gartenhaus_Tuere_13600724840d8ea4ae4d', 'group', '')"itId": 28499555, "NAME": "Dartlicht_bfaace0990fdcdadebpxnf", "msgtype": "command", "command": "AtVal('Dartlicht_bfaace0990fdcdadebpxnf', 'group', '')"}�~�{"awaitId": 16045938, "NAME": "LED_TV_Buero_bfd6f8368a29, '')"}�~�{"awaitId": 22041703, "NAME"type": "command", "command": "AttrVal('Klima_21320014a4cf12eb2408', 'group', '')"}�~�{"awaitId": 676826, "NAME": "Licht_Buero_Tisch_bf2deed618aaf0834bpl", "msgtype": "command", "command": "AttrVal('Licht_Buero_Tisch_bf2deed618aaf0834bplav', 'group', '')"}�~�{"awaitId":8155649, "NAME": "Melanie_TV_bf6e5a59121f96620evj4a", "NAME": "Nous5_bffd0c7e5b7aea4199ja", "msgtype": "command", "command": "AttrVal('Nous5_bffd0c7e5b7aea4199jaaz', 'group', '')"}�~�{"awaitId": 43983881, "NAME "Schlafzimmer_Fenster_13600724840d8eaed81d", "msgtype": "mmand", "command": "AttrVal('Schlafzimmer_Fenster_13600724840d8eaed81d', 'group', '')"}�~�{"awaitId": 43656391('Magnet_Kontakt_13600724840d8ea4c361', 'group', '')"}�~�{"awaitId": 25983323, "NAME": "Terrassen_Tuere_136724a4cf12acfe09", "msgtype": "command", "command "AttrVal('Terrassen_Tuere_13600724a4cf12acfe09', 'group',')"}�~�{"awaitId": 14893132, "NAME": "ihnachtsbaum_bfd066a34e4774a1c0d8bx", "msgtype": "command", "command": "AttrVal('Weihnachtsbaum_bfd0634e4774a1c0d8bx', 'group', '')"}�~�{"awaitId": 69056291, "NAME": "Springbrunnen_OG_bf2c81700c9d9d96bxsj", "msgtype": "command", "command": "AttrVa 'group', '')"}�~�{"awaitId": 52904280, "NA_Controller_00408365e868e7894c32", "msgtype": "command", "command": "CommandAttr(undef, \"Blinds_Controller_0040836868e7894c32 group tuya\")"}�~�{"awaitId": 32559528, "NAME": "Bad_Fenster_OG_136007242cf432041fd4", ": 47331686, "NAME": "Couchlicht_bf664488739843aaiudq", "msgtype": "command", "command": "Cer_Buero_13600724840d8ea4bdcb", "msgtype": "command", "command": "CommandAttr(undef, \"Dachfenster_Buero_13600724840ea4bdcb group tuya\")"}�~�{"awaitId": 78788890, "NAME":Dachfenster_Gang_OG_13600724840d8ea73b", "msgtype": "command", "command": "CommandAttr(undef, \"Dachfenster_Gang_OG_13600724840d8eaea73group tuya\")"}�~�{"awaitId": 606221, "NAME": "Cam_Nord_bfeb362a7007656081x09j", "msgpe": "command", "command": "CommandAttr(undef, \"Cam_Nord_bfeb362a7007656081x09j group tuya\")"}�~�{"awaitId": 84573239,NAME": "Dartscheibe_bf4264b6f6b3c58fztz6", "msgtype": "command", "command": "CommandAttr(undef, \"Dartscheibe_bf4264b6f6b3c5fa8fztzgroup tuya\")"}�~�{"awaitId": 421526, "NAME": "Fernsehlicht_bf4a23f4f8a190e7cb8ytf", ": 81166116, "NAME": "Gartenhaus_Stker_bf8a37bcac0c0dfb68e0zd", "msgtype": "command", "command": "CommandAttr(undef, \"Gartenhaus_Stecd8ea4ae4d", "msgtype": "command", "command": "Codadebpxnf group tuya\")"}�~�{"awaitId": 95182951, "NAME": "LED_TV_Buero_bfd6f8368a299a33c66ziz", ": 58351628, "NAME": "Klima_21320014cf12eb2408", "msgtype": "command", "command": "CommandAttr(undef, \"Klima_21320014a4cf12eb2408 gup tuya\")"}�~�{"awaitId": 51457944, "NAME": "Licht_Buero_Tisch_bf2deed618aaf0834bplav", "msgtype": "command",command": "CommandAttr(undef, \"Lit_Buero_Tisch_bf2deed618aaf0834bplav group tuya\")"}�~�{"awaitId": 42882445, "NAME": "Melanie_TV_bf6e5a121f96620evj4a", "msgtype": "command", "command": "Commanttr(undef, \"Melanie_TV_bf6e5a59121f96620evj4a group tuya\")"}�~"awaitId": 31921582, "NAME": "Nous5_bffd0c7e5b7aea4199jaaz", "msgtype": "command", "command": "CommandAttr(undef, \"Nous5_b
2022.10.02 16:58:43 1: BindingsIo (pyBinding): ERROR JSON: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "a4c361 group tuya\\"...") at /usr/share/perl5/JSON.pm line 190.

2022.10.02 16:58:43 1: BindingsIo (pyBinding): received JSON was: a4c361 group tuya\")"}�~�{"awaitId": 13701007, "NAME": "Terrassen_Tuere_13600724a4cf12acfe09", "msgt
2022.10.02 16:58:43 1: BindingsIo (pyBinding): ERROR JSON: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "e": "command", "comm...") at /usr/share/perl5/JSON.pm line 190.

2022.10.02 16:58:43 1: BindingsIo (pyBinding): received JSON was: e": "command", "command": "CommandAttr(undef, \"Terrassen_Tuere_13600724a4cf12acfe09 group tuya\")"}�~�{"awaitI
2022.10.02 16:58:43 1: BindingsIo (pyBinding): ERROR JSON: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "bfd066a34e4774a1c0d8...") at /usr/share/perl5/JSON.pm line 190.

2022.10.02 16:58:43 1: BindingsIo (pyBinding): received JSON was: bfd066a34e4774a1c0d8bx", "msgtype": "command", "command": "CommandAttr(undef, \"Weihnachtsbaum_
2022.10.02 16:58:43 1: BindingsIo (pyBinding): ERROR JSON: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "j group tuya\\")"}\x{ef}...") at /usr/share/perl5/JSON.pm line 190.

2022.10.02 16:58:43 1: BindingsIo (pyBinding): received JSON was: j group tuya\")"}�~�{"awaitId": 91260411, "NAME": "Vitrine_Keller_bf4ff99fe700de582025jo", "msgtype": "command", "
2022.10.02 16:58:43 1: MapleCUL_1_433: UNDEFINED Sensor SD_WS07_TH detected, code SD_WS07_TH_2
2022.10.02 16:58:43 1: BindingsIo (pyBinding): ERROR JSON: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "x8", "msgtype": "com...") at /usr/share/perl5/JSON.pm line 190.

2022.10.02 16:58:43 1: BindingsIo (pyBinding): received JSON was: x8", "msgtype": "command", "command": "CommandAttr(undef, \"Werkbank_Licht_bf5249863250b4bdd3jpx8 room fhempy\")
2022.10.02 16:58:43 1: MapleCUL_1_433: UNDEFINED Sensor SD_WS07_TH detected, code SD_WS07_TH_2
2022.10.02 16:59:43 1: BindingsIo (pyBinding): ERROR JSON: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "}\x{ef}\x{bf}\x{bd}~...") at /usr/share/perl5/JSON.pm line 190.

2022.10.02 16:59:43 1: BindingsIo (pyBinding): received JSON was: }�~�{"awaitId": 76234303, "NAME":
2022.10.02 16:59:43 1: BindingsIo (pyBinding): ERROR JSON: garbage after JSON object, at character offset 9 (before ": "command", "comman...") at /usr/share/perl5/JSON.pm line 190.

2022.10.02 16:59:43 1: BindingsIo (pyBinding): received JSON was: "msgtype": "command", "command":
2022.10.02 16:59:43 1: BindingsIo (pyBinding): ERROR JSON: garbage after JSON object, at character offset 4 (before "setDevAttrList('Dach...") at /usr/share/perl5/JSON.pm line 190.

2022.10.02 16:59:43 1: BindingsIo (pyBinding): received JSON was: ": "setDevAttrList('Dachfenster_Gang_OG_13600724840d8eaea73b', ' IODev '.$readingFnAttributes)"}�~�
2022.10.02 16:59:43 1: BindingsIo (pyBinding): ERROR JSON: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "awaitId": 65099306, ...") at /usr/share/perl5/JSON.pm line 190.

2022.10.02 16:59:43 1: BindingsIo (pyBinding): received JSON was: awaitId": 65099306, "NAME": "Darts
2022.10.02 16:59:43 1: BindingsIo (pyBinding): ERROR JSON: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "Id": 39531217, "NAME...") at /usr/share/perl5/JSON.pm line 190.

2022.10.02 16:59:43 1: BindingsIo (pyBinding): received JSON was: Id": 39531217, "NAME": "Cam_Nord_bfeb362a7007656081x09j", "msgtype": "command", "command": "setDevAttrList('Cam_Nord
2022.10.02 16:59:43 1: BindingsIo (pyBinding): ERROR JSON: 'false' expected, at character offset 0 (before "feb362a7007656081x09...") at /usr/share/perl5/JSON.pm line 190.

2022.10.02 16:59:43 1: BindingsIo (pyBinding): received JSON was: feb362a7007656081x09j', ' IODev '.$readingFnAttributes)"}�~�{"awaitId": 23271608, "NAME": "Fernse
2022.10.02 16:59:43 1: BindingsIo (pyBinding): ERROR JSON: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "icht_bf4a23f4f8a190e...") at /usr/share/perl5/JSON.pm line 190.

2022.10.02 16:59:43 1: BindingsIo (pyBinding): received JSON was: icht_bf4a23f4f8a190e7cb8ytf", "msgtype": "command", "command": "setDevAttrList('Fernsehlicht_bf4a23f4f8a190e
2022.10.02 16:59:43 1: BindingsIo (pyBinding): ERROR JSON: 'false' expected, at character offset 0 (before "fdcdadebpxnf", "msgt...") at /usr/share/perl5/JSON.pm line 190.

2022.10.02 16:59:43 1: BindingsIo (pyBinding): received JSON was: fdcdadebpxnf", "msgtype": "command", "command":
2022.10.02 16:59:44 1: BindingsIo (pyBinding): ERROR JSON: unexpected end of string while parsing JSON string, at character offset 32 (before "(end of string)") at /usr/share/perl5/JSON.pm line 190.

2022.10.02 16:59:44 1: BindingsIo (pyBinding): received JSON was: "Licht_Buero_Tisch_bf2deed618aaf
2022.10.02 16:59:44 1: BindingsIo (pyBinding): ERROR JSON: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "_21320014a4cf12eb240...") at /usr/share/perl5/JSON.pm line 190.

2022.10.02 16:59:44 1: BindingsIo (pyBinding): received JSON was: _21320014a4cf12eb2408", "msgtype": "command", "command": "setDevAttrList('Klima_21320014a4cf12eb2
2022.10.02 16:59:44 1: BindingsIo (pyBinding): ERROR JSON: garbage after JSON object, at character offset 14 (before "NAME": "Schlafzimmer...") at /usr/share/perl5/JSON.pm line 190.

2022.10.02 16:59:44 1: BindingsIo (pyBinding): received JSON was: ": 44584045, "NAME": "Schlafzimmer_Fenster_13600724840d8eaed81d", "msgtype": "command", "command": "
2022.10.02 16:59:44 1: BindingsIo (pyBinding): ERROR JSON: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "and", "command": "se...") at /usr/share/perl5/JSON.pm line 190.

2022.10.02 16:59:44 1: BindingsIo (pyBinding): received JSON was: and", "command": "setDevAttrList('Melanie_TV_bf6e5a59121f96620evj4a', ' IODev '.$readingFnAttributes)"}�~�{"
2022.10.02 16:59:44 1: BindingsIo (pyBinding): ERROR JSON: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "awaitId": 62267542, ...") at /usr/share/perl5/JSON.pm line 190.

2022.10.02 16:59:44 1: BindingsIo (pyBinding): received JSON was: awaitId": 62267542, "NAME": "Terra
2022.10.02 16:59:44 1: BindingsIo (pyBinding): ERROR JSON: garbage after JSON object, at character offset 14 (before "NAME": "Magnet_Konta...") at /usr/share/perl5/JSON.pm line 190.

2022.10.02 16:59:44 1: BindingsIo (pyBinding): received JSON was: ": 44102151, "NAME": "Magnet_Kontakt_13600724840d8ea4c361", "msgtype": "command", "command": "setDev
2022.10.02 16:59:44 1: BindingsIo (pyBinding): ERROR JSON: 'null' expected, at character offset 0 (before "nachtsbaum_bfd066a34...") at /usr/share/perl5/JSON.pm line 190.

2022.10.02 16:59:44 1: BindingsIo (pyBinding): received JSON was: nachtsbaum_bfd066a34e4774a1c0d8bx", "msgtype": "command", "command": "setDevAttrList('Weihnachtsbaum_bfd
2022.10.02 16:59:50 1: MapleCUL_1_433: UNDEFINED Sensor SD_WS07_TH detected, code SD_WS07_TH_2
2022.10.02 16:59:50 1: MapleCUL_1_433: UNDEFINED Sensor SD_WS07_TH detected, code SD_WS07_TH_2
2022.10.02 17:00:24 3: myBroker: myBroker_192.168.1.150_51940/sonoff150 left us (keepalive check)
2022.10.02 17:00:43 1: BindingsIo (pyBinding): ERROR JSON: garbage after JSON object, at character offset 9 (before ": 56851808, "NAME": ...") at /usr/share/perl5/JSON.pm line 190.

2022.10.02 17:00:43 1: BindingsIo (pyBinding): received JSON was: "awaitId": 56851808, "NAME": "Weihnachtsbeleuchtung_Auffahrt_bf640e1557ed200343ez1r", "msgtype": "command", "command": "Att
2022.10.02 17:00:43 1: BindingsIo (pyBinding): ERROR JSON: garbage after JSON object, at character offset 4 (before "tuya_system", "msgty...") at /usr/share/perl5/JSON.pm line 190.

dominik

Schick mir bitte per Mail die Datei, Mail schick ich dir per PN.
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, 17:09:37
Schick mir bitte per Mail die Datei, Mail schick ich dir per PN.
mach ich denke sie ist zu gross

Sommerfeld

ZitatMach 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.
Die Kamera zeigt jetzt ein state an. Andere Readings werden nicht 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      6339a9ff-f33f-3b5c-2493-0969c4972d88bd7a
   IODev      local_pybinding
   NAME       Wohnzimmerkamera_bf905cb6a14a43dbf9hhfu
   NR         9391
   PYTHONTYPE tuya
   STATE      online
   TYPE       fhempy
   eventCount 4
   .attraggr:
   .attrminint:
   READINGS:
     2022-10-02 17:10:59   active_time     1644234172
     2022-10-02 17:10:59   biz_type        0
     2022-10-02 17:10:59   category        sp
     2022-10-02 17:10:59   create_time     1644234172
     2022-10-02 17:10:59   icon            smart/icon/ay1525342462043yjwZs/e9af8e6817e79859b119a322895ffc0b.png
     2022-10-02 17:10:59   id              bf905cb6a14a43dbf9hhfu
     2022-10-02 17:10:59   ip              93.203.85.174
     2022-10-02 17:10:59   lat             52.8048
     2022-10-02 17:10:59   local_key       f9ea8d1efc541ead
     2022-10-02 17:10:59   lon             13.0448
     2022-10-02 17:10:59   model           Überwachungskamera
     2022-10-02 17:10:59   name            Wohnzimmerkamera
     2022-10-02 17:10:59   online          1
     2022-10-02 17:10:59   owner_id        15487476
     2022-10-02 17:10:59   product_id      35twetlejkkllta0
     2022-10-02 17:10:59   product_name    ZX-5110
     2022-10-02 17:11:00   state           online
     2022-10-02 17:10:59   sub             0
     2022-10-02 17:10:59   time_zone       +01:00
     2022-10-02 17:10:59   uid             eu1598817427882BAzmt
     2022-10-02 17:10:59   update_time     1644242210
     2022-10-02 17:10:59   uuid            tuyab725045bfe14986f
   args:
     Wohnzimmerkamera_bf905cb6a14a43dbf9hhfu
     fhempy
     tuya
     35twetlejkkllta0
     bf905cb6a14a43dbf9hhfu
     192.168.178.98
     f9ea8d1efc541ead
     3.3
     fq83awrvav6glwxl28ed
     59327720c0834b8d8d4bc010f9b9a072
   argsh:
   helper:
     bm:
       fhempy_Attr:
         cnt        9
         dmx        -1000
         dtot       0
         dtotcnt    0
         mTS        02.10. 17:10:58
         max        0.0073850154876709
         tot        0.0489940643310547
         mAr:
           set
           Wohnzimmerkamera_bf905cb6a14a43dbf9hhfu
           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': '{}'}]
       fhempy_Define:
         cnt        1
         dmx        -1000
         dtot       0
         dtotcnt    0
         mTS        02.10. 17:10:55
         max        0.0194201469421387
         tot        0.0194201469421387
         mAr:
           HASH(0x5630703f97c8)
           ARRAY(0x563074975c10)
           HASH(0x56306c6a4010)
       fhempy_Get:
         cnt        3
         dmx        -1000
         dtot       0
         dtotcnt    0
         mTS        02.10. 17:18:54
         max        0.00734090805053711
         tot        0.0173659324645996
         mAr:
           HASH(0x5630703f97c8)
           ARRAY(0x56307418c228)
           HASH(0x5630727564f0)
       fhempy_Set:
         cnt        61
         dmx        -1000
         dtot       0
         dtotcnt    0
         mTS        02.10. 17:10:57
         max        0.0463900566101074
         tot        0.744508743286133
         mAr:
           HASH(0x5630703f97c8)
           ARRAY(0x563073864538)
           HASH(0x5630739a1228)
   hmccu:
Attributes:
   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

Internals:
   CFGFN     
   DEF        tuya njrz3aijxnshpwtc bf56d0d8d205a1455f5qar 192.168.1.200 1e120c2b1ce5ecfc 3.3
   DEVICEID   bf56d0d8d205a1455f5qar
   FHEMPYTYPE tuya
   FUUID      6339b88c-f33f-c95d-54be-90853b39f44ff9c0
   IODev      pyBinding
   NAME       Terrassen_Licht_Indirekt_bf56d0d8d205a1455f5qar
   NR         584
   PYTHONTYPE tuya
   STATE      Initializing...
   TYPE       fhempy
   eventCount 3
   READINGS:
     2022-10-02 18:13:03   active_time     1619276278
     2022-10-02 18:13:03   biz_type        18
     2022-10-02 18:13:03   category        dd
     2022-10-02 18:13:03   create_time     1619276278
     2022-10-02 18:13:03   icon            smart/icon/001460162698766TR4v1/c315bf9c1c94c65ec62fdbfac1812c6e.png
     2022-10-02 18:13:03   id              bf56d0d8d205a1455f5qar
     2022-10-02 18:13:03   ip              92.248.14.132
     2022-10-02 18:13:03   lat             48.6950
     2022-10-02 18:13:03   local_key       1e120c2b1ce5ecfc
     2022-10-02 18:13:03   lon             15.9707
     2022-10-02 18:13:03   name            Terrassen Licht Indirekt
     2022-10-02 18:13:03   online          1
     2022-10-02 18:13:03   owner_id        9189095
     2022-10-02 18:13:03   product_id      njrz3aijxnshpwtc
     2022-10-02 18:13:03   product_name    Smart led Strip
     2022-10-02 18:13:01   state           Initializing...
     2022-10-02 18:13:03   sub             0
     2022-10-02 18:13:03   time_zone       +02:00
     2022-10-02 18:13:03   uid             eu1577993184739WO7bA
     2022-10-02 18:13:03   update_time     1640030715
     2022-10-02 18:13:03   uuid            17052001286dcd58c13b
   args:
     Terrassen_Licht_Indirekt_bf56d0d8d205a1455f5qar
     fhempy
     tuya
     njrz3aijxnshpwtc
     bf56d0d8d205a1455f5qar
     192.168.1.200
     1e120c2b1ce5ecfc
     3.3

   argsh:
   hmccu:
Attributes:
   group      tuya
   room       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': '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': '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}}]


hab noch etwas herrausgefunden

das ist ein tuya led treiber (funktionierte schon mit fhem auch die farben konnte ich ändern) wenn ich diesen neu als dev anlege geht alles auf error
sobalb ich lösche und pybinding restarte sind die anderen wieder da

genau so auch mit den nous steckdosen die mit 3.4 sind

dominik

Zitat von: Sommerfeld am 02 Oktober 2022, 17:22:35
Die Kamera zeigt jetzt ein state an. Andere Readings werden nicht 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      6339a9ff-f33f-3b5c-2493-0969c4972d88bd7a
   IODev      local_pybinding
   NAME       Wohnzimmerkamera_bf905cb6a14a43dbf9hhfu
   NR         9391
   PYTHONTYPE tuya
   STATE      online
   TYPE       fhempy
   eventCount 4
   .attraggr:
   .attrminint:
   READINGS:
     2022-10-02 17:10:59   active_time     1644234172
     2022-10-02 17:10:59   biz_type        0
     2022-10-02 17:10:59   category        sp
     2022-10-02 17:10:59   create_time     1644234172
     2022-10-02 17:10:59   icon            smart/icon/ay1525342462043yjwZs/e9af8e6817e79859b119a322895ffc0b.png
     2022-10-02 17:10:59   id              bf905cb6a14a43dbf9hhfu
     2022-10-02 17:10:59   ip              93.203.85.174
     2022-10-02 17:10:59   lat             52.8048
     2022-10-02 17:10:59   local_key       f9ea8d1efc541ead
     2022-10-02 17:10:59   lon             13.0448
     2022-10-02 17:10:59   model           Überwachungskamera
     2022-10-02 17:10:59   name            Wohnzimmerkamera
     2022-10-02 17:10:59   online          1
     2022-10-02 17:10:59   owner_id        15487476
     2022-10-02 17:10:59   product_id      35twetlejkkllta0
     2022-10-02 17:10:59   product_name    ZX-5110
     2022-10-02 17:11:00   state           online
     2022-10-02 17:10:59   sub             0
     2022-10-02 17:10:59   time_zone       +01:00
     2022-10-02 17:10:59   uid             eu1598817427882BAzmt
     2022-10-02 17:10:59   update_time     1644242210
     2022-10-02 17:10:59   uuid            tuyab725045bfe14986f
   args:
     Wohnzimmerkamera_bf905cb6a14a43dbf9hhfu
     fhempy
     tuya
     35twetlejkkllta0
     bf905cb6a14a43dbf9hhfu
     192.168.178.98
     f9ea8d1efc541ead
     3.3
     fq83awrvav6glwxl28ed
     59327720c0834b8d8d4bc010f9b9a072
   argsh:
   helper:
     bm:
       fhempy_Attr:
         cnt        9
         dmx        -1000
         dtot       0
         dtotcnt    0
         mTS        02.10. 17:10:58
         max        0.0073850154876709
         tot        0.0489940643310547
         mAr:
           set
           Wohnzimmerkamera_bf905cb6a14a43dbf9hhfu
           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': '{}'}]
       fhempy_Define:
         cnt        1
         dmx        -1000
         dtot       0
         dtotcnt    0
         mTS        02.10. 17:10:55
         max        0.0194201469421387
         tot        0.0194201469421387
         mAr:
           HASH(0x5630703f97c8)
           ARRAY(0x563074975c10)
           HASH(0x56306c6a4010)
       fhempy_Get:
         cnt        3
         dmx        -1000
         dtot       0
         dtotcnt    0
         mTS        02.10. 17:18:54
         max        0.00734090805053711
         tot        0.0173659324645996
         mAr:
           HASH(0x5630703f97c8)
           ARRAY(0x56307418c228)
           HASH(0x5630727564f0)
       fhempy_Set:
         cnt        61
         dmx        -1000
         dtot       0
         dtotcnt    0
         mTS        02.10. 17:10:57
         max        0.0463900566101074
         tot        0.744508743286133
         mAr:
           HASH(0x5630703f97c8)
           ARRAY(0x563073864538)
           HASH(0x5630739a1228)
   hmccu:
Attributes:
   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': '{}'}


Ok, der state online sagt nur wenig aus. Bist du sicher, dass du über fhempy die Kamera schon mal geschalten hast? Was passiert jetzt wenn du einen der set Befehle ausführst?
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik