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

Salut @Flobul,

Ça a fonctionné hier avec le sleep même si je n’ai pas bien compris l’enchaînement parce que mon scénario a été déclenché par un statut Arrete et pas Marche …

Je confirme le fonctionnement sur une autre fois mais ça a l’air ok :+1:

1 « J'aime »

Salut,

Bon ça fonctionne mais parce que dans mon scénario je ne prenais pas en compte le « Arrete », j’attendais la notification de fin de cycle.

Le scénario tourne 2 fois de suite (2 secondes d’intervalle). Une fois status « Marche », une fois « Arrete » (je n’ai fais que « Marche » bien sûr).

Quoi qu’il en soit le sleep a bien permis de régler le soucis car j’ai le résultat attendu mais vu des logs, j’ai l’impression que pas totalement.

Sinon voilà ce qu’il se passe si tu veux analyser et me dire si c’est normal :

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

Coté plugin :

[2022-09-26 14:03:29][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-26 14:03:29][DEBUG] : sendRequest - URL : https://api.smartthings.com/v1/devices/8fa306df-ef4c-3353-2860-7c34440baf09/commands METHODE : POST
[2022-09-26 14:03:30][DEBUG] : execute CmdType select Payload : {"commands":[{"component":"main","capability":"dryerOperatingState","command":"setMachineState","arguments":["run"]}]} Résultat de la commande : {"results":[{"id":"3ec87153-5c81-4c7d-8a92-c7f96a540ed1","status":"COMPLETED"}]}
[2022-09-26 14:03:30][DEBUG] : postExecCmdFixValue correction traduction cycle options 9983
[2022-09-26 14:03:30][DEBUG] : postExecCmdFixValue correction traduction cycle options {"user_login":"admin","user_id":"1","select":"run","comingFrom":"JeedomConnect"}
[2022-09-26 14:03:30][DEBUG] : postExecCmdFixValue correction traduction options machineState{"user_login":"admin","user_id":"1","select":"Marche","comingFrom":"JeedomConnect"}
[2022-09-26 14:03:31][DEBUG] : refresh : début
[2022-09-26 14:03:31][DEBUG] : sendRequest - URL : https://api.smartthings.com/v1/devices/8fa306df-ef4c-3353-2860-7c34440baf09/status METHODE : GET
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : début cmd : main::custom.dryerWrinklePrevent::operatingState
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : mise à jour de : main::custom.dryerWrinklePrevent::operatingStateà la valeur : Prêt
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : début cmd : main::custom.dryerWrinklePrevent::dryerWrinklePrevent
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : mise à jour de : main::custom.dryerWrinklePrevent::dryerWrinklePreventà la valeur : 0
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.deviceIdentification::micomAssayCode
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : mise à jour de : main::samsungce.deviceIdentification::micomAssayCodeà la valeur : 20262941
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.deviceIdentification::modelClassificationCode
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : mise à jour de : main::samsungce.deviceIdentification::modelClassificationCodeà la valeur : 300101020014110002A3030700000000
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.deviceIdentification::description
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : mise à jour de : main::samsungce.deviceIdentification::descriptionà la valeur : DA_WM_TP2_20_COMMON_DV5000T/DC92-02622A_0040
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.deviceIdentification::binaryId
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : mise à jour de : main::samsungce.deviceIdentification::binaryIdà la valeur : DA_WM_TP2_20_COMMON
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : début cmd : main::switch::switch
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : mise à jour de : main::switch::switchà la valeur : 1
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : début cmd : main::custom.dryerDryLevel::dryerDryLevel
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : mise à jour de : main::custom.dryerDryLevel::dryerDryLevelà la valeur : 2
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.dryerAutoCycleLink::dryerAutoCycleLink
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : mise à jour de : main::samsungce.dryerAutoCycleLink::dryerAutoCycleLinkà la valeur : 0
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.dryerCycle::dryerCycle
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : mise à jour de : main::samsungce.dryerCycle::dryerCycleà la valeur : Coton
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-26 14:03:31][DEBUG] : L1747Commande info à renseigner cmd - dryerCycle and value - {"value":"Table_03_Course_16","timestamp":"2022-09-21T14:23:31.261Z"}
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.dryerCycle::referenceTable
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : mise à jour de : main::samsungce.dryerCycle::referenceTableà la valeur : {"id":"Table_03"}
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.driverVersion::versionNumber
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : mise à jour de : main::samsungce.driverVersion::versionNumberà la valeur : 22072701
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : début cmd : main::sec.diagnosticsInformation::logType
[2022-09-26 14:03:31][DEBUG] : Commande inexistante : logType
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : début cmd : main::sec.diagnosticsInformation::endpoint
[2022-09-26 14:03:31][DEBUG] : Commande inexistante : endpoint
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : début cmd : main::sec.diagnosticsInformation::minVersion
[2022-09-26 14:03:31][DEBUG] : Commande inexistante : minVersion
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : début cmd : main::sec.diagnosticsInformation::setupId
[2022-09-26 14:03:31][DEBUG] : Commande inexistante : setupId
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : début cmd : main::sec.diagnosticsInformation::protocolType
[2022-09-26 14:03:31][DEBUG] : Commande inexistante : protocolType
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : début cmd : main::sec.diagnosticsInformation::mnId
[2022-09-26 14:03:31][DEBUG] : Commande inexistante : mnId
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : début cmd : main::sec.diagnosticsInformation::dumpType
[2022-09-26 14:03:31][DEBUG] : Commande inexistante : dumpType
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.kidsLock::lockState
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : mise à jour de : main::samsungce.kidsLock::lockStateà la valeur : Déverrouillé
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.detergentOrder::alarmEnabled
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : mise à jour de : main::samsungce.detergentOrder::alarmEnabledà la valeur : 0
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.detergentOrder::orderThreshold
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : mise à jour de : main::samsungce.detergentOrder::orderThresholdà la valeur : 5
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : début cmd : main::powerConsumptionReport::powerConsumption
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : mise à jour de : main::powerConsumptionReport::powerConsumption::energyà la valeur : 82700
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : début cmd : main::powerConsumptionReport::powerConsumption
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : mise à jour de : main::powerConsumptionReport::powerConsumption::powerà la valeur : 0
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : début cmd : main::dryerOperatingState::completionTime
[2022-09-26 14:03:31][DEBUG] : Valeur de : completionTime = 2022-09-26 17:18:53
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : mise à jour de : main::dryerOperatingState::completionTimeà la valeur : 2022-09-26 17:18:53
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : début cmd : main::dryerOperatingState::machineState
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : mise à jour de : main::dryerOperatingState::machineStateà la valeur : Arrêté
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : début cmd : main::dryerOperatingState::dryerJobState
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : mise à jour de : main::dryerOperatingState::dryerJobStateà la valeur : Aucun
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.detergentState::remainingAmount
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : mise à jour de : main::samsungce.detergentState::remainingAmountà la valeur : 0
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.detergentState::dosage
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : mise à jour de : main::samsungce.detergentState::dosageà la valeur : 1
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.detergentState::initialAmount
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : mise à jour de : main::samsungce.detergentState::initialAmountà la valeur : 0
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.detergentState::detergentType
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : mise à jour de : main::samsungce.detergentState::detergentTypeà la valeur : Lingettes
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.dryerDelayEnd::remainingTime
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : mise à jour de : main::samsungce.dryerDelayEnd::remainingTimeà la valeur : 0
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : début cmd : main::custom.jobBeginningStatus::jobBeginningStatus
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : mise à jour de : main::custom.jobBeginningStatus::jobBeginningStatusà la valeur : Aucun
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-26 14:03:31][DEBUG] : checkCreateAndUpdateValues : début
[2022-09-26 14:03:31][DEBUG] : checkCreateAndUpdateValues : mise à jour de : main::execute::data à la valeur : {"payload":{"rt":["x.com.samsung.da.mode"],"if":["oic.if.baseline","oic.if.a"],"x.com.samsung.da.options":["ProgressTimeSet_B22EA4B4003C"]}}
[2022-09-26 14:03:31][DEBUG] : checkCreateAndUpdateValues : fin
[2022-09-26 14:03:31][DEBUG] : decodeExecuteData = rt ["x.com.samsung.da.mode"]
[2022-09-26 14:03:31][DEBUG] : decodeExecuteData = if ["oic.if.baseline","oic.if.a"]
[2022-09-26 14:03:31][DEBUG] : decodeExecuteData = x.com.samsung.da.options ["ProgressTimeSet_B22EA4B4003C"]
[2022-09-26 14:03:31][DEBUG] : decodeExecuteData Fin du décodage
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : début cmd : main::remoteControlStatus::remoteControlEnabled
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : mise à jour de : main::remoteControlStatus::remoteControlEnabledà la valeur : 1
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : début cmd : main::custom.supportedOptions::referenceTable
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : mise à jour de : main::custom.supportedOptions::referenceTableà la valeur : {"id":"Table_03"}
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : début cmd : main::custom.energyType::energyType
[2022-09-26 14:03:31][DEBUG] : Commande inexistante : energyType
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : début cmd : main::custom.energyType::energySavingSupport
[2022-09-26 14:03:31][DEBUG] : Commande inexistante : energySavingSupport
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : début cmd : main::custom.energyType::drMaxDuration
[2022-09-26 14:03:31][DEBUG] : Commande inexistante : drMaxDuration
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : début cmd : main::custom.energyType::energySavingOperationSupport
[2022-09-26 14:03:31][DEBUG] : Commande inexistante : energySavingOperationSupport
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.softwareUpdate::otnDUID
[2022-09-26 14:03:31][DEBUG] : Commande inexistante : otnDUID
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.softwareUpdate::availableModules
[2022-09-26 14:03:31][DEBUG] : Commande inexistante : availableModules
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.softwareUpdate::newVersionAvailable
[2022-09-26 14:03:31][DEBUG] : Commande inexistante : newVersionAvailable
[2022-09-26 14:03:31][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-26 14:03:32][DEBUG] : updateInfoCmdWithValue : début cmd : main::samsungce.dryerDryingTime::dryingTime
[2022-09-26 14:03:32][DEBUG] : updateInfoCmdWithValue : mise à jour de : main::samsungce.dryerDryingTime::dryingTimeà la valeur : 0
[2022-09-26 14:03:32][DEBUG] : updateInfoCmdWithValue : fin
[2022-09-26 14:03:32][DEBUG] : getDeviceNotif : début
[2022-09-26 14:03:32][DEBUG] : sendRequest - URL : https://api.smartthings.com/notification?deviceId=8fa306df-ef4c-3353-2860-7c34440baf09 METHODE : GET
[2022-09-26 14:03:32][DEBUG] : checkCmdNotif0 = lines 9960 =["2022-09-26 13:59:09 - L'\u00e9tat de Smart Control de votre s\u00e8che-linge a \u00e9t\u00e9 modifi\u00e9. ","2022-09-21 16:23:30 - L'\u00e9tat de Smart Control de votre s\u00e8che-linge a \u00e9t\u00e9 modifi\u00e9. ","2022-09-21 16:23:11 - Nettoyez l'\u00e9changeur de chaleur de votre s\u00e8che-linge. Vous apprendrez comment le nettoyer dans le manuel d'utilisation.","2022-09-21 16:23:06 - Cycle termin\u00e9","2022-09-21 14:14:55 - L'\u00e9tat de Smart Control de votre s\u00e8che-linge a \u00e9t\u00e9 modifi\u00e9. ",""] =3 ["Cycle termin\u00e9","end time has been changed"]
[2022-09-26 14:03:32][DEBUG] : getDeviceNotif : fin
[2022-09-26 14:03:32][DEBUG] : refresh : fin

Pour moi, c’est normal.
Et je vois pas quoi faire pour corriger ça.

L’API diffuse l’info par la bonne capability, et diffuse une info supplémentaire dans le capability data-execute qui, en général, est une info venant directement de l’appareil et à jour.

Du coup, je vois pas comment prioriser ni laquelle mettre en priorité.

Je pense que la tempo n’est pas suffisante.

Il faudrait trouver la tempo qui va pour avoir 2 fois la même valeur pour ces valeurs.

Merci pour ton analyse

Donc je grimpe un peu le sleep step-by-step le temps d’avoir 2 exécutions mais avec la même valeur de status (« Marche »). Si on y arrive ça sera clairement moins perturbant et moins problématique pour d’autre situation :slight_smile:

C’est ça.

Mais plus la tempo monte, plus le temps de rafraîchissement après l’envoi d’une commande action sera long. Tu pourras le constater sur un widget.

Parce que certains appareils ne remontent des infos que par les capability classiques et d’autres par la capability data-execute (plaque de cuisson, smart-tag).
Une fois cette tempo définie, je peux la mettre uniquement pour certains types d’appareils.

Tu as réussi à trouver une valeur de tempo qui met à jour la bonne valeur ?

Salut,

2 secondes me semble OK mais j’ai pas eu l’occasion de faire un nouvel essai pour confirmer ça.
Ce qui est sûr c’est que ça fonctionne à présent mais je sais plus trop si le scénario se lance 2 fois ou pas.

Enfin comme dans l’idée ça marche, je pense que si tu es sûr le sujet tu peux passer sur un sleep(2) et ne l’appliquer que pour les matériels qui le nécessite.

Merci :slight_smile:

Salut @Flobul,

Est-ce que tu pourras me dire quand tu feras l’update avec cette valeur et je clôture ce sujet ?

Merci,

Bison

Salut.

Je l’ai glissé dans la beta il y a 4 jours (sleep(2))

Ah et bien je fais la mise à jour merci !

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.