- Nom du scénario : Charge Tesla solaire - Objet parent : Maison - Mode du scénario : schedule - Programmation : */5 7-21 * * * comment ACTION (variable) Affectation de la variable : heureStart à 1400 (variable) Affectation de la variable : heureEnd à 1800 (variable) Affectation de la variable : prodInst à #939# (variable) Affectation de la variable : import à #947# (variable) Affectation de la variable : export à #946# SI variable(manualStopCharge) == 0 ALORS comment SI #time# == variable(heureStart) ALORS (variable) Affectation de la variable : autoStop à 0 SINON SI #[Maison][Vador][Info sapproche de]# == 'Maison' ET #[Maison][Vador][Info recharge]# != 'Charging' ET #[Maison][Vador][Info recharge]# != 'Complete' ET #[Maison][Vador][Info cable connecté]# == 'Engaged' ET #[Maison][Vador][Info niveau de batterie]# < 100 ALORS comment SI (#time# >= variable(heureStart) ET #time# <= variable(heureEnd)) OU variable(prodInst) > variable(minProdCharge) ALORS comment #[Maison][Vador][Réveiller]# - Options : {"enable":"1","background":"0","select":"1"} (sleep) Pause de : 30 #[Maison][Vador][Contrôler la limite de charge]# - Options : {"enable":"1","background":"0","slider":"100"} #[Maison][Vador][Contrôler lampérage de la recharge]# - Options : {"enable":"1","background":"0","slider":"minAmps"} (sleep) Pause de : 15 #[Maison][Vador][Contrôler la recharge]# - Options : {"enable":"1","background":"0","select":"1"} (variable) Affectation de la variable : startPercent à #1039# (variable) Affectation de la variable : autoStop à 0 SINON SINON SI #[Maison][Vador][Info recharge]# == 'Charging' ET #[Maison][Vador][Info sapproche de]# == 'Maison' ALORS comment SI #[Maison][Vador][Info ampérage de recharge]# > 6 ET variable(import) > 230 ALORS comment #[Maison][Vador][Réveiller]# - Options : {"enable":"1","background":"0","select":"1"} (sleep) Pause de : 20 #[Maison][Vador][Contrôler lampérage de la recharge]# - Options : {"enable":"1","background":"0","slider":"#[Maison][Vador][Info amp\u00e9rage de recharge]# - 1"} SINON SI #[Maison][Vador][Info ampérage de recharge]# < 32 ET variable(export) > 0 ALORS comment #[Maison][Vador][Réveiller]# - Options : {"enable":"1","background":"0","select":"1"} (sleep) Pause de : 15 #[Maison][Vador][Contrôler lampérage de la recharge]# - Options : {"enable":"1","background":"0","slider":"#[Maison][Vador][Info amp\u00e9rage de recharge]# +1"} SINON SI #time# >= variable(heureEnd) ALORS comment SI variable(prodInst) < variable(minProdCharge) ET variable(autostop) != 1 ALORS wait - Options : {"enable":"1","background":"0","condition":"","timeout":"300"} (variable) Affectation de la variable : prodInst à #939# SI variable(prodInst) < variable(minProdCharge) ET #[Maison][Vador][Info recharge]# == 'Charging' ET #[Maison][Vador][Info sapproche de]# == 'Maison' ALORS #[Maison][Vador][Réveiller]# - Options : {"enable":"1","background":"0","select":"1"} (sleep) Pause de : 15 #[Maison][Vador][Contrôler la recharge]# - Options : {"enable":"1","background":"0","select":"0"} (variable) Affectation de la variable : autoStop à 1 SINON SINON SINON SINON SINON