sabinus52 / jeedom-smartlife

Plugin Jeedom pour la gestion des objets connectés Smart Life / Tuya
GNU General Public License v2.0
10 stars 5 forks source link

Thermostat ATENZA (743024) #54

Closed Wider77 closed 3 years ago

Wider77 commented 3 years ago

Bonjour sabinus52,

Tout d'abord, merci pour la mise à disposition du plugin, qui plus est, gratuit.

J'ai un problème similaire à Aghtor au sujet Thermostat SEA801-APP #45.

Pour ma part, j'utilise un thermostat ATENZA (réf 743024) avec l'appli Tuya.

Les commandes disponibles sont : Statut Allumer Eteindre Température mesurée Température de consigne (info) Température de consigne (action)

La seule action ne fonctionnant pas, mais pas des moindres, est la température de consigne ; ci-joint les logs :

[2020-11-29 22:33:42][DEBUG] : ACTION EXECUTE : SetTemperature Array ( [slider] => 23 [utid] => 1606685555740 ) [2020-11-29 22:33:42][DEBUG] : CONNECTION : mail@live.fr (33) tuya - 5 s [2020-11-29 22:33:42][DEBUG] : SEND EVENT 60400225bcddc27038c3 : thermostat salon 60400225bcddc27038c3 [2020-11-29 22:33:42][DEBUG] : SEND EVENT 60400225bcddc27038c3 : Sabinus\TuyaCloudApi\Device\ClimateDevice Object ( [id:protected] => 60400225bcddc27038c3 [type:protected] => climate [name:protected] => thermostat salon [icon:protected] => https://images.tuyaeu.com/smart/program_category_icon/wk.png [data:protected] => Array ( [current_temperature] => 215 [min_temper] => 50 [temperature] => 210 [max_temper] => 950 [online] => 1 [state] => true ) ) [2020-11-29 22:33:42][INFO] : SEND EVENT 60400225bcddc27038c3 : SetTemperature(23) [2020-11-29 22:33:42][DEBUG] : SEND EVENT : tentative 1 [2020-11-29 22:33:42][DEBUG] : Erreur de connexion au cloud Tuya : Call to undefined method Sabinus\TuyaCloudApi\Device\ClimateDevice::SetTemperature() [2020-11-29 22:33:42][DEBUG] : SEND EVENT : tentative 2 [2020-11-29 22:33:42][DEBUG] : Erreur de connexion au cloud Tuya : Call to undefined method Sabinus\TuyaCloudApi\Device\ClimateDevice::SetTemperature() [2020-11-29 22:33:42][DEBUG] : SEND EVENT : tentative 3 [2020-11-29 22:33:42][DEBUG] : Erreur de connexion au cloud Tuya : Call to undefined method Sabinus\TuyaCloudApi\Device\ClimateDevice::SetTemperature() [2020-11-29 22:33:42][DEBUG] : SEND EVENT : Error Object ( [message:protected] => Call to undefined method Sabinus\TuyaCloudApi\Device\ClimateDevice::SetTemperature() [string:Error:private] => [code:protected] => 0 [file:protected] => /var/www/html/plugins/SmartLife/core/config/SmartLifeDevice.class.php [line:protected] => 88 [trace:Error:private] => Array ( [0] => Array ( [file] => /var/www/html/plugins/SmartLife/core/class/SmartLife.class.php [line] => 420 [function] => callFunctionEvent [class] => SmartLifeDevice [type] => -> [args] => Array ( [0] => Sabinus\TuyaCloudApi\TuyaCloudApi Object ( [session:Sabinus\TuyaCloudApi\TuyaCloudApi:private] => Sabinus\TuyaCloudApi\Session\Session Object ( [username:Sabinus\TuyaCloudApi\Session\Session:private] => mail@live.fr [password:Sabinus\TuyaCloudApi\Session\Session:private] => mdp [countryCode:Sabinus\TuyaCloudApi\Session\Session:private] => 33 [platform:Sabinus\TuyaCloudApi\Session\Session:private] => Sabinus\TuyaCloudApi\Session\Platform Object ( [biztype:Sabinus\TuyaCloudApi\Session\Platform:private] => tuya [region:Sabinus\TuyaCloudApi\Session\Platform:private] => eu ) [client:Sabinus\TuyaCloudApi\Session\Session:private] => GuzzleHttp\Client Object ( [config:GuzzleHttp\Client:private] => Array ( [base_uri] => GuzzleHttp\Psr7\Uri Object ( [scheme:GuzzleHttp\Psr7\Uri:private] => https [userInfo:GuzzleHttp\Psr7\Uri:private] => [host:GuzzleHttp\Psr7\Uri:private] => px1.tuyaeu.com [port:GuzzleHttp\Psr7\Uri:private] => [path:GuzzleHttp\Psr7\Uri:private] => [query:GuzzleHttp\Psr7\Uri:private] => [fragment:GuzzleHttp\Psr7\Uri:private] => ) [connect_timeout] => 5 [timeout] => 5 [handler] => GuzzleHttp\HandlerStack Object ( [handler:GuzzleHttp\HandlerStack:private] => Closure Object ( [static] => Array ( [default] => Closure Object ( [static] => Array ( [default] => GuzzleHttp\Handler\CurlMultiHandler Object ( [factory:GuzzleHttp\Handler\CurlMultiHandler:private] => GuzzleHttp\Handler\CurlFactory Object ( [handles:GuzzleHttp\Handler\CurlFactory:private] => Array ( ) [maxHandles:GuzzleHttp\Handler\CurlFactory:private] => 50 ) [selectTimeout:GuzzleHttp\Handler\CurlMultiHandler:private] => 1 [active:GuzzleHttp\Handler\CurlMultiHandler:private] => [handles:GuzzleHttp\Handler\CurlMultiHandler:private] => Array ( ) [delays:GuzzleHttp\Handler\CurlMultiHandler:private] => Array ( ) [options:GuzzleHttp\Handler\CurlMultiHandler:private] => Array ( ) ) [sync] => GuzzleHttp\Handler\CurlHandler Object ( [factory:GuzzleHttp\Handler\CurlHandler:private] => GuzzleHttp\Handler\CurlFactory Object ( [handles:GuzzleHttp\Handler\CurlFactory:private] => Array ( ) [maxHandles:GuzzleHttp\Handler\CurlFactory:private] => 3 ) ) ) [parameter] => Array ( [$request] => [$options] => ) ) [streaming] => GuzzleHttp\Handler\StreamHandler Object ( [lastHeaders:GuzzleHttp\Handler\StreamHandler:private] => Array ( ) ) ) [parameter] => Array ( [$request] => [$options] => ) ) [stack:GuzzleHttp\HandlerStack:private] => Array ( [0] => Array ( [0] => Closure Object ( [parameter] => Array ( [$handler] => ) ) [1] => http_errors ) [1] => Array ( [0] => Closure Object ( [parameter] => Array ( [$handler] => ) ) [1] => allow_redirects ) [2] => Array ( [0] => Closure Object ( [parameter] => Array ( [$handler] => ) ) [1] => cookies ) [3] => Array ( [0] => Closure Object ( [parameter] => Array ( [$handler] => ) ) [1] => prepare_body ) ) [cached:GuzzleHttp\HandlerStack:private] => ) [allow_redirects] => Array ( [max] => 5 [protocols] => Array ( [0] => http [1] => https ) [strict] => [referer] => [track_redirects] => ) [http_errors] => 1 [decode_content] => 1 [verify] => 1 [cookies] => [idn_conversion] => [headers] => Array ( [User-Agent] => GuzzleHttp/6.5.0 curl/7.64.0 PHP/7.3.19-1~deb10u1 ) ) ) [token:Sabinus\TuyaCloudApi\Session\Session:private] => Sabinus\TuyaCloudApi\Session\Token Object ( [tokenAccess:Sabinus\TuyaCloudApi\Session\Token:private] => [tokenRefresh:Sabinus\TuyaCloudApi\Session\Token:private] => [expireTime:Sabinus\TuyaCloudApi\Session\Token:private] => ) [timeout:Sabinus\TuyaCloudApi\Session\Session:private] => 5 ) [devices:Sabinus\TuyaCloudApi\TuyaCloudApi:private] => ) [1] => SetTemperature [2] => Array ( [0] => 23 ) [3] => SEND EVENT ) ) [1] => Array ( [file] => /var/www/html/plugins/SmartLife/core/class/SmartLife.class.php [line] => 457 [function] => sendAction [class] => SmartLife [type] => -> [args] => Array ( [0] => SetTemperature [1] => Array ( [0] => 23 ) ) ) [2] => Array ( [file] => /var/www/html/core/class/cmd.class.php [line] => 1115 [function] => execute [class] => SmartLifeCmd [type] => -> [args] => Array ( [0] => Array ( [slider] => 23 [utid] => 1606685555740 ) ) ) [3] => Array ( [file] => /var/www/html/core/ajax/cmd.ajax.php [line] => 88 [function] => execCmd [class] => cmd [type] => -> [args] => Array ( [0] => Array ( [slider] => 23 [utid] => 1606685555740 ) ) ) ) [previous:Error:private] => ) [2020-11-29 22:33:42][ERROR] : Erreur de connexion au cloud Tuya : Call to undefined method Sabinus\TuyaCloudApi\Device\ClimateDevice::SetTemperature() [2020-11-29 22:33:42][ERROR] : Erreur exécution de la commande [MAISON][thermostat salon 60400225bcddc27038c3][Thermostat] : Erreur de connexion au cloud Tuya : Call to undefined method Sabinus\TuyaCloudApi\Device\ClimateDevice::SetTemperature()

Voilà, je reste à ta dispo pour tout échange, et te remercie d'avance pour ton retour.

Wdr77

sabinus52 commented 3 years ago

Bonjour,

Il faudrait supprimer l'objet et refaire après une "découverte des objets"

Wider77 commented 3 years ago

Bonjour Sabinus,

Merci pour ta réponse rapide.

Malgré plusieurs tentatives de ta procédure dans Jeedom (V.4 et j'ai testé sur version stable et bêta du pugin - testé aussi en supprimant l'objet dans l'application Tuya et ré-inclusion) pas de changement, toujours la même erreur.

sabinus52 commented 3 years ago

J'ai apporté la correction. Il faudrait à nouveau supprimer l'objet et refaire après une "découverte des objets"

Wider77 commented 3 years ago

Bonjour Sabinuss,

Encore merci pour ta réactivité, ton travail, et les modifications apportées ; la commande est maintenant reconnue, mais la mise à jour des valeurs n'est pas cohérente.

Il y a un problème de facteur x10 pour le retour de valeur sous Jeedom. En effet, le thermostat "physique" affiche une température ambiante de 20°C et une température de consigne de 23°C ; or les valeurs affichées dans Jeedom sont respectivement 200 et 230 (la correction de valeur "#value#/10" dans l'onglet configuration de la commande bloque toutes les remontées d'information vers Jeedom - obligé de supprimer l'équipement et de le re-découvrir de nouveau).

Je ne sais pas si c'est lié, mais l'envoi du thermostat Jeedom vers Tuya est donc erroné, ci-joint les logs associés de plusieurs commandes thermostat (par conséquent, les retours de consigne dans l'application Tuya ont aussi un facteur /10, et sont respectivement : 66 / 68 / 70 / 72 / 73 / 75 / 77°C) :

[2020-12-04 23:47:14][DEBUG] : ACTION EXECUTE : SetThermostat Array ( [slider] => 19 [utid] => 1607118754082 ) [2020-12-04 23:47:14][DEBUG] : CONNECTION : mail@live.fr (33) tuya - 5 s [2020-12-04 23:47:14][DEBUG] : SEND EVENT 60400225bcddc27038c3 : thermostat salon 60400225bcddc27038c3 [2020-12-04 23:47:14][DEBUG] : SEND EVENT 60400225bcddc27038c3 : Sabinus\TuyaCloudApi\Device\ClimateDevice Object ( [id:protected] => 60400225bcddc27038c3 [type:protected] => climate [name:protected] => thermostat salon [icon:protected] => https://images.tuyaeu.com/smart/program_category_icon/wk.png [data:protected] => Array ( [current_temperature] => 210 [min_temper] => 50 [temperature] => 230 [max_temper] => 950 [online] => 1 [state] => true ) ) [2020-12-04 23:47:14][INFO] : SEND EVENT 60400225bcddc27038c3 : SetThermostat(19) [2020-12-04 23:47:14][DEBUG] : SEND EVENT : tentative 1 [2020-12-04 23:47:17][INFO] : REFRESH 60400225bcddc27038c3 : thermostat salon 60400225bcddc27038c3 [2020-12-04 23:47:17][DEBUG] : REFRESH : tentative 1 [2020-12-04 23:47:18][DEBUG] : REFRESH 60400225bcddc27038c3 : Sabinus\TuyaCloudApi\Device\ClimateDevice Object ( [id:protected] => 60400225bcddc27038c3 [type:protected] => climate [name:protected] => thermostat salon [icon:protected] => https://images.tuyaeu.com/smart/program_category_icon/wk.png [data:protected] => Array ( [current_temperature] => 205 [min_temper] => 50 [temperature] => 660 [maxtemper] => 950 [online] => 1 [state] => true ) ) [2020-12-04 23:47:18][DEBUG] : UPDATE 60400225bcddc27038c3 : checkAndUpdateCmd STATE = true [2020-12-04 23:47:18][DEBUG] : UPDATE 60400225bcddc27038c3 : checkAndUpdateCmd TEMPERATURE = 205 [2020-12-04 23:47:18][DEBUG] : UPDATE 60400225bcddc27038c3 : checkAndUpdateCmd THERMOSTAT = 660 (=> Retour 66°C dans Tuya)_


[2020-12-04 23:48:53][DEBUG] : ACTION EXECUTE : SetThermostat Array ( [slider] => 20 [utid] => 1607118754082 ) [2020-12-04 23:48:53][DEBUG] : CONNECTION : mail@live.fr (33) tuya - 5 s [2020-12-04 23:48:53][DEBUG] : SEND EVENT 60400225bcddc27038c3 : thermostat salon 60400225bcddc27038c3 [2020-12-04 23:48:53][DEBUG] : SEND EVENT 60400225bcddc27038c3 : Sabinus\TuyaCloudApi\Device\ClimateDevice Object ( [id:protected] => 60400225bcddc27038c3 [type:protected] => climate [name:protected] => thermostat salon [icon:protected] => https://images.tuyaeu.com/smart/program_category_icon/wk.png [data:protected] => Array ( [current_temperature] => 210 [min_temper] => 50 [temperature] => 230 [max_temper] => 950 [online] => 1 [state] => true ) ) [2020-12-04 23:48:53][INFO] : SEND EVENT 60400225bcddc27038c3 : SetThermostat(20) [2020-12-04 23:48:53][DEBUG] : SEND EVENT : tentative 1 [2020-12-04 23:48:57][INFO] : REFRESH 60400225bcddc27038c3 : thermostat salon 60400225bcddc27038c3 [2020-12-04 23:48:57][DEBUG] : REFRESH : tentative 1 [2020-12-04 23:48:58][DEBUG] : REFRESH 60400225bcddc27038c3 : Sabinus\TuyaCloudApi\Device\ClimateDevice Object ( [id:protected] => 60400225bcddc27038c3 [type:protected] => climate [name:protected] => thermostat salon [icon:protected] => https://images.tuyaeu.com/smart/program_category_icon/wk.png [data:protected] => Array ( [current_temperature] => 205 [min_temper] => 50 [temperature] => 680 [maxtemper] => 950 [online] => 1 [state] => true ) ) [2020-12-04 23:48:58][DEBUG] : UPDATE 60400225bcddc27038c3 : checkAndUpdateCmd STATE = true [2020-12-04 23:48:58][DEBUG] : UPDATE 60400225bcddc27038c3 : checkAndUpdateCmd TEMPERATURE = 205 [2020-12-04 23:48:58][DEBUG] : UPDATE 60400225bcddc27038c3 : checkAndUpdateCmd THERMOSTAT = 680 (=> Retour 68°C dans Tuya)_


[2020-12-04 23:50:34][DEBUG] : ACTION EXECUTE : SetThermostat Array ( [slider] => 21 [utid] => 1607118754082 ) [2020-12-04 23:50:34][DEBUG] : CONNECTION : mail@live.fr (33) tuya - 5 s [2020-12-04 23:50:34][DEBUG] : SEND EVENT 60400225bcddc27038c3 : thermostat salon 60400225bcddc27038c3 [2020-12-04 23:50:34][DEBUG] : SEND EVENT 60400225bcddc27038c3 : Sabinus\TuyaCloudApi\Device\ClimateDevice Object ( [id:protected] => 60400225bcddc27038c3 [type:protected] => climate [name:protected] => thermostat salon [icon:protected] => https://images.tuyaeu.com/smart/program_category_icon/wk.png [data:protected] => Array ( [current_temperature] => 210 [min_temper] => 50 [temperature] => 230 [max_temper] => 950 [online] => 1 [state] => true ) ) [2020-12-04 23:50:34][INFO] : SEND EVENT 60400225bcddc27038c3 : SetThermostat(21) [2020-12-04 23:50:34][DEBUG] : SEND EVENT : tentative 1 [2020-12-04 23:50:38][INFO] : REFRESH 60400225bcddc27038c3 : thermostat salon 60400225bcddc27038c3 [2020-12-04 23:50:38][DEBUG] : REFRESH : tentative 1 [2020-12-04 23:50:39][DEBUG] : REFRESH 60400225bcddc27038c3 : Sabinus\TuyaCloudApi\Device\ClimateDevice Object ( [id:protected] => 60400225bcddc27038c3 [type:protected] => climate [name:protected] => thermostat salon [icon:protected] => https://images.tuyaeu.com/smart/program_category_icon/wk.png [data:protected] => Array ( [current_temperature] => 205 [min_temper] => 50 [temperature] => 700 [maxtemper] => 950 [online] => 1 [state] => true ) ) [2020-12-04 23:50:39][DEBUG] : UPDATE 60400225bcddc27038c3 : checkAndUpdateCmd STATE = true [2020-12-04 23:50:39][DEBUG] : UPDATE 60400225bcddc27038c3 : checkAndUpdateCmd TEMPERATURE = 205 [2020-12-04 23:50:39][DEBUG] : UPDATE 60400225bcddc27038c3 : checkAndUpdateCmd THERMOSTAT = 700 (=> Retour 70°C dans Tuya)_


[2020-12-04 23:51:47][DEBUG] : ACTION EXECUTE : SetThermostat Array ( [slider] => 22 [utid] => 1607118754082 ) [2020-12-04 23:51:47][DEBUG] : CONNECTION : mail@live.fr (33) tuya - 5 s [2020-12-04 23:51:47][DEBUG] : SEND EVENT 60400225bcddc27038c3 : thermostat salon 60400225bcddc27038c3 [2020-12-04 23:51:47][DEBUG] : SEND EVENT 60400225bcddc27038c3 : Sabinus\TuyaCloudApi\Device\ClimateDevice Object ( [id:protected] => 60400225bcddc27038c3 [type:protected] => climate [name:protected] => thermostat salon [icon:protected] => https://images.tuyaeu.com/smart/program_category_icon/wk.png [data:protected] => Array ( [current_temperature] => 210 [min_temper] => 50 [temperature] => 230 [max_temper] => 950 [online] => 1 [state] => true ) ) [2020-12-04 23:51:47][INFO] : SEND EVENT 60400225bcddc27038c3 : SetThermostat(22) [2020-12-04 23:51:47][DEBUG] : SEND EVENT : tentative 1 [2020-12-04 23:51:50][INFO] : REFRESH 60400225bcddc27038c3 : thermostat salon 60400225bcddc27038c3 [2020-12-04 23:51:50][DEBUG] : REFRESH : tentative 1 [2020-12-04 23:51:52][DEBUG] : REFRESH 60400225bcddc27038c3 : Sabinus\TuyaCloudApi\Device\ClimateDevice Object ( [id:protected] => 60400225bcddc27038c3 [type:protected] => climate [name:protected] => thermostat salon [icon:protected] => https://images.tuyaeu.com/smart/program_category_icon/wk.png [data:protected] => Array ( [current_temperature] => 205 [min_temper] => 50 [temperature] => 720 [maxtemper] => 950 [online] => 1 [state] => true ) ) [2020-12-04 23:51:52][DEBUG] : UPDATE 60400225bcddc27038c3 : checkAndUpdateCmd STATE = true [2020-12-04 23:51:52][DEBUG] : UPDATE 60400225bcddc27038c3 : checkAndUpdateCmd TEMPERATURE = 205 [2020-12-04 23:51:52][DEBUG] : UPDATE 60400225bcddc27038c3 : checkAndUpdateCmd THERMOSTAT = 720 (=> Retour 72°C dans Tuya)_


[2020-12-04 23:52:54][DEBUG] : ACTION EXECUTE : SetThermostat Array ( [slider] => 23 [utid] => 1607118754082 ) [2020-12-04 23:52:54][DEBUG] : CONNECTION : mail@live.fr (33) tuya - 5 s [2020-12-04 23:52:54][DEBUG] : SEND EVENT 60400225bcddc27038c3 : thermostat salon 60400225bcddc27038c3 [2020-12-04 23:52:54][DEBUG] : SEND EVENT 60400225bcddc27038c3 : Sabinus\TuyaCloudApi\Device\ClimateDevice Object ( [id:protected] => 60400225bcddc27038c3 [type:protected] => climate [name:protected] => thermostat salon [icon:protected] => https://images.tuyaeu.com/smart/program_category_icon/wk.png [data:protected] => Array ( [current_temperature] => 210 [min_temper] => 50 [temperature] => 230 [max_temper] => 950 [online] => 1 [state] => true ) ) [2020-12-04 23:52:54][INFO] : SEND EVENT 60400225bcddc27038c3 : SetThermostat(23) [2020-12-04 23:52:54][DEBUG] : SEND EVENT : tentative 1 [2020-12-04 23:52:57][INFO] : REFRESH 60400225bcddc27038c3 : thermostat salon 60400225bcddc27038c3 [2020-12-04 23:52:57][DEBUG] : REFRESH : tentative 1 [2020-12-04 23:52:58][DEBUG] : REFRESH 60400225bcddc27038c3 : Sabinus\TuyaCloudApi\Device\ClimateDevice Object ( [id:protected] => 60400225bcddc27038c3 [type:protected] => climate [name:protected] => thermostat salon [icon:protected] => https://images.tuyaeu.com/smart/program_category_icon/wk.png [data:protected] => Array ( [current_temperature] => 205 [min_temper] => 50 [temperature] => 730 [maxtemper] => 950 [online] => 1 [state] => true ) ) [2020-12-04 23:52:58][DEBUG] : UPDATE 60400225bcddc27038c3 : checkAndUpdateCmd STATE = true [2020-12-04 23:52:58][DEBUG] : UPDATE 60400225bcddc27038c3 : checkAndUpdateCmd TEMPERATURE = 205 [2020-12-04 23:52:58][DEBUG] : UPDATE 60400225bcddc27038c3 : checkAndUpdateCmd THERMOSTAT = 730 (=> Retour 73°C dans Tuya)_


[2020-12-04 23:54:08][DEBUG] : ACTION EXECUTE : SetThermostat Array ( [slider] => 24 [utid] => 1607118754082 ) [2020-12-04 23:54:08][DEBUG] : CONNECTION : mail@live.fr (33) tuya - 5 s [2020-12-04 23:54:08][DEBUG] : SEND EVENT 60400225bcddc27038c3 : thermostat salon 60400225bcddc27038c3 [2020-12-04 23:54:08][DEBUG] : SEND EVENT 60400225bcddc27038c3 : Sabinus\TuyaCloudApi\Device\ClimateDevice Object ( [id:protected] => 60400225bcddc27038c3 [type:protected] => climate [name:protected] => thermostat salon [icon:protected] => https://images.tuyaeu.com/smart/program_category_icon/wk.png [data:protected] => Array ( [current_temperature] => 210 [min_temper] => 50 [temperature] => 230 [max_temper] => 950 [online] => 1 [state] => true ) ) [2020-12-04 23:54:08][INFO] : SEND EVENT 60400225bcddc27038c3 : SetThermostat(24) [2020-12-04 23:54:08][DEBUG] : SEND EVENT : tentative 1 [2020-12-04 23:54:11][INFO] : REFRESH 60400225bcddc27038c3 : thermostat salon 60400225bcddc27038c3 [2020-12-04 23:54:11][DEBUG] : REFRESH : tentative 1 [2020-12-04 23:54:12][DEBUG] : REFRESH 60400225bcddc27038c3 : Sabinus\TuyaCloudApi\Device\ClimateDevice Object ( [id:protected] => 60400225bcddc27038c3 [type:protected] => climate [name:protected] => thermostat salon [icon:protected] => https://images.tuyaeu.com/smart/program_category_icon/wk.png [data:protected] => Array ( [current_temperature] => 205 [min_temper] => 50 [temperature] => 750 [maxtemper] => 950 [online] => 1 [state] => true ) ) [2020-12-04 23:54:12][DEBUG] : UPDATE 60400225bcddc27038c3 : checkAndUpdateCmd STATE = true [2020-12-04 23:54:12][DEBUG] : UPDATE 60400225bcddc27038c3 : checkAndUpdateCmd TEMPERATURE = 205 [2020-12-04 23:54:12][DEBUG] : UPDATE 60400225bcddc27038c3 : checkAndUpdateCmd THERMOSTAT = 750 (=> Retour 75°C dans Tuya)_


[2020-12-04 23:55:15][DEBUG] : ACTION EXECUTE : SetThermostat Array ( [slider] => 25 [utid] => 1607118754082 ) [2020-12-04 23:55:15][DEBUG] : CONNECTION : mail@live.fr (33) tuya - 5 s [2020-12-04 23:55:15][DEBUG] : SEND EVENT 60400225bcddc27038c3 : thermostat salon 60400225bcddc27038c3 [2020-12-04 23:55:15][DEBUG] : SEND EVENT 60400225bcddc27038c3 : Sabinus\TuyaCloudApi\Device\ClimateDevice Object ( [id:protected] => 60400225bcddc27038c3 [type:protected] => climate [name:protected] => thermostat salon [icon:protected] => https://images.tuyaeu.com/smart/program_category_icon/wk.png [data:protected] => Array ( [current_temperature] => 210 [min_temper] => 50 [temperature] => 230 [max_temper] => 950 [online] => 1 [state] => true ) ) [2020-12-04 23:55:15][INFO] : SEND EVENT 60400225bcddc27038c3 : SetThermostat(25) [2020-12-04 23:55:15][DEBUG] : SEND EVENT : tentative 1 [2020-12-04 23:55:18][INFO] : REFRESH 60400225bcddc27038c3 : thermostat salon 60400225bcddc27038c3 [2020-12-04 23:55:18][DEBUG] : REFRESH : tentative 1 [2020-12-04 23:55:19][DEBUG] : REFRESH 60400225bcddc27038c3 : Sabinus\TuyaCloudApi\Device\ClimateDevice Object ( [id:protected] => 60400225bcddc27038c3 [type:protected] => climate [name:protected] => thermostat salon [icon:protected] => https://images.tuyaeu.com/smart/program_category_icon/wk.png [data:protected] => Array ( [current_temperature] => 205 [min_temper] => 50 [temperature] => 770 [maxtemper] => 950 [online] => 1 [state] => true ) ) [2020-12-04 23:55:19][DEBUG] : UPDATE 60400225bcddc27038c3 : checkAndUpdateCmd STATE = true [2020-12-04 23:55:19][DEBUG] : UPDATE 60400225bcddc27038c3 : checkAndUpdateCmd TEMPERATURE = 205 [2020-12-04 23:55:19][DEBUG] : UPDATE 60400225bcddc27038c3 : checkAndUpdateCmd THERMOSTAT = 770 (=> Retour 77°C dans Tuya)_

Et toujours à ta dispo pour quelques tests et essais que ce soient.

sabinus52 commented 3 years ago

Bonjour,

C'est vraiment le gros problème et qui est vraiment très chiant chez Tuya, c'est que rien n'est standardisé. Donc du coup, il faut faire plein de cas particulier dans le code. Je vois que ton thermostat a des valeurs de températures avec un facteur de 10. Est il possible de mettre à jour un fichier php dans ton Jeedom pour vérifier que cela fonctionne. N'ayant aucun objet de ce type, je ne peux rien tester, à part faire les tests unitaires ?

Wider77 commented 3 years ago

Bonsoir Sabinus,

Encore merci pour cette nouvelle réponse.

Aucun soucis pour faire les tests, bien au contraire, je suis à ta dispo.

Mes connaissances sont limitées en php, mais si tu me guides, j'exécute 😉

sabinus52 commented 3 years ago

C'est juste un fichier à remplacer, donc rien de bien méchant. Si tu es sur community.jeedom.com contacte moi en MP même pseudo pour que je donne la marche à suivre