fhempy: Tuya Cloud

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

Vorheriges Thema - Nächstes Thema

stefanru

Hi Dominik,

nach dem Update auf 0.1.598 und FHEM update sowie einem FHEM stop und start,
habe ich folgendes im fhempy.log gefunden, die genannte Steckdose arbeitet ohne Probleme.
2023-02-19 16:33:15,769 - INFO     - websocket: Websocket connected
2023-02-19 16:33:21,535 - ERROR    - Fernseher_Schlafzimmer_bf4f644bc7dd2fc71d9q52: 'tuya_cloud_device' object has no attribute '_t_specification'
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya_cloud/tuya_cloud_device.py", line 294, in update_readings_arr
    self._convert_value2fhem(status["code"], status["value"]),
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya_cloud/tuya_cloud_device.py", line 244, in _convert_value2fhem
    for code_def in self._t_specification["status"]:
AttributeError: 'tuya_cloud_device' object has no attribute '_t_specification'



Gruß,
Stefan

dominik

Kannst du mir bitte noch das Define des Devices posten?
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

stefanru

Hi Dominik,

seltsam daran ist dass ich 4 Stück dieser Steckdosen mit Power Metering habe.
Alle genau gleich.
Nur die eine hat bei dem Startup den Fehler gezeigt.

Hier das List:

Internals:
   DEF        tuya_cloud tuya_cloud_connector bf4f644bc7dd2fc71d9q52
   DEVICEID   bf4f644bc7dd2fc71d9q52
   FHEMPYTYPE tuya_cloud
   FUUID      61a9066a-f33f-0c45-b078-df23495ef66d3ad5
   IODev      local_pybinding
   NAME       Fernseher_Schlafzimmer_bf4f644bc7dd2fc71d9q52
   NR         2018
   PYTHONTYPE tuya_cloud
   STATE      off </br>
</br>233.1 V
</br>0.0 W
</br>0.0 mA
   TYPE       fhempy
   eventCount 3790
   Helper:
     DBLOG:
       cur_power:
         logdb:
           TIME       1676888463.89334
           VALUE      0.0
   READINGS:
     2023-02-20 00:36:56   active_time     1638458218
     2023-02-20 11:25:07   add_ele         0.014
     2023-02-20 00:36:56   biz_type        0
     2023-02-20 00:36:56   category        cz
     2023-02-20 08:54:40   child_lock      off
     2023-02-20 08:54:40   countdown_1     0.0
     2023-02-20 00:36:56   create_time     1638458218
     2023-02-20 11:00:20   cur_current     0.0
     2023-02-20 11:00:20   cur_power       0.0
     2023-02-20 11:35:32   cur_voltage     233.1
     2023-02-20 08:54:40   cycle_time     
     2023-02-20 00:36:56   icon            https://images.tuyaeu.com/smart/icon/ay15148582002916nitB/c58a91c23c2e2b5309c7c5d776871390.png
     2023-02-20 00:36:56   id              bf4f644bc7dd2fc71d9q52
     2023-02-20 00:36:56   ip              87.158.205.193
     2023-02-20 00:36:56   lat             49.6104
     2023-02-20 08:54:40   light_mode      relay
     2023-02-20 00:36:56   local_key       8cf0099962d0ff3f
     2023-02-20 00:36:56   lon             8.7262
     2023-02-20 00:36:56   model           BSD34BP
     2023-02-20 00:36:56   name            Fernseher Schlafzimmer
     2023-02-20 00:36:56   online          on
     2023-02-20 08:54:40   overcharge_switch off
     2023-02-20 00:36:56   owner_id        39691875
     2023-02-20 00:36:56   product_id      apszn7k8yhgsin28
     2023-02-20 00:36:56   product_name    WIFI 插座
     2023-02-20 08:54:40   random_time     
     2023-02-20 08:54:40   relay_status    power_off
     2023-02-20 11:00:14   state           off
     2023-02-20 00:36:56   sub             off
     2023-02-03 10:58:09   switch_1        on
     2023-02-20 08:54:40   switch_inching 
     2023-02-20 00:36:56   time_zone       +01:00
     2023-02-20 00:36:56   uid             eu1634560510538qIss1
     2023-02-20 00:36:56   update_time     1640052277
     2023-02-20 00:36:56   uuid            1b3479720033efbe
   args:
     Fernseher_Schlafzimmer_bf4f644bc7dd2fc71d9q52
     fhempy
     tuya_cloud
     tuya_cloud_connector
     bf4f644bc7dd2fc71d9q52
   argsh:
Attributes:
   DbLogInclude cur_power:60:force
   alexaName  Fernseher Schlafzimmer
   alexaRoom  OG
   alias      Fernseher Schlafzimmer
   event-min-interval .*:300
   event-on-change-reading .*
   group      Steckdosen_Tuya
   room       OG,fhempy
   stateFormat state </br>
</br>cur_voltage V
</br>cur_power W
</br>cur_current mA


Gruß und Danke,
Stefan

McShire

Hallo Dominik,

von Tuya habe ich folgende Email bekommen, die Du sicher auch immer bekommst und Dir bekannt ist.

Zitat
Tuya IoT Platform Service Expiration Notice
Dear Tuya IoT Platform Account Manager,
The service IoT Core you subscribed to will expire on 2023-02-21,If you need to continue to use,please renew this service.
How to renew your contract:
Please check the services you subscribe to and select the corresponding expired / expiring services to renew:
www.tuya.com/vas/user/service
You have received this email because you are the account owner of the Tuya IoT platform and you have the right to know the changes of service information on the platform. If you do not use the above services in a business environment,you can ignore this email notification.
If the above instructions cannot conduct through the relevant operation, please contact your business manager or submit a help ticket on the Tuya IoT Platform.
This email is automatically sent by the system. Please do not reply. If you have any questions, please contact customer service.Contact: service@tuya.com
Sincerely,


Muss ich jetzt regelmäßig die Services erneuern, damit fhempy mit Tuya-Cloud weiter funktioniert?
Wenn ja, welche Services brauche ich wirklich und welche kann ich auslaufen lassen?

Viele Grüße
Werner

dominik

Mein Ablaufdatum war 2022-07-28 14:54:05 und ich hab nix gemacht. Es steht bei mir noch immer "In service" und dort dann "contract expired". Solange es funktioniert, mach ich daher nix :)
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

McShire


McShire

Zitat von: dominik am 20 Februar 2023, 22:10:25
Mein Ablaufdatum war 2022-07-28 14:54:05 und ich hab nix gemacht. Es steht bei mir noch immer "In service" und dort dann "contract expired". Solange es funktioniert, mach ich daher nix :)

Bei mir funktioniert es so leider nicht.
Siehe Screenshot in der Anlage

dominik

Du solltest aber online verlängern können, denke ich.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

McShire

Bei Änderung der Einstellungen in der App auf dem Mobiltelefon werden die Rückmeldungen von fhem noch entgegengenommen und in den Readings und im Logfile angezeigt. Aber etwas mit set ... einstellen geht nicht mehr.
Auch nach dem Restart vom Server und / oder fhempy_local die nach dem Verbinden und der Meldung ready beim Radiator anschließend die gleiche Meldung No permission. ...

Ich habe auch versucht in der Tuya PLatform alles wieder zu reaktivieren, aber erfolglos.

Hast Du einen Tip für mich

Viele Grüße
Werner

McShire

Zitat von: dominik am 21 Februar 2023, 22:18:12
Du solltest aber online verlängern können, denke ich.

Ist mir leider nicht gelungen. Der Trial-Mode geht offenbar nur einen Monat.
die Services neu kaufen, kostet enorm viel Geld.

Viele Grüße Werner

McShire

Ich schreibe Dir eine Mitteilung. Kannst ja mal versuchen.

McShire

Ich hoffe, die Mitteilung ist angekommen, ich kann sie im Ausgang nicht finden.

dominik

Ich hab mal extend trial period angefragt mit deinem Account. Ich glaube sowas habe ich auch mal gemacht.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

McShire

Hallo dominik,
wo kann man das anfragen und welche Reaktion auf deine Anfrage erwartest du.
Eine Email dazu habe ich nicht bekommen.

Ich habe auch so ziemlich alles versucht und alle Help Informationen dazu durchsucht,
aber keine Möglichkeit gefunden die trial period von 1 month zu verlängern.

Mir fällt nichts weiter ein, als einen neuen Account einzurichten.
Aber ich kann doch nicht jeden Monat einen neuen Account mit neuer EMail Adresse einrichten.

Viele Grüße
Werner

dominik

Bei Service expired gibt es den Button Extend Trial Period, dort drückt man drauf.
Deswegen besser auf tuya local umsteigen bzw. mit den ZigBee Devices auf zigbee2mqtt.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik