Sèche-Linge Samsung - Divers soucis

En fait, en sélectionnant la valeur dans la liste :

  • on envoie la valeur brute de la commande pour l’api SmartThings (Course_14), jusque-là OK,
  • le core remplace le #select# par la valeur contenue dans la commande envoyée (Course_14), AÏE, c’est la valeur brute et non la valeur traduite associée (Coton)

Du coup, la liste des valeurs de la commande (Coton, eco…) ne reconnait pas la valeur brute parmi ses valeurs traduites.

J’ai une solution définitive à ça, mais un peu de travail : demander en Ajax à chaque changement de valeur la traduction.

Ah oui en effet. Mais donc c’est la même chose avec la vitesse de séchage alors que les valeurs sont 1,2,3. Ce que je pige pas trop c’est pourquoi tu n’avais pas le soucis de ton côté.

Pour l’instant, j’explique pas le fait que le core remplace pas le #select# chez toi.

Je vais déjà corriger ça, on verra le comportement ensuite.

Ha oui voilà c’est pas le même comportement chez toi.

Je suis en 4.1.8 encore et j’utilise Firefox. Je tenterai sur un autre navigateur…

Bonne nouvelle, j’ai trouvé une parade facile.
Je pousserai demain la mise à jour, je pense.

1 « J'aime »

C’est sur le marché.
J’en parle ici : Plugin SmartThings - Documentation et actualités - #16 par Flobul

Cool, merci je teste ça demain je pense. Je vais adapter mon scénario pour prendre en compte cette nouvelle possibilité de gérer les notifications.

Je te validerai aussi si le coup du #select# est réglé chez moi et on pourra fermer ce sujet :grinning:

Bonjour,
je viens d’installer la beta et je commence à me familliariser avec.
pour info:

  • j’ai une tv samsung Q9 qui apparait bien par contre:
    _ TV éteinte : si je met le widget « défault html » le voyant de marche/arret est bien gris mais bleu quand je met le widget « television »
    _ TV allumé: wigdet « défault html » le voyant de marche/arret est bleu mais gris sur le widget « television »

je crois que le voyant marche/arret du widget « television » est inversé.

  • sur le lave linge en widget « washer v2 » il manque le « °C » a la température (il y est bien sur le widget « washer »), c’est voulu?

Bonjour,

Pourquoi ne pas ouvrir un nouveau sujet puisque celui-ci concerne un sèche-linge et non une TV ou un lave-linge ?

pourquoi pas. en fait c’est plus des détails de widget.

Salut,

Bon et bien désolé mais le soucis du passage par le #select# n’est pas réglé chez moi. Je refais une vidéo en fin de journée si tu as besoin (après le cycle en cours).

A+

Je veux bien les logs quand tu changes le cycle stp. Pas besoin de la vidéo, cette fois :wink:

Et voila le log lors d’un changement Coton vers Mix :

[2022-02-10 19:31:22][DEBUG] : execute CmdType3 select Résultat de $body : {"component":"main","capability":"samsungce.dryerCycle","command":"setDryerCycle","arguments":["Course_1F"]}{"select":"Course_1F","utid":"0"}
[2022-02-10 19:31:22][DEBUG] : sendRequest - URL : https://api.smartthings.com/v1/devices/8fa306df-ef4c-3353-2860-7c34440baf09/commands METHODE : POST
[2022-02-10 19:31:22][DEBUG] : execute CmdType select Payload : {"commands":[{"component":"main","capability":"samsungce.dryerCycle","command":"setDryerCycle","arguments":["Course_1F"]}]} Résultat de la commande : {"results":[{"id":"cb54975e-87d8-4598-9bb9-07decfc4390f","status":"ACCEPTED"}]}
[2022-02-10 19:31:22][DEBUG] : postExecCmdFixValue correction traduction cycle options {"select":"Mix","utid":"0"}
[2022-02-10 19:31:22][DEBUG] : refresh : début
[2022-02-10 19:31:22][DEBUG] : sendRequest - URL : https://api.smartthings.com/v1/devices/8fa306df-ef4c-3353-2860-7c34440baf09/status METHODE : GET
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : début cmd : main::custom.dryerWrinklePrevent::operatingState
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : fin
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : début cmd : main::custom.dryerWrinklePrevent::dryerWrinklePrevent
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : fin
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.deviceIdentification::micomAssayCode
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : fin
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.deviceIdentification::modelClassificationCode
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : fin
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.deviceIdentification::description
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : fin
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.deviceIdentification::binaryId
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : fin
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : début cmd : main::switch::switch
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : fin
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : début cmd : main::custom.dryerDryLevel::dryerDryLevel
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : fin
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.dryerAutoCycleLink::dryerAutoCycleLink
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : fin
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.dryerCycle::dryerCycle
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : fin
[2022-02-10 19:31:22][DEBUG] : L1682Commande info à renseigner cmd - dryerCycle and value - {"value":"Table_03_Course_16","timestamp":"2022-02-10T15:47:31.803Z"}
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.dryerCycle::referenceTable
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : fin
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.driverVersion::versionNumber
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : fin
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.kidsLock::lockState
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : fin
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.detergentOrder::alarmEnabled
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : fin
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.detergentOrder::orderThreshold
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : fin
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : début cmd : main::powerConsumptionReport::powerConsumption
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : fin
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : début cmd : main::powerConsumptionReport::powerConsumption
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : fin
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : début cmd : main::dryerOperatingState::completionTime
[2022-02-10 19:31:22][DEBUG] : Valeur de : completionTime = 2022-02-10 22:45:31
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : fin
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : début cmd : main::dryerOperatingState::machineState
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : fin
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : début cmd : main::dryerOperatingState::dryerJobState
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : fin
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.detergentState::remainingAmount
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : fin
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.detergentState::dosage
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : fin
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.detergentState::initialAmount
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : fin
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.detergentState::detergentType
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : fin
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.dryerDelayEnd::remainingTime
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : fin
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : début cmd : main::custom.jobBeginningStatus::jobBeginningStatus
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : fin
[2022-02-10 19:31:22][DEBUG] : checkCreateAndUpdateValues : début
[2022-02-10 19:31:22][DEBUG] : checkCreateAndUpdateValues : fin
[2022-02-10 19:31:22][DEBUG] : decodeExecuteData = rt ["x.com.samsung.da.mode"]
[2022-02-10 19:31:22][DEBUG] : decodeExecuteData = if ["oic.if.baseline","oic.if.a"]
[2022-02-10 19:31:22][DEBUG] : decodeExecuteData = x.com.samsung.da.supportedOptions ["116D20E23D0001FD20E18D20E19D2041DD2041BD2041CD20E1AD1021ED20420D10227D00025D00024D000"]
[2022-02-10 19:31:22][DEBUG] : decodeExecuteData Fin du décodage
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : début cmd : main::remoteControlStatus::remoteControlEnabled
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : fin
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : début cmd : main::custom.supportedOptions::referenceTable
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : fin
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.dryerDryingTime::dryingTime
[2022-02-10 19:31:22][DEBUG] : updateInfoCmdWithValue : fin
[2022-02-10 19:31:22][DEBUG] : getDeviceNotif : début
[2022-02-10 19:31:22][DEBUG] : sendRequest - URL : https://api.smartthings.com/notification?deviceId=8fa306df-ef4c-3353-2860-7c34440baf09 METHODE : GET
[2022-02-10 19:31:23][DEBUG] : getDeviceNotif : fin
[2022-02-10 19:31:23][DEBUG] : refresh : fin

Ca c’est valeur de sortie qui est ensuite traitée par le core pour etre injectée dans la valeur de la commande info (contenue dans la configuration updateCmdId).

Peux-tu afficher le contenu de configuration de la commande action changer de cycle ? (dans configuration de commande)

image

Configuration de la commande puis Information :

J’ai trouvé la réponse au problème.
Je pensais que la PR que j’avais faite l’an dernier était déjà dans la 4.1. En fait non.
Voilà le code du core qui traite les valeurs de retour des commandes. En 4.1.

Et en 4.2 :

Ah tout s’explique !

J’attends un peu pour migrer en 4.2.x car il y a encore des plugins pas super voir pas compatibles.

J’ai testé hier l’appel d’un scénario depuis la commande de dernière notification, ça a très bien fonctionné :+1:.

Je te propose de fermer ce sujet puisque du coup je ne devrait plus avoir ce soucis de #select# en 4.2.
Ou faut que je trouve l’emplacement du fichier pour faire la modification.

Est-ce que tu peux faire une dernière réponse pour dire que c’est ok dans la version xx.xx et je sélectionne ce post en solution ?

/core/class/cmd.class.php
Lignes 1166-L1176

Bon en v4.2. C’est le core jeedom qui gère ça.