Double update du Statut de machine sur un sèche-linge Samsung

Salut,

A destination de Flobul surtout je pense.

J’ai un scénario qui se déclenche sur la commande [Statut de machine] et qui appel un autre scénario.

Cet autre scénario sert à m’indiquer si c’est le lave-Linge ou le sèche-linge qui se met en route. Je peux faire autrement mais ce 2eme scénario était là quand je ne pouvais baser l’état d’un appareil ou d’un autre que sur la puissance. La façon de faire les scénario n’est pas le sujet.

Enchainement : J’ai utilisé l’application JeedomConnect pour faire le start du sèche-linge mais j’aurais pu le faire depuis le dashboard, je ne pense pas que cela change quelque chose

On remarque que le scénario s’est déclenché 2 fois à 12h55 sur l’évènement de la commande [Statut de machine] :

------------------------------------
[2022-09-11 14:12:55][SCENARIO] Start : Scenario execute automatiquement sur evenement venant de : [Sous-sol][Seche-linge][Statut de machine] (Marche).
[2022-09-11 14:12:55][SCENARIO] Exécution du sous-élément de type [action] : action
[2022-09-11 14:12:55][SCENARIO] Log : Tâche : Cooling
Statuts Machine : Marche
Sous-tension : 1
[2022-09-11 14:12:55][SCENARIO] Exécution du sous-élément de type [condition] : if trigger(#[Sous-sol][Sèche-linge][Statut de machine]#) == 1
[2022-09-11 14:12:55][SCENARIO] Evaluation de la condition : [1 == 1] = Vrai
[2022-09-11 14:12:55][SCENARIO] Exécution du sous-élément de type [action] : then
[2022-09-11 14:12:55][SCENARIO] Exécution d'un bloc élément : 1007
[2022-09-11 14:12:55][SCENARIO] Exécution du sous-élément de type [condition] : if #[Sous-sol][Sèche-linge][Statut de machine]# == 'Marche'
[2022-09-11 14:12:55][SCENARIO] Evaluation de la condition : ["Marche" == 'Marche'] = Vrai
[2022-09-11 14:12:55][SCENARIO] Exécution du sous-élément de type [action] : then
[2022-09-11 14:12:55][SCENARIO] Exécution d'un bloc élément : 1016
[2022-09-11 14:12:55][SCENARIO] Exécution du sous-élément de type [action] : code
[2022-09-11 14:12:55][SCENARIO] Exécution d'un bloc code
[2022-09-11 14:12:55][SCENARIO] Exécution d'un bloc élément : 1008
[2022-09-11 14:12:55][SCENARIO] Exécution du sous-élément de type [action] : action
[2022-09-11 14:12:55][SCENARIO] Affectation de la variable SL_Samsung_Conso_Start => 79400 = 79400
[2022-09-11 14:12:55][SCENARIO] Lancement du scénario : SC Etat LL SL options : {"#EtatLLSL#":"on"}
[2022-09-11 14:12:55][SCENARIO] Fin correcte du scénario
------------------------------------
[2022-09-11 14:12:55][SCENARIO] Start : Scenario execute automatiquement sur evenement venant de : [Sous-sol][Seche-linge][Statut de machine] (Arrete).
[2022-09-11 14:12:55][SCENARIO] Exécution du sous-élément de type [action] : action
[2022-09-11 14:12:55][SCENARIO] Log : Tâche : Cooling
Statuts Machine : Arrêté
Sous-tension : 1
[2022-09-11 14:12:55][SCENARIO] Exécution du sous-élément de type [condition] : if trigger(#[Sous-sol][Sèche-linge][Statut de machine]#) == 1
[2022-09-11 14:12:55][SCENARIO] Evaluation de la condition : [1 == 1] = Vrai
[2022-09-11 14:12:55][SCENARIO] Exécution du sous-élément de type [action] : then
[2022-09-11 14:12:55][SCENARIO] Exécution d'un bloc élément : 1007
[2022-09-11 14:12:55][SCENARIO] Exécution du sous-élément de type [condition] : if #[Sous-sol][Sèche-linge][Statut de machine]# == 'Marche'
[2022-09-11 14:12:55][SCENARIO] Evaluation de la condition : ["Arrêté" == 'Marche'] = Faux
[2022-09-11 14:12:55][SCENARIO] Exécution du sous-élément de type [action] : else
[2022-09-11 14:12:55][SCENARIO] Fin correcte du scénario
------------------------------------
[2022-09-11 14:13:04][SCENARIO] Start : Scenario execute automatiquement sur evenement venant de : [Sous-sol][Seche-linge][Statut de machine] (Marche).
[2022-09-11 14:13:04][SCENARIO] Exécution du sous-élément de type [action] : action
[2022-09-11 14:13:04][SCENARIO] Log : Tâche : Drying
Statuts Machine : Marche
Sous-tension : 1
[2022-09-11 14:13:04][SCENARIO] Exécution du sous-élément de type [condition] : if trigger(#[Sous-sol][Sèche-linge][Statut de machine]#) == 1
[2022-09-11 14:13:04][SCENARIO] Evaluation de la condition : [1 == 1] = Vrai
[2022-09-11 14:13:04][SCENARIO] Exécution du sous-élément de type [action] : then
[2022-09-11 14:13:04][SCENARIO] Exécution d'un bloc élément : 1007
[2022-09-11 14:13:04][SCENARIO] Exécution du sous-élément de type [condition] : if #[Sous-sol][Sèche-linge][Statut de machine]# == 'Marche'
[2022-09-11 14:13:04][SCENARIO] Evaluation de la condition : ["Marche" == 'Marche'] = Vrai
[2022-09-11 14:13:04][SCENARIO] Exécution du sous-élément de type [action] : then
[2022-09-11 14:13:04][SCENARIO] Exécution d'un bloc élément : 1016
[2022-09-11 14:13:04][SCENARIO] Exécution du sous-élément de type [action] : code
[2022-09-11 14:13:04][SCENARIO] Exécution d'un bloc code
[2022-09-11 14:13:04][SCENARIO] Exécution d'un bloc élément : 1008
[2022-09-11 14:13:04][SCENARIO] Exécution du sous-élément de type [action] : action
[2022-09-11 14:13:04][SCENARIO] Affectation de la variable SL_Samsung_Conso_Start => 79400 = 79400
[2022-09-11 14:13:04][SCENARIO] Lancement du scénario : SC Etat LL SL options : {"#EtatLLSL#":"on"}
[2022-09-11 14:13:04][SCENARIO] Fin correcte du scénario

La première fois, c’est normal et le statut était « Marche ».
La 2eme fois, je ne comprends pas et le statut était « Arrete » !?

Ce que cela engendre :
A la première exécution mon 2eme scénario se met en route et regarde le statut du sèche-linge pour savoir si c’est lui qui s’est mis en route … ou le lave-linge.
Malheureusement le temps qu’il s’exécute la commande est visiblement passé à « Arrete » donc il a pensé que c’était le lave-linge qui tournait, erreur.

Je ne mets que la partie intéressante :

------------------------------------
[2022-09-11 14:12:55][SCENARIO] Start : Lancement provoque par le scenario  : [Monitoring][Aucun][SC SL Samsung]. Tags : {"#EtatLLSL#":"on"}
[2022-09-11 14:12:55][SCENARIO] Exécution du sous-élément de type [condition] : if #EtatLLSL# == "on" ET #[Sous-sol][LL SL][Etat LL]# == 0 ET #[Sous-sol][LL SL][Etat SL]# == 0
[2022-09-11 14:12:55][SCENARIO] Evaluation de la condition : ["on" == "on" ET 0 == 0 ET 0 == 0] = Vrai
[2022-09-11 14:12:55][SCENARIO] Exécution du sous-élément de type [action] : then
[2022-09-11 14:12:55][SCENARIO] Exécution d'un bloc élément : 713
[2022-09-11 14:12:55][SCENARIO] Exécution d'un bloc élément : 1011
[2022-09-11 14:12:55][SCENARIO] Exécution du sous-élément de type [condition] : if #[Sous-sol][Sèche-linge][Statut de machine]# == "Marche"
[2022-09-11 14:12:55][SCENARIO] Evaluation de la condition : ["Arrêté" == "Marche"] = Faux
[2022-09-11 14:12:55][SCENARIO] Exécution du sous-élément de type [action] : else
[2022-09-11 14:12:55][SCENARIO] Changement de [Sous-sol][LL SL][Etat LL] à 1

Je mets le logs du plugin dans le post suivant car trop de caractères.

Merci pour l’analyse :slightly_smiling_face:

Voici les logs du plugin un peu avant et un peu après pour essayer de comprendre pourquoi ce phénomène.

[2022-09-11 14:12:01][DEBUG] : update : Démarrage du cron
[2022-09-11 14:12:01][DEBUG] : refresh : début
[2022-09-11 14:12:01][DEBUG] : sendRequest - URL : https://api.smartthings.com/v1/locations/2dc58f98-d142-421d-a76c-509cd702fc85 METHODE : GET
[2022-09-11 14:12:02][DEBUG] : getLocationNotif : début
[2022-09-11 14:12:02][DEBUG] : sendRequest - URL : https://api.smartthings.com/notification?location=2dc58f98-d142-421d-a76c-509cd702fc85 METHODE : GET
[2022-09-11 14:12:02][DEBUG] : getLocationNotif : fin
[2022-09-11 14:12:02][DEBUG] : refresh : fin
[2022-09-11 14:12:02][DEBUG] : getHealth : début
[2022-09-11 14:12:02][DEBUG] : sendRequest - URL : https://api.smartthings.com/v1/devices/8fa306df-ef4c-3353-2860-7c34440baf09/health METHODE : GET
[2022-09-11 14:12:02][DEBUG] : getHealth : fin
[2022-09-11 14:12:02][DEBUG] : refresh : début
[2022-09-11 14:12:02][DEBUG] : sendRequest - URL : https://api.smartthings.com/v1/devices/8fa306df-ef4c-3353-2860-7c34440baf09/status METHODE : GET
[2022-09-11 14:12:02][DEBUG] : updateInfoCmdWithValue : début cmd : main::custom.dryerWrinklePrevent::operatingState
[2022-09-11 14:12:02][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:02][DEBUG] : updateInfoCmdWithValue : début cmd : main::custom.dryerWrinklePrevent::dryerWrinklePrevent
[2022-09-11 14:12:02][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:02][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.deviceIdentification::micomAssayCode
[2022-09-11 14:12:02][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:02][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.deviceIdentification::modelClassificationCode
[2022-09-11 14:12:02][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:02][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.deviceIdentification::description
[2022-09-11 14:12:02][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:02][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.deviceIdentification::binaryId
[2022-09-11 14:12:02][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:02][DEBUG] : updateInfoCmdWithValue : début cmd : main::switch::switch
[2022-09-11 14:12:02][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:02][DEBUG] : updateInfoCmdWithValue : début cmd : main::custom.dryerDryLevel::dryerDryLevel
[2022-09-11 14:12:02][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:02][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.dryerAutoCycleLink::dryerAutoCycleLink
[2022-09-11 14:12:02][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.dryerCycle::dryerCycle
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:03][DEBUG] : L1747Commande info à renseigner cmd - dryerCycle and value - {"value":"Table_03_Course_16","timestamp":"2022-09-01T12:44:49.232Z"}
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.dryerCycle::referenceTable
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.driverVersion::versionNumber
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.kidsLock::lockState
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.detergentOrder::alarmEnabled
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.detergentOrder::orderThreshold
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::powerConsumptionReport::powerConsumption
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::powerConsumptionReport::powerConsumption
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::dryerOperatingState::completionTime
[2022-09-11 14:12:03][DEBUG] : Valeur de : completionTime = 2022-09-11 17:30:19
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::dryerOperatingState::machineState
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::dryerOperatingState::dryerJobState
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.detergentState::remainingAmount
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.detergentState::dosage
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.detergentState::initialAmount
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.detergentState::detergentType
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.dryerDelayEnd::remainingTime
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::custom.jobBeginningStatus::jobBeginningStatus
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:03][DEBUG] : checkCreateAndUpdateValues : début
[2022-09-11 14:12:03][DEBUG] : checkCreateAndUpdateValues : fin
[2022-09-11 14:12:03][DEBUG] : decodeExecuteData = rt ["x.com.samsung.da.wm.setinfo"]
[2022-09-11 14:12:03][DEBUG] : decodeExecuteData = if ["oic.if.baseline","oic.if.a"]
[2022-09-11 14:12:03][DEBUG] : decodeExecuteData = x.com.samsung.da.isModelSettingWithoutSC "true"
[2022-09-11 14:12:03][DEBUG] : decodeExecuteData = x.com.samsung.da.aiCourse "true"
[2022-09-11 14:12:03][DEBUG] : decodeExecuteData Fin du décodage
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::remoteControlStatus::remoteControlEnabled
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::custom.supportedOptions::referenceTable
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::custom.energyType::energyType
[2022-09-11 14:12:03][DEBUG] : Commande inexistante : energyType
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::custom.energyType::energySavingSupport
[2022-09-11 14:12:03][DEBUG] : Commande inexistante : energySavingSupport
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::custom.energyType::drMaxDuration
[2022-09-11 14:12:03][DEBUG] : Commande inexistante : drMaxDuration
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::custom.energyType::energySavingOperationSupport
[2022-09-11 14:12:03][DEBUG] : Commande inexistante : energySavingOperationSupport
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.softwareUpdate::otnDUID
[2022-09-11 14:12:03][DEBUG] : Commande inexistante : otnDUID
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.softwareUpdate::availableModules
[2022-09-11 14:12:03][DEBUG] : Commande inexistante : availableModules
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.softwareUpdate::newVersionAvailable
[2022-09-11 14:12:03][DEBUG] : Commande inexistante : newVersionAvailable
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.dryerDryingTime::dryingTime
[2022-09-11 14:12:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:03][DEBUG] : getDeviceNotif : début
[2022-09-11 14:12:03][DEBUG] : sendRequest - URL : https://api.smartthings.com/notification?deviceId=8fa306df-ef4c-3353-2860-7c34440baf09 METHODE : GET
[2022-09-11 14:12:03][DEBUG] : checkCmdNotif0 = lines 9960 =["2022-09-07 15:50:48 - Cycle termin\u00e9",""] =2 ["Cycle termin\u00e9","end time has been changed"]
[2022-09-11 14:12:03][DEBUG] : getDeviceNotif : fin
[2022-09-11 14:12:03][DEBUG] : refresh : fin
[2022-09-11 14:12:03][DEBUG] : update : fin
[2022-09-11 14:12:55][DEBUG] : execute CmdType3 select Résultat de $body : {"component":"main","capability":"dryerOperatingState","command":"setMachineState","arguments":["run"]}{"user_login":"admin","user_id":"1","select":"run","comingFrom":"JeedomConnect"}
[2022-09-11 14:12:55][DEBUG] : sendRequest - URL : https://api.smartthings.com/v1/devices/8fa306df-ef4c-3353-2860-7c34440baf09/commands METHODE : POST
[2022-09-11 14:12:55][DEBUG] : execute CmdType select Payload : {"commands":[{"component":"main","capability":"dryerOperatingState","command":"setMachineState","arguments":["run"]}]} Résultat de la commande : {"results":[{"id":"08d07c76-9176-48ed-8333-14b76f20c94c","status":"COMPLETED"}]}
[2022-09-11 14:12:55][DEBUG] : postExecCmdFixValue correction traduction cycle options 9983
[2022-09-11 14:12:55][DEBUG] : postExecCmdFixValue correction traduction cycle options {"user_login":"admin","user_id":"1","select":"run","comingFrom":"JeedomConnect"}
[2022-09-11 14:12:55][DEBUG] : postExecCmdFixValue correction traduction options machineState{"user_login":"admin","user_id":"1","select":"Marche","comingFrom":"JeedomConnect"}
[2022-09-11 14:12:55][DEBUG] : refresh : début
[2022-09-11 14:12:55][DEBUG] : sendRequest - URL : https://api.smartthings.com/v1/devices/8fa306df-ef4c-3353-2860-7c34440baf09/status METHODE : GET
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : début cmd : main::custom.dryerWrinklePrevent::operatingState
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : début cmd : main::custom.dryerWrinklePrevent::dryerWrinklePrevent
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.deviceIdentification::micomAssayCode
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.deviceIdentification::modelClassificationCode
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.deviceIdentification::description
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.deviceIdentification::binaryId
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : début cmd : main::switch::switch
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : début cmd : main::custom.dryerDryLevel::dryerDryLevel
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.dryerAutoCycleLink::dryerAutoCycleLink
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.dryerCycle::dryerCycle
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:55][DEBUG] : L1747Commande info à renseigner cmd - dryerCycle and value - {"value":"Table_03_Course_16","timestamp":"2022-09-01T12:44:49.232Z"}
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.dryerCycle::referenceTable
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.driverVersion::versionNumber
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.kidsLock::lockState
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.detergentOrder::alarmEnabled
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.detergentOrder::orderThreshold
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : début cmd : main::powerConsumptionReport::powerConsumption
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : début cmd : main::powerConsumptionReport::powerConsumption
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : début cmd : main::dryerOperatingState::completionTime
[2022-09-11 14:12:55][DEBUG] : Valeur de : completionTime = 2022-09-11 17:30:19
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : début cmd : main::dryerOperatingState::machineState
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : début cmd : main::dryerOperatingState::dryerJobState
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.detergentState::remainingAmount
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.detergentState::dosage
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.detergentState::initialAmount
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.detergentState::detergentType
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.dryerDelayEnd::remainingTime
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : début cmd : main::custom.jobBeginningStatus::jobBeginningStatus
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:55][DEBUG] : checkCreateAndUpdateValues : début
[2022-09-11 14:12:55][DEBUG] : checkCreateAndUpdateValues : fin
[2022-09-11 14:12:55][DEBUG] : decodeExecuteData = rt ["x.com.samsung.da.configuration"]
[2022-09-11 14:12:55][DEBUG] : decodeExecuteData = if ["oic.if.baseline","oic.if.a"]
[2022-09-11 14:12:55][DEBUG] : decodeExecuteData = x.com.samsung.da.remoteControlEnabled "true"
[2022-09-11 14:12:55][DEBUG] : decodeExecuteData Fin du décodage
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : début cmd : main::remoteControlStatus::remoteControlEnabled
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : début cmd : main::custom.supportedOptions::referenceTable
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : début cmd : main::custom.energyType::energyType
[2022-09-11 14:12:55][DEBUG] : Commande inexistante : energyType
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : début cmd : main::custom.energyType::energySavingSupport
[2022-09-11 14:12:55][DEBUG] : Commande inexistante : energySavingSupport
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : début cmd : main::custom.energyType::drMaxDuration
[2022-09-11 14:12:55][DEBUG] : Commande inexistante : drMaxDuration
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : début cmd : main::custom.energyType::energySavingOperationSupport
[2022-09-11 14:12:55][DEBUG] : Commande inexistante : energySavingOperationSupport
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.softwareUpdate::otnDUID
[2022-09-11 14:12:55][DEBUG] : Commande inexistante : otnDUID
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.softwareUpdate::availableModules
[2022-09-11 14:12:55][DEBUG] : Commande inexistante : availableModules
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.softwareUpdate::newVersionAvailable
[2022-09-11 14:12:55][DEBUG] : Commande inexistante : newVersionAvailable
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.dryerDryingTime::dryingTime
[2022-09-11 14:12:55][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:12:55][DEBUG] : getDeviceNotif : début
[2022-09-11 14:12:55][DEBUG] : sendRequest - URL : https://api.smartthings.com/notification?deviceId=8fa306df-ef4c-3353-2860-7c34440baf09 METHODE : GET
[2022-09-11 14:12:56][DEBUG] : checkCmdNotif0 = lines 9960 =["2022-09-11 14:12:29 - L'\u00e9tat de Smart Control de votre s\u00e8che-linge a \u00e9t\u00e9 modifi\u00e9. ","2022-09-11 14:12:17 - Le hublot a \u00e9t\u00e9 diagnostiqu\u00e9 comme ouvert.","2022-09-07 15:50:48 - Cycle termin\u00e9",""] =2 ["Cycle termin\u00e9","end time has been changed"]
[2022-09-11 14:12:56][DEBUG] : getDeviceNotif : fin
[2022-09-11 14:12:56][DEBUG] : refresh : fin
[2022-09-11 14:13:02][DEBUG] : update : Démarrage du cron
[2022-09-11 14:13:02][DEBUG] : refresh : début
[2022-09-11 14:13:02][DEBUG] : sendRequest - URL : https://api.smartthings.com/v1/locations/2dc58f98-d142-421d-a76c-509cd702fc85 METHODE : GET
[2022-09-11 14:13:03][DEBUG] : getLocationNotif : début
[2022-09-11 14:13:03][DEBUG] : sendRequest - URL : https://api.smartthings.com/notification?location=2dc58f98-d142-421d-a76c-509cd702fc85 METHODE : GET
[2022-09-11 14:13:03][DEBUG] : getLocationNotif : fin
[2022-09-11 14:13:03][DEBUG] : refresh : fin
[2022-09-11 14:13:03][DEBUG] : getHealth : début
[2022-09-11 14:13:03][DEBUG] : sendRequest - URL : https://api.smartthings.com/v1/devices/8fa306df-ef4c-3353-2860-7c34440baf09/health METHODE : GET
[2022-09-11 14:13:03][DEBUG] : getHealth : fin
[2022-09-11 14:13:03][DEBUG] : refresh : début
[2022-09-11 14:13:03][DEBUG] : sendRequest - URL : https://api.smartthings.com/v1/devices/8fa306df-ef4c-3353-2860-7c34440baf09/status METHODE : GET
[2022-09-11 14:13:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::custom.dryerWrinklePrevent::operatingState
[2022-09-11 14:13:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:13:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::custom.dryerWrinklePrevent::dryerWrinklePrevent
[2022-09-11 14:13:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:13:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.deviceIdentification::micomAssayCode
[2022-09-11 14:13:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:13:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.deviceIdentification::modelClassificationCode
[2022-09-11 14:13:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:13:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.deviceIdentification::description
[2022-09-11 14:13:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:13:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.deviceIdentification::binaryId
[2022-09-11 14:13:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:13:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::switch::switch
[2022-09-11 14:13:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:13:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::custom.dryerDryLevel::dryerDryLevel
[2022-09-11 14:13:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:13:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.dryerAutoCycleLink::dryerAutoCycleLink
[2022-09-11 14:13:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:13:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.dryerCycle::dryerCycle
[2022-09-11 14:13:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:13:03][DEBUG] : L1747Commande info à renseigner cmd - dryerCycle and value - {"value":"Table_03_Course_16","timestamp":"2022-09-01T12:44:49.232Z"}
[2022-09-11 14:13:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.dryerCycle::referenceTable
[2022-09-11 14:13:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:13:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.driverVersion::versionNumber
[2022-09-11 14:13:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:13:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.kidsLock::lockState
[2022-09-11 14:13:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:13:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.detergentOrder::alarmEnabled
[2022-09-11 14:13:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:13:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.detergentOrder::orderThreshold
[2022-09-11 14:13:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:13:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::powerConsumptionReport::powerConsumption
[2022-09-11 14:13:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:13:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::powerConsumptionReport::powerConsumption
[2022-09-11 14:13:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:13:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::dryerOperatingState::completionTime
[2022-09-11 14:13:03][DEBUG] : Valeur de : completionTime = 2022-09-11 17:32:56
[2022-09-11 14:13:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:13:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::dryerOperatingState::machineState
[2022-09-11 14:13:03][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:13:03][DEBUG] : updateInfoCmdWithValue : début cmd : main::dryerOperatingState::dryerJobState
[2022-09-11 14:13:04][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:13:04][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.detergentState::remainingAmount
[2022-09-11 14:13:04][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:13:04][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.detergentState::dosage
[2022-09-11 14:13:04][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:13:04][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.detergentState::initialAmount
[2022-09-11 14:13:04][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:13:04][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.detergentState::detergentType
[2022-09-11 14:13:04][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:13:04][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.dryerDelayEnd::remainingTime
[2022-09-11 14:13:04][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:13:04][DEBUG] : updateInfoCmdWithValue : début cmd : main::custom.jobBeginningStatus::jobBeginningStatus
[2022-09-11 14:13:04][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:13:04][DEBUG] : checkCreateAndUpdateValues : début
[2022-09-11 14:13:04][DEBUG] : checkCreateAndUpdateValues : fin
[2022-09-11 14:13:04][DEBUG] : decodeExecuteData = rt ["x.com.samsung.da.operation"]
[2022-09-11 14:13:04][DEBUG] : decodeExecuteData = if ["oic.if.baseline","oic.if.a"]
[2022-09-11 14:13:04][DEBUG] : decodeExecuteData = x.com.samsung.da.state "Run"
[2022-09-11 14:13:04][DEBUG] : decodeExecuteData = x.com.samsung.da.remainingTime "03:20:00"
[2022-09-11 14:13:04][DEBUG] : checkCreateAndUpdateValues : début
[2022-09-11 14:13:04][DEBUG] : checkCreateAndUpdateValues : fin
[2022-09-11 14:13:04][DEBUG] : decodeExecuteData = x.com.samsung.da.progressPercentage "1"
[2022-09-11 14:13:04][DEBUG] : checkCreateAndUpdateValues : début
[2022-09-11 14:13:04][DEBUG] : checkCreateAndUpdateValues : fin
[2022-09-11 14:13:04][DEBUG] : decodeExecuteData = x.com.samsung.da.progress "Drying"
[2022-09-11 14:13:04][DEBUG] : checkCreateAndUpdateValues : début
[2022-09-11 14:13:04][DEBUG] : checkCreateAndUpdateValues : fin
[2022-09-11 14:13:04][DEBUG] : decodeExecuteData = x.com.samsung.da.delayEndTime "00:00:00"
[2022-09-11 14:13:04][DEBUG] : decodeExecuteData = x.com.samsung.da.supportedProgress ["None","Drying","Cooling","Finish"]
[2022-09-11 14:13:04][DEBUG] : decodeExecuteData Fin du décodage
[2022-09-11 14:13:04][DEBUG] : updateInfoCmdWithValue : début cmd : main::remoteControlStatus::remoteControlEnabled
[2022-09-11 14:13:04][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:13:04][DEBUG] : updateInfoCmdWithValue : début cmd : main::custom.supportedOptions::referenceTable
[2022-09-11 14:13:04][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:13:04][DEBUG] : updateInfoCmdWithValue : début cmd : main::custom.energyType::energyType
[2022-09-11 14:13:04][DEBUG] : Commande inexistante : energyType
[2022-09-11 14:13:04][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:13:04][DEBUG] : updateInfoCmdWithValue : début cmd : main::custom.energyType::energySavingSupport
[2022-09-11 14:13:04][DEBUG] : Commande inexistante : energySavingSupport
[2022-09-11 14:13:04][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:13:04][DEBUG] : updateInfoCmdWithValue : début cmd : main::custom.energyType::drMaxDuration
[2022-09-11 14:13:04][DEBUG] : Commande inexistante : drMaxDuration
[2022-09-11 14:13:04][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:13:04][DEBUG] : updateInfoCmdWithValue : début cmd : main::custom.energyType::energySavingOperationSupport
[2022-09-11 14:13:04][DEBUG] : Commande inexistante : energySavingOperationSupport
[2022-09-11 14:13:04][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:13:04][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.softwareUpdate::otnDUID
[2022-09-11 14:13:04][DEBUG] : Commande inexistante : otnDUID
[2022-09-11 14:13:04][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:13:04][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.softwareUpdate::availableModules
[2022-09-11 14:13:04][DEBUG] : Commande inexistante : availableModules
[2022-09-11 14:13:04][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:13:04][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.softwareUpdate::newVersionAvailable
[2022-09-11 14:13:04][DEBUG] : Commande inexistante : newVersionAvailable
[2022-09-11 14:13:04][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:13:04][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.dryerDryingTime::dryingTime
[2022-09-11 14:13:04][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-11 14:13:04][DEBUG] : getDeviceNotif : début
[2022-09-11 14:13:04][DEBUG] : sendRequest - URL : https://api.smartthings.com/notification?deviceId=8fa306df-ef4c-3353-2860-7c34440baf09 METHODE : GET
[2022-09-11 14:13:04][DEBUG] : checkCmdNotif0 = lines 9960 =["2022-09-11 14:12:29 - L'\u00e9tat de Smart Control de votre s\u00e8che-linge a \u00e9t\u00e9 modifi\u00e9. ","2022-09-11 14:12:17 - Le hublot a \u00e9t\u00e9 diagnostiqu\u00e9 comme ouvert.","2022-09-07 15:50:48 - Cycle termin\u00e9",""] =2 ["Cycle termin\u00e9","end time has been changed"]
[2022-09-11 14:13:04][DEBUG] : getDeviceNotif : fin
[2022-09-11 14:13:04][DEBUG] : refresh : fin
[2022-09-11 14:13:04][DEBUG] : update : fin
1 « J'aime »

Bonjour.

J’ai bien vu la problématique.
Je pense que tu as l’infos via la commande de base (main::dryerOperatingState::machineState) et par l’info supplémentaire de la commande main::execute::data qui est traité spécifiquement.

Plusieurs questions dans ce cas pour déterminer la cause :

  • Est-ce que tu as coché la case « Rafraîchissement forcé » ?
    Capture d’écran 2022-09-13 à 19.03.24

  • Est-ce que tu pourrais récupérer les infos brutes quand tu reproduis le truc ?
    La partie qui m’intéresse est dans ce bloc execute :
    Capture d’écran 2022-09-13 à 19.03.11
    Je veux voir si je suis bien sur la bonne voie, et qu’il y a bien une info avec en clé : ‹ currentMachineState › ou ‹ x.com.samsung.da.state › à la valeur ‹ stop › ou autre

Salut,

Non pas de refresh forcé :

Pour les infos brutes j’ai plus de mal à comprendre, disons surtout à quel moment aller les chercher.
Il est possible d’aller les prendre disons 1 ou 2 mn après ou bien il faut absolument récupérer cela avant le cron suivant par exemple ?

Les infos brutes sont en temps réel (au moment ou tu cliques sur le bouton et que la page s’ouvre).
Genre tu lances depuis JC et tu cliques sur infos brutes dans les 15 secondes.

Oki ! Je te remonte ça quand je ferais tourner une machine du coup

1 « J'aime »

Hello,

Voici la partie demandée après un start

"execute": {
"data": {
"value": {
"payload": {
"rt": [
"x.com.samsung.da.operation"
],
"if": [
"oic.if.baseline",
"oic.if.a"
],
"x.com.samsung.da.state": "Run",
"x.com.samsung.da.remainingTime": "03:20:00",
"x.com.samsung.da.progressPercentage": "1",
"x.com.samsung.da.progress": "Drying",
"x.com.samsung.da.delayEndTime": "00:00:00",
"x.com.samsung.da.supportedProgress": [
"None",
"Drying",
"Cooling",
"Finish"
]
}
},
"data": {
"href": "/operational/state/vs/0"
},
"timestamp": "2022-09-16T11:47:15.421Z"
}
},

Ok.
Ici je vois « x.com.samsung.da.state »: « Run », qui donne donc la valeur « Marche » à la commande.

Mince, j’ai oublié de demander le reste des infos brutes.
Je voudrais vérifier l’état de dryerOperatingState >> machineState au même moment

Cette partie là ?

dryerOperatingState": {
"completionTime": {
"value": "2022-09-16T15:07:15Z",
"timestamp": "2022-09-16T11:47:15.421Z"
},
"machineState": {
"value": "run",
"timestamp": "2022-09-16T11:47:15.421Z"
},

Oui, c’est ça, merci.

Bon ça m’aide pas.
Je vais envoyer une mise à jour pour afficher des infos supplémentaires dans les log.

Salut,

Ça marche j’attends donc la maj.

A+

J’ai poussé la mise à jour.
Tu verras dans les logs les commandes mises à jour et la valeur inscrite :

mise à jour de : xxx::xxx::xxx à la valeur XXXXX

Ok merci j’ai mis à jour et je te remonte les logs lors du prochain séchage

Je ne sais pas si c’est lié mais j’ai aussi le pourcentage de fin qui n’est plus à 0% mais à 1% quand la machine est finie. Bon je n’ai pas encore regardé si j’avais fais un truc un peu bizarre qui explique ça mais peut-être que ça peut aussi t’aider.

En tout cas lors de la mise en place de mes équipements et scénario je n’avais pas ce phénomène.

@Flobul

Voici les logs :

log smartthings 18-09-2022.txt (42,8 Ko)

14h30 : ON
14h31:15 : START

Et dans le scénario, il y a bien 2 fois le déclenchement à 14h31:15 ?

Voui un « Marche » à 14:31:15 et un « Arrete » à 14:31:16

------------------------------------
[2022-09-18 14:31:15][SCENARIO] Start : Scenario execute automatiquement sur evenement venant de : [Sous-sol][Seche-linge][Statut de machine] (Marche).
[2022-09-18 14:31:15][SCENARIO] Exécution du sous-élément de type [action] : action
[2022-09-18 14:31:15][SCENARIO] Log : Tâche : None
Statuts Machine : Marche
Sous-tension : 1
[2022-09-18 14:31:15][SCENARIO] Exécution du sous-élément de type [condition] : if trigger(#[Sous-sol][Sèche-linge][Statut de machine]#) == 1
[2022-09-18 14:31:15][SCENARIO] Evaluation de la condition : [1 == 1] = Vrai
[2022-09-18 14:31:15][SCENARIO] Exécution du sous-élément de type [action] : then
[2022-09-18 14:31:15][SCENARIO] Exécution d'un bloc élément : 1007
[2022-09-18 14:31:15][SCENARIO] Exécution du sous-élément de type [condition] : if #[Sous-sol][Sèche-linge][Statut de machine]# == 'Marche'
[2022-09-18 14:31:15][SCENARIO] Evaluation de la condition : ["Marche" == 'Marche'] = Vrai
[2022-09-18 14:31:15][SCENARIO] Exécution du sous-élément de type [action] : then
[2022-09-18 14:31:15][SCENARIO] Exécution d'un bloc élément : 1016
[2022-09-18 14:31:15][SCENARIO] Exécution du sous-élément de type [action] : code
[2022-09-18 14:31:15][SCENARIO] Exécution d'un bloc code
[2022-09-18 14:31:15][SCENARIO] Exécution d'un bloc élément : 1008
[2022-09-18 14:31:15][SCENARIO] Exécution du sous-élément de type [action] : action
[2022-09-18 14:31:15][SCENARIO] Affectation de la variable SL_Samsung_Conso_Start => 81100 = 81100
[2022-09-18 14:31:15][SCENARIO] Lancement du scénario : SC Etat LL SL options : {"#EtatLLSL#":"on"}
[2022-09-18 14:31:15][SCENARIO] Fin correcte du scénario
------------------------------------
[2022-09-18 14:31:16][SCENARIO] Start : Scenario execute automatiquement sur evenement venant de : [Sous-sol][Seche-linge][Statut de machine] (Arrete).
[2022-09-18 14:31:16][SCENARIO] Exécution du sous-élément de type [action] : action
[2022-09-18 14:31:16][SCENARIO] Log : Tâche : None
Statuts Machine : Arrêté
Sous-tension : 1
[2022-09-18 14:31:16][SCENARIO] Exécution du sous-élément de type [condition] : if trigger(#[Sous-sol][Sèche-linge][Statut de machine]#) == 1
[2022-09-18 14:31:16][SCENARIO] Evaluation de la condition : [1 == 1] = Vrai
[2022-09-18 14:31:16][SCENARIO] Exécution du sous-élément de type [action] : then
[2022-09-18 14:31:16][SCENARIO] Exécution d'un bloc élément : 1007
[2022-09-18 14:31:16][SCENARIO] Exécution du sous-élément de type [condition] : if #[Sous-sol][Sèche-linge][Statut de machine]# == 'Marche'
[2022-09-18 14:31:16][SCENARIO] Evaluation de la condition : ["Arrêté" == 'Marche'] = Faux
[2022-09-18 14:31:16][SCENARIO] Exécution du sous-élément de type [action] : else
[2022-09-18 14:31:16][SCENARIO] Fin correcte du scénario
------------------------------------

OK, ça y est, j’ai vu ce qui peut poser problème.

Ici, la valeur Marche est affectée à la commande info parce que tu as envoyé la commande action associée :

[2022-09-18 14:31:15]DEBUG : postExecCmdFixValue correction traduction options machineState{"user_login":"admin","user_id":"1","select":"Marche","comingFrom":"JeedomConnect"}

Ensuite, il y a rafraichissement des infos, et la valeur Arrêté est récupérée :

[2022-09-18 14:31:15]DEBUG : updateInfoCmdWithValue : début cmd : main::dryerOperatingState::machineState
[2022-09-18 14:31:15]DEBUG : updateInfoCmdWithValue : mise à jour de : main::dryerOperatingState::machineStateà la valeur : Arrêté

Je pense qu’entre l’action envoyée et la demande de rafraichissement, l’API SmartThings n’a pas le temps de mettre à jour.

Il faudrait peut-être que j’ajoute une tempo.

OK, si tu veux que j’ajoute un petit sleep quelque part pour vérifier l’hypothèse avant de modifier la béta tu n’auras qu’à me dire où

Oui, parfait.

sleep(1) ici :
smartthings.class.php ligne 3895

                if ($body['capability'] !== 'refresh' && $body['command'] !== 'refresh') {
                     sleep(1);
                    $eqLogic->refresh();
                }

Ok c’est fait, à suivre, merci !

                if ($body['capability'] !== 'refresh' && $body['command'] !== 'refresh') {
                  	sleep(1); // Le 18/09/2022 pour test à cause d'un double refresh de la commande State
                    $eqLogic->refresh();
                }
1 « J'aime »