fhempy: tuya (lokal)

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

Vorheriges Thema - Nächstes Thema

thburkhart

ZitatJetzt bin ich etwas verwirrt, tuya_cloud oder tuya? Wenn tuya_cloud, dann kann man da nix machen, das kommt dann so (falsch) von tuya.

Asche auf mein Haupt ..
ich verwende noch tuya_cloud

ist ja ne Frechheit von TUYA ...

den Umstieg von _cloud auf tuya habe ich immer noch nicht kapiert

ich habe als DEF:

##define TUYA fhempy tuya_cloud setup <CLIENT_ID>         <CLIENT_SECRET>                  <USERNAME> <PASSWORD> <APPTYPE> <REGION>
define TUYA fhempy tuya_cloud setup ea8453wdazquzfl08l0e 8a4b27dd759d4c6a9456aa8155d2xxxxxxxxxx xxx@gmx.net thbbkt25 smartlife Europe
setuuid TUYA 6160933e-f33f-21fb-4a78-6f28e312ea5b9f44
attr TUYA group TUYA
attr TUYA room TUYA
attr TUYA verbose 1

und zig Devices
define EMYLO2 fhempy tuya_cloud TUYA 30180616dc4f22fc986a
setuuid EMYLO2 6161eac5-f33f-21fb-42ad-09c6b5745a4ecc49
attr EMYLO2 alias EM02 Springbrunnen
attr EMYLO2 group Schalter (T)
attr EMYLO2 room Garten,TUYA


wie müsste mein DEF für lokal aus obingem sein? Die Syntax ist ja etwas anders..



1 RASPI4B, 1 RASPI3B, 2 CUL, 2 Jeelink, 60 Tuya-Devices (Schalter, Dimmer, Sensoren, Cameras), 30 HUE-Lampen, 5 MAX! WTs, 16 MAX! HTs, 12 MAX! FKs, 1 Bresser 5in1, 1 OilFox, 8 ALEXA Echos und Dots, FHEM, 5 Tasmota-Devices, SonOff -Bridge, PowerFox, Buderus KM200

Christian83

Hallo,

habe auch das Problem der falschen Werte in der Antwort für ein Thermostat.
Übergeben wird 30° (daraus wird dann 3.0) im JSON und am Thermostat steht dann 15°C.

dominik

Zitat von: thburkhart am 17 Dezember 2022, 20:18:04
Asche auf mein Haupt ..
ich verwende noch tuya_cloud

ist ja ne Frechheit von TUYA ...

den Umstieg von _cloud auf tuya habe ich immer noch nicht kapiert

ich habe als DEF:

##define TUYA fhempy tuya_cloud setup <CLIENT_ID>         <CLIENT_SECRET>                  <USERNAME> <PASSWORD> <APPTYPE> <REGION>
define TUYA fhempy tuya_cloud setup ea8453wdazquzfl08l0e 8a4b27dd759d4c6a9456aa8155d2xxxxxxxxxx xxx@gmx.net thbbkt25 smartlife Europe
setuuid TUYA 6160933e-f33f-21fb-4a78-6f28e312ea5b9f44
attr TUYA group TUYA
attr TUYA room TUYA
attr TUYA verbose 1

und zig Devices
define EMYLO2 fhempy tuya_cloud TUYA 30180616dc4f22fc986a
setuuid EMYLO2 6161eac5-f33f-21fb-42ad-09c6b5745a4ecc49
attr EMYLO2 alias EM02 Springbrunnen
attr EMYLO2 group Schalter (T)
attr EMYLO2 room Garten,TUYA


wie müsste mein DEF für lokal aus obingem sein? Die Syntax ist ja etwas anders..

Am einfachsten machst du den Umstieg mit dem setup Device, das hier anlegen:
define tuya_system fhempy tuya setup API_KEY API_SECRET DEVICE_ID
dann
set tuya_system scan_devices
nach paar Minuten die einzelnen Devices anlegen
set tuya_system create_device ......
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

dominik

Zitat von: Christian83 am 17 Dezember 2022, 20:23:32
Hallo,

habe auch das Problem der falschen Werte in der Antwort für ein Thermostat.
Übergeben wird 30° (daraus wird dann 3.0) im JSON und am Thermostat steht dann 15°C.

Poste mal einen Screenshot von der Device Seite (inkl. Attributes).
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Christian83

Internals:
   CFGFN     
   DEF        tuya IAYz2WK1th0cMLmL 30000443e8db84b97ec6 192.168.0.150 87a027dd28cf507b 3.3 key secret
   DEVICEID   30000443e8db84b97ec6
   FHEMPYTYPE tuya
   FUUID      639c6473-f33f-d2f0-ded7-c57f83f01d793ae9
   IODev      fhempy_local
   NAME       tuya_local_30000443e8db84b97ec6
   NR         443
   PYTHONTYPE tuya
   STATE      ready
   TYPE       fhempy
   eventCount 88
   Helper:
     DBLOG:
       temperature:
         logdb:
           TIME       1671306293.59278
           VALUE      19
   READINGS:
     2022-12-16 13:28:36   active_time     1670674063
     2022-12-16 13:28:36   biz_type        0
     2022-12-16 13:28:36   category        wk
     2022-12-16 13:28:37   child_lock      off
     2022-12-16 13:28:36   create_time     1670669996
     2022-12-16 13:28:37   dp_04           1
     2022-12-17 20:15:58   dp_101          AAYoAAgeHgseHg0eABEsABYeAAYoAAgoHgsoHg0oABEoABYeAAYoAAgoHgsoHg0oABEoABYe
     2022-12-16 13:28:37   dp_102          0
     2022-12-16 13:28:37   dp_104          1
     2022-12-16 13:28:37   eco             off
     2022-12-16 13:28:36   icon            smart/icon/15264583415nnlzwfs1qd2wqz6i937op3nmi_0.png
     2022-12-16 13:28:36   id              30000443e8db84b97ec6
     2022-12-16 13:28:36   ip              93.199.164.114
     2022-12-16 13:28:36   lat             48.4231
     2022-12-16 13:28:36   local_key       87a027dd28cf507b
     2022-12-16 13:28:36   lon             11.0790
     2022-12-16 13:28:36   name            thermostat
     2022-12-17 20:15:52   online          1
     2022-12-16 13:28:36   owner_id        74123069
     2022-12-16 13:28:36   product_id      IAYz2WK1th0cMLmL
     2022-12-16 13:28:36   product_name    thermostat
     2022-12-17 20:15:59   state           ready
     2022-12-16 13:28:36   sub             0
     2022-12-16 14:27:53   switch          on
     2022-12-17 20:44:58   temp_set        5.0
     2022-12-17 20:44:53   temperature     19
     2022-12-16 13:28:36   time_zone       +01:00
     2022-12-16 13:28:36   uid             eu1670673972921RSqe1
     2022-12-16 13:28:36   update_time     1670674065
     2022-12-17 20:44:53   upper_temp      38.0
     2022-12-16 13:28:36   uuid            30000443e8db84b97ec6
   args:
     tuya_local_30000443e8db84b97ec6
     fhempy
     tuya
     IAYz2WK1th0cMLmL
     30000443e8db84b97ec6
     192.168.0.150
     87a027dd28cf507b
     3.3
     urm38hmp7t3smmqqh8mj
     c4138d197ec14365b1affaeae303eea7
   argsh:
Attributes:
   DbLogInclude temperature
   alias      thermostat
   dp_01      switch
   dp_02      temp_set
   dp_03      upper_temp
   dp_05      eco
   dp_06      child_lock
   group      tuya
   room       fhempy
   tuya_spec_functions [{'code': 'switch', 'dp_id': 1, 'type': 'Boolean', 'values': {}, 'desc': 'switch'}, {'code': 'child_lock', 'dp_id': 6, 'type': 'Boolean', 'values': {}, 'desc': 'child lock'}, {'code': 'temp_set', 'dp_id': 2, 'type': 'Integer', 'values': {'unit': '℃', 'min': 10, 'max': 70, 'scale': 1, 'step': 5}, 'desc': 'temp set'}, {'code': 'eco', 'dp_id': 5, 'type': 'Boolean', 'values': {}, 'desc': 'eco'}, {'code': 'upper_temp', 'dp_id': 3, 'type': 'Integer', 'values': {'unit': '℃', 'min': 0, 'max': 100, 'scale': 0, 'step': 5}, 'desc': 'upper temp'}]
   tuya_spec_status [{'code': 'eco', 'dp_id': 5, 'type': 'Boolean', 'values': {}}, {'code': 'temp_set', 'dp_id': 2, 'type': 'Integer', 'values': {'unit': '℃', 'min': 10, 'max': 70, 'scale': 1, 'step': 5}}, {'code': 'switch', 'dp_id': 1, 'type': 'Boolean', 'values': {}}, {'code': 'child_lock', 'dp_id': 6, 'type': 'Boolean', 'values': {}}, {'code': 'upper_temp', 'dp_id': 3, 'type': 'Integer', 'values': {'unit': '℃', 'min': 0, 'max': 100, 'scale': 0, 'step': 5}}]
   userReadings temperature:upper_temp.* {ReadingsVal("tuya_local_30000443e8db84b97ec6","upper_temp",0)/2}


Wie gesagt, wenn ich über die Tuya-Api das JSON per Postman schicke, dann macht er auch son Murks.
Habs jetzt quasi über das UserReading gelöst. Also das Auslesen. Beim Setzen ist das gleiche Problem mit der Umrechnung...

thburkhart

#350
Zitat
Am einfachsten machst du den Umstieg mit dem setup Device, das hier anlegen:
define tuya_system fhempy tuya setup API_KEY API_SECRET DEVICE_ID
dann
set tuya_system scan_devices
nach paar Minuten die einzelnen Devices anlegen
set tuya_system create_device ......

jetzt weiß ich wieder worüber ich strauchelte...
1)
API_KEY
API_SECRET
DEVICE_ID

woher bekomme ich die?
ich hatte ja vorher nur:
<CLIENT_ID>
<CLIENT_SECRET>                 
<USERNAME>
<PASSWORD>
<APPTYPE>
<REGION>


2) meine alten (ca. 75) Device attribute und SVGs sind dann weg?
1 RASPI4B, 1 RASPI3B, 2 CUL, 2 Jeelink, 60 Tuya-Devices (Schalter, Dimmer, Sensoren, Cameras), 30 HUE-Lampen, 5 MAX! WTs, 16 MAX! HTs, 12 MAX! FKs, 1 Bresser 5in1, 1 OilFox, 8 ALEXA Echos und Dots, FHEM, 5 Tasmota-Devices, SonOff -Bridge, PowerFox, Buderus KM200

thburkhart

Zitat von: Christian83 am 17 Dezember 2022, 20:51:14
Internals:[/color]
   CFGFN     
   DEF        tuya IAYz2WK1th0cMLmL 30000443e8db84b97ec6 192.168.0.150 87a027dd28cf507b 3.3 key secret
   DEVICEID   30000443e8db84b97ec6
   FHEMPYTYPE tuya
   FUUID      639c6473-f33f-d2f0-ded7-c57f83f01d793ae9
   IODev      fhempy_local
   NAME       tuya_local_30000443e8db84b97ec6
   NR         443
   PYTHONTYPE tuya
   STATE      ready
   TYPE       fhempy
   eventCount 88
   Helper:
     DBLOG:
       temperature:
         logdb:
           TIME       1671306293.59278
           VALUE      19
   READINGS:
     2022-12-16 13:28:36   active_time     1670674063
     2022-12-16 13:28:36   biz_type        0
     2022-12-16 13:28:36   category        wk
     2022-12-16 13:28:37   child_lock      off
     2022-12-16 13:28:36   create_time     1670669996
     2022-12-16 13:28:37   dp_04           1
     2022-12-17 20:15:58   dp_101          AAYoAAgeHgseHg0eABEsABYeAAYoAAgoHgsoHg0oABEoABYeAAYoAAgoHgsoHg0oABEoABYe
     2022-12-16 13:28:37   dp_102          0
     2022-12-16 13:28:37   dp_104          1
     2022-12-16 13:28:37   eco             off
     2022-12-16 13:28:36   icon            smart/icon/15264583415nnlzwfs1qd2wqz6i937op3nmi_0.png
     2022-12-16 13:28:36   id              30000443e8db84b97ec6
     2022-12-16 13:28:36   ip              93.199.164.114
     2022-12-16 13:28:36   lat             48.4231
     2022-12-16 13:28:36   local_key       87a027dd28cf507b
     2022-12-16 13:28:36   lon             11.0790
     2022-12-16 13:28:36   name            thermostat
     2022-12-17 20:15:52   online          1
     2022-12-16 13:28:36   owner_id        74123069
     2022-12-16 13:28:36   product_id      IAYz2WK1th0cMLmL
     2022-12-16 13:28:36   product_name    thermostat
     2022-12-17 20:15:59   state           ready
     2022-12-16 13:28:36   sub             0
     2022-12-16 14:27:53   switch          on
     2022-12-17 20:44:58   temp_set        5.0
     2022-12-17 20:44:53   temperature     19
     2022-12-16 13:28:36   time_zone       +01:00
     2022-12-16 13:28:36   uid             eu1670673972921RSqe1
     2022-12-16 13:28:36   update_time     1670674065
     2022-12-17 20:44:53   upper_temp      38.0
     2022-12-16 13:28:36   uuid            30000443e8db84b97ec6
   args:
     tuya_local_30000443e8db84b97ec6
     fhempy
     tuya
     IAYz2WK1th0cMLmL
     30000443e8db84b97ec6
     192.168.0.150
     87a027dd28cf507b
     3.3
     urm38hmp7t3smmqqh8mj
     c4138d197ec14365b1affaeae303eea7
   argsh:
Attributes:
   DbLogInclude temperature
   alias      thermostat
   dp_01      switch
   dp_02      temp_set
   dp_03      upper_temp
   dp_05      eco
   dp_06      child_lock
   group      tuya
   room       fhempy
   tuya_spec_functions [{'code': 'switch', 'dp_id': 1, 'type': 'Boolean', 'values': {}, 'desc': 'switch'}, {'code': 'child_lock', 'dp_id': 6, 'type': 'Boolean', 'values': {}, 'desc': 'child lock'}, {'code': 'temp_set', 'dp_id': 2, 'type': 'Integer', 'values': {'unit': '℃', 'min': 10, 'max': 70, 'scale': 1, 'step': 5}, 'desc': 'temp set'}, {'code': 'eco', 'dp_id': 5, 'type': 'Boolean', 'values': {}, 'desc': 'eco'}, {'code': 'upper_temp', 'dp_id': 3, 'type': 'Integer', 'values': {'unit': '℃', 'min': 0, 'max': 100, 'scale': 0, 'step': 5}, 'desc': 'upper temp'}]
   tuya_spec_status [{'code': 'eco', 'dp_id': 5, 'type': 'Boolean', 'values': {}}, {'code': 'temp_set', 'dp_id': 2, 'type': 'Integer', 'values': {'unit': '℃', 'min': 10, 'max': 70, 'scale': 1, 'step': 5}}, {'code': 'switch', 'dp_id': 1, 'type': 'Boolean', 'values': {}}, {'code': 'child_lock', 'dp_id': 6, 'type': 'Boolean', 'values': {}}, {'code': 'upper_temp', 'dp_id': 3, 'type': 'Integer', 'values': {'unit': '℃', 'min': 0, 'max': 100, 'scale': 0, 'step': 5}}]
   userReadings temperature:upper_temp.* {ReadingsVal("tuya_local_30000443e8db84b97ec6","upper_temp",0)/2}


.
ich habe mal wieder ne blöde Frage?
wie schafft Ihr das, die der Internals-Kopie aus dem Browser 1:1 und ohne Formatverlust zu in Code reinzukopieren?

bei mir sieht das ja so aus:

Internals
DEF
tuya_cloud TUYA bf4ae6b15fe239b42bxvpl
DEVICEID
bf4ae6b15fe239b42bxvpl
FHEMPYTYPE
tuya_cloud
FUUID
625f01ef-f33f-fd5f-eb72-266acf996be40377
IODev
local_pybinding
NAME
Temp1
NR
1840
PYTHONTYPE
tuya_cloud
STATE
ready
TYPE
fhempy
eventCount
215
Readings
active_time
1644673048
2022-12-17 19:54:35
biz_type
18
2022-12-17 19:54:35
category
wsdcg
2022-12-17 19:54:35
create_time
1644673048
2022-12-17 19:54:35
humidity_value
90.0
2022-12-17 21:47:35
icon
https://images.tuyaeu.com/smart/icon/ay1525749833414yotNt/60d869bb20b0e1b0f0347a9fd8781a3c.png
2022-12-17 19:54:35
id
bf4ae6b15fe239b42bxvpl
2022-12-17 19:54:35
ip
78.43.113.55
2022-12-17 19:54:35
lat
48.5585
2022-12-17 19:54:35
local_key
d7e7d21944d8c91f
2022-12-17 19:54:35
lon
9.2025
2022-12-17 19:54:35
model
TH06WB3S
2022-12-17 19:54:35
name
Temperatur Terrasse
2022-12-17 19:54:35
online
on
2022-12-17 19:54:35
owner_id
3389434
2022-12-17 19:54:35
product_id
7akwzwfwhukkdsib
2022-12-17 19:54:35
product_name
T & H Sensor
2022-12-17 19:54:35
state
ready
2022-12-17 19:54:21
sub
off
2022-12-17 19:54:35
temp_unit_convert
c
2022-12-17 21:47:35
time_zone
+01:00
2022-12-17 19:54:35
uid
eu1548823829280mLHX1
2022-12-17 19:54:35
update_time
1669504397
2022-12-17 19:54:35
uuid
d24c953f87bd7f05
2022-12-17 19:54:35
va_temperature
0.0
2022-12-17 21:47:35

1 RASPI4B, 1 RASPI3B, 2 CUL, 2 Jeelink, 60 Tuya-Devices (Schalter, Dimmer, Sensoren, Cameras), 30 HUE-Lampen, 5 MAX! WTs, 16 MAX! HTs, 12 MAX! FKs, 1 Bresser 5in1, 1 OilFox, 8 ALEXA Echos und Dots, FHEM, 5 Tasmota-Devices, SonOff -Bridge, PowerFox, Buderus KM200

Christian83

"list device" und da dann copy-paste.

dominik

CLIENT_ID = API_KEY
CLIENT_SECRET = API_SECRET

Tuya hatte das mal umbenannt  8)

Das Kopieren ohne Formatverlust kannst du mit der neuen Copy Funktion in FHEMWeb machen. Musst wahrscheinlich noch ein "update" machen.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

dominik

Zitat von: Christian83 am 17 Dezember 2022, 20:51:14
Internals:
   CFGFN     
   DEF        tuya IAYz2WK1th0cMLmL 30000443e8db84b97ec6 192.168.0.150 87a027dd28cf507b 3.3 key secret
   DEVICEID   30000443e8db84b97ec6
   FHEMPYTYPE tuya
   FUUID      639c6473-f33f-d2f0-ded7-c57f83f01d793ae9
   IODev      fhempy_local
   NAME       tuya_local_30000443e8db84b97ec6
   NR         443
   PYTHONTYPE tuya
   STATE      ready
   TYPE       fhempy
   eventCount 88
   Helper:
     DBLOG:
       temperature:
         logdb:
           TIME       1671306293.59278
           VALUE      19
   READINGS:
     2022-12-16 13:28:36   active_time     1670674063
     2022-12-16 13:28:36   biz_type        0
     2022-12-16 13:28:36   category        wk
     2022-12-16 13:28:37   child_lock      off
     2022-12-16 13:28:36   create_time     1670669996
     2022-12-16 13:28:37   dp_04           1
     2022-12-17 20:15:58   dp_101          AAYoAAgeHgseHg0eABEsABYeAAYoAAgoHgsoHg0oABEoABYeAAYoAAgoHgsoHg0oABEoABYe
     2022-12-16 13:28:37   dp_102          0
     2022-12-16 13:28:37   dp_104          1
     2022-12-16 13:28:37   eco             off
     2022-12-16 13:28:36   icon            smart/icon/15264583415nnlzwfs1qd2wqz6i937op3nmi_0.png
     2022-12-16 13:28:36   id              30000443e8db84b97ec6
     2022-12-16 13:28:36   ip              93.199.164.114
     2022-12-16 13:28:36   lat             48.4231
     2022-12-16 13:28:36   local_key       87a027dd28cf507b
     2022-12-16 13:28:36   lon             11.0790
     2022-12-16 13:28:36   name            thermostat
     2022-12-17 20:15:52   online          1
     2022-12-16 13:28:36   owner_id        74123069
     2022-12-16 13:28:36   product_id      IAYz2WK1th0cMLmL
     2022-12-16 13:28:36   product_name    thermostat
     2022-12-17 20:15:59   state           ready
     2022-12-16 13:28:36   sub             0
     2022-12-16 14:27:53   switch          on
     2022-12-17 20:44:58   temp_set        5.0
     2022-12-17 20:44:53   temperature     19
     2022-12-16 13:28:36   time_zone       +01:00
     2022-12-16 13:28:36   uid             eu1670673972921RSqe1
     2022-12-16 13:28:36   update_time     1670674065
     2022-12-17 20:44:53   upper_temp      38.0
     2022-12-16 13:28:36   uuid            30000443e8db84b97ec6
   args:
     tuya_local_30000443e8db84b97ec6
     fhempy
     tuya
     IAYz2WK1th0cMLmL
     30000443e8db84b97ec6
     192.168.0.150
     87a027dd28cf507b
     3.3
     urm38hmp7t3smmqqh8mj
     c4138d197ec14365b1affaeae303eea7
   argsh:
Attributes:
   DbLogInclude temperature
   alias      thermostat
   dp_01      switch
   dp_02      temp_set
   dp_03      upper_temp
   dp_05      eco
   dp_06      child_lock
   group      tuya
   room       fhempy
   tuya_spec_functions [{'code': 'switch', 'dp_id': 1, 'type': 'Boolean', 'values': {}, 'desc': 'switch'}, {'code': 'child_lock', 'dp_id': 6, 'type': 'Boolean', 'values': {}, 'desc': 'child lock'}, {'code': 'temp_set', 'dp_id': 2, 'type': 'Integer', 'values': {'unit': '℃', 'min': 10, 'max': 70, 'scale': 1, 'step': 5}, 'desc': 'temp set'}, {'code': 'eco', 'dp_id': 5, 'type': 'Boolean', 'values': {}, 'desc': 'eco'}, {'code': 'upper_temp', 'dp_id': 3, 'type': 'Integer', 'values': {'unit': '℃', 'min': 0, 'max': 100, 'scale': 0, 'step': 5}, 'desc': 'upper temp'}]
   tuya_spec_status [{'code': 'eco', 'dp_id': 5, 'type': 'Boolean', 'values': {}}, {'code': 'temp_set', 'dp_id': 2, 'type': 'Integer', 'values': {'unit': '℃', 'min': 10, 'max': 70, 'scale': 1, 'step': 5}}, {'code': 'switch', 'dp_id': 1, 'type': 'Boolean', 'values': {}}, {'code': 'child_lock', 'dp_id': 6, 'type': 'Boolean', 'values': {}}, {'code': 'upper_temp', 'dp_id': 3, 'type': 'Integer', 'values': {'unit': '℃', 'min': 0, 'max': 100, 'scale': 0, 'step': 5}}]
   userReadings temperature:upper_temp.* {ReadingsVal("tuya_local_30000443e8db84b97ec6","upper_temp",0)/2}


Wie gesagt, wenn ich über die Tuya-Api das JSON per Postman schicke, dann macht er auch son Murks.
Habs jetzt quasi über das UserReading gelöst. Also das Auslesen. Beim Setzen ist das gleiche Problem mit der Umrechnung...

Jetzt sollte auch das funktionieren :) Bitte mit Version 0.1.531 probieren.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Christian83

Naja. Jetzt zeigt er mir bei 19.5 => 195 an. Also Wert mal 10. (upper_wert. Ist der aktuelle Wert).
Und bei temp_set kommt jetzt am Thermostat immer 0 an. (Wohl, weil der Wert zu hoch wird.)

dominik

Bitte mit 0.1.532 testen, ist in ein paar Minuten online.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Christian83

Hi,

das Auslesen von upper_temp funktioneirt jetzt.
Nur das Setzen über temp_set nicht. Da wird immer 0 Grad gesetzt auf dem Thermostat.

dominik

So, ich hab es jetzt abhängig von der ProductID IAYz2WK1th0cMLmL gemacht. Weil das dürfte vom Hersteller nicht nach dem Standards implementiert worden sein.

Bitte mit 0.1.533 testen.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

thburkhart

Am einfachsten machst du den Umstieg mit dem setup Device, das hier anlegen:
define tuya_system fhempy tuya setup API_KEY API_SECRET DEVICE_ID
dann
set tuya_system scan_devices
nach paar Minuten die einzelnen Devices anlegen
set tuya_system create_device .....


und woher bekomme ich <DEVBICE_ID> ?

irgend
ein erstes beliebiges? oder brauche ich das für alle meine 80?
1 RASPI4B, 1 RASPI3B, 2 CUL, 2 Jeelink, 60 Tuya-Devices (Schalter, Dimmer, Sensoren, Cameras), 30 HUE-Lampen, 5 MAX! WTs, 16 MAX! HTs, 12 MAX! FKs, 1 Bresser 5in1, 1 OilFox, 8 ALEXA Echos und Dots, FHEM, 5 Tasmota-Devices, SonOff -Bridge, PowerFox, Buderus KM200