fhempy: Tuya Cloud

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

Vorheriges Thema - Nächstes Thema

Sommerfeld

Hallo,

ZitatWo kommt diese Fehlermeldung? Auf der iot Plattform?

Ja, wenn ich Device Debugging aufrufe

dominik

Das ist ja eigenartig, was ist das für ein Device?

Ich bau mal einen Fix ein, aber wieso der Fehler kommt ist mir nicht klar.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Sommerfeld

Hier das List
Internals:
   .AttrList   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_cloud tuya_cloud_connector bfe51adb47726ca7ads0pb
   DEVICEID   bfe51adb47726ca7ads0pb
   FHEMPYTYPE tuya_cloud
   FUUID      6161ecb2-f33f-3b5c-eebd-6271c1833636c5a9
   FVERSION   10_PythonModule.pm:0.182830/2019-01-16
   IODev      local_pybinding
   NAME       Contact_Sensor_bfe51adb47726ca7ads0pb
   NR         1200
   PYTHONTYPE tuya_cloud
   STATE      closed
   TYPE       PythonModule
   .attraggr:
   .attrminint:
   READINGS:
     2021-11-13 09:28:05   active_time     1633807537
     2021-11-13 09:28:05   biz_type        0
     2021-11-13 09:28:05   category        mcs
     2021-11-13 09:28:05   create_time     1633807537
     2021-11-13 09:28:05   icon            https://images.tuyaeu.com/smart/icon/ay1537847617560vAgbw/5526564c1ac295a5a9eeea014fb2d02e.jpg
     2021-11-13 09:28:05   id              bfe51adb47726ca7ads0pb
     2021-11-13 09:28:05   ip              93.203.78.66
     2021-11-13 09:28:05   lat             52.8048
     2021-11-13 09:28:05   local_key       934b787a5ee3ce02
     2021-11-13 09:28:05   lon             13.0446
     2021-11-13 09:28:05   model           MC400D
     2021-11-13 09:28:05   name            Contact Sensor
     2021-11-13 09:28:05   online          on
     2021-11-13 09:28:05   owner_id        15487476
     2021-11-13 09:28:05   product_id      5etnzhfidcmm0ang
     2021-11-13 09:28:05   product_name    Contact Sensor
     2021-11-13 09:28:13   state           closed
     2021-11-13 09:28:05   sub             off
     2021-11-13 09:28:05   time_zone       +02:00
     2021-11-13 09:28:05   uid             eu1598817427882BAzmt
     2021-11-13 09:28:05   update_time     1636790408
     2021-11-13 09:28:05   uuid            902c4e13a28b5504
   args:
     Contact_Sensor_bfe51adb47726ca7ads0pb
     PythonModule
     tuya_cloud
     tuya_cloud_connector
     bfe51adb47726ca7ads0pb
   argsh:
Attributes:
   alias      Contact Sensor
   group      tuya_cloud
   room       Tuya

bewa58

#333
ZitatWenn du colour_data set auswählst, kommt dann die RGB Auswahl?

beim set-Befehl clour-data wird der color-picker angezeigt. Kann dann Farbe wählen
und dann ?
anbei 3 Bilder vom Device:  1. Farbe rot ist eingestellt
                                             -dann set colour-data aufgerufen, Farbe auf Grün eingestellt
                                         2. set Befehl ausgeführt
                                         3. nach set-Befehl (und die Farbe im Leuchtmittel wird auf Standard-Weis eingestellt)

? RGB Color  6 Zeichen    Colour_data 10 Zeichen ?  und dort sind nach dem set nur die Standard 6 Zeichen


dominik

Kannst du bitte mal auf die iot Plattform von tuya schauen, dort beim Device selbst "Debug Device" auswählen und dann Standard Status Set auswählen? Da sollte bei colour_data ein Wert stehen, das bitte hier posten. Da dürfte die Konvertierung nicht korrekt sein.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

dominik

Bitte 0.1.174 testen, ich denke ich habe den Fehler gefunden.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

stefanru

Hi Dominik,

kannst du mir sagen wer beim stop von fhem den fhempyserver_15733 stoppen sollte?
Ich habe nochmal alle logfiles durchsucht und leider nichts zum stoppen gefunden.
Gestartet wird er ja von FHEM beim start.

Das einzige was ich in den Logs finde ist:

eventTypes.txt:580 fhempyserver_15733 fhempy: running FHEM/bindings/python/bin/fhempy
eventTypes.txt:573 fhempyserver_15733 fhempy: stopped
eventTypes.txt:2 fhempyserver_15733 fhempy: stopping
fhem.save:setstate fhempyserver_15733 2021-11-16 11:33:12 fhempy running FHEM/bindings/python/bin/fhempy
fhem.save_old:setstate fhempyserver_15733 2021-10-22 21:33:02 fhempy running FHEM/bindings/python/bin/fhempy


Gruß und Danke,
Stefan

xypzo

Zitat von: dominik am 11 November 2021, 19:43:37
Please set the default python 3 interpreter which is 3.7 for Buster. I assume you compiled Python 3.10 on your own and maybe you forgot some flag to activate ssl.
As i said before, i have no clue what i am doing! I am a copy paster, I search for a solution on the web en and copy paste it.
No idea how to switch between 3.10 and 3.7.3. All i can find is by making an alternetive, but there is no 3.10 in my usr/bin folder, just 2.7 and 3.7 .
Also downloading 3.10 to that folder is not working
CLUELESS  :-X

bewa58

ZitatBitte 0.1.174 testen, ich denke ich habe den Fehler gefunden

Update auf 0.1.174 gemacht.
Funktioniert jetzt !

Danke.

dominik

Zitat von: stefanru am 16 November 2021, 11:45:45
Hi Dominik,

kannst du mir sagen wer beim stop von fhem den fhempyserver_15733 stoppen sollte?
Ich habe nochmal alle logfiles durchsucht und leider nichts zum stoppen gefunden.
Gestartet wird er ja von FHEM beim start.

Das einzige was ich in den Logs finde ist:

eventTypes.txt:580 fhempyserver_15733 fhempy: running FHEM/bindings/python/bin/fhempy
eventTypes.txt:573 fhempyserver_15733 fhempy: stopped
eventTypes.txt:2 fhempyserver_15733 fhempy: stopping
fhem.save:setstate fhempyserver_15733 2021-11-16 11:33:12 fhempy running FHEM/bindings/python/bin/fhempy
fhem.save_old:setstate fhempyserver_15733 2021-10-22 21:33:02 fhempy running FHEM/bindings/python/bin/fhempy


Gruß und Danke,
Stefan

Das fhempyServer Modul stoppt auch den Server beim Shutdown. Genauso wird fhempy durch das fhempyServer Modul gestartet.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

dominik

Zitat von: xypzo am 16 November 2021, 14:37:09
As i said before, i have no clue what i am doing! I am a copy paster, I search for a solution on the web en and copy paste it.
No idea how to switch between 3.10 and 3.7.3. All i can find is by making an alternetive, but there is no 3.10 in my usr/bin folder, just 2.7 and 3.7 .
Also downloading 3.10 to that folder is not working
CLUELESS  :-X

Ok, you did some copy/paste in the past which installed 3.10. Please check how to uninstall that manual 3.10 installation. As I haven't installed python manually yet, I would also need to google it.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

dominik

Zitat von: bewa58 am 16 November 2021, 19:13:12
Update auf 0.1.174 gemacht.
Funktioniert jetzt !

Danke.
Super, danke für die Rückmeldung!
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

bewa58

ZitatZitat von: bewa58 am 16 November 2021, 19:13:12
Update auf 0.1.174 gemacht.
Funktioniert jetzt !

Danke.
Super, danke für die Rückmeldung!

Die Farbeinstellung über den Color-Picker funktioniert einwandfrei !

Neues Problem:  nehme ich den angezeigten Wert aus Reading colour_data
und setze diesen über set Device colour-Data rgb??? ab schmiert das Programm ab.
Setze ich diesen set-Befahl über "Lightscene" ab schmiert FHEM komplett ab !!

Möchte die Lampen in "Lightscene" einbinden !

Verstehe ich das richtig?
Der Color-Picker zeigt RGB Wert an, dieser wird umgerechnet in ? welchen -Wert
und dann nochmal für die Übermittlung an Tuya-Cloud formatiert?

Auch erkennt Lightscene die Werte in den Readings nicht.

Kannst mir evtl. zeigen wie der set Befehl aussehen muss? Sind das HSV Werte?

Bernd


dominik

Schick mir Mal was aktuell im colour_data für Werte drin stehen. Sollte nämlich FHEM RGB Hex sein.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

stefanru

Hi Dominik,

ach so klar.
Dann schaue ich mal im fhempyServer Modul was da nicht klappt.

Danke,
Stefan