Vous  @971jmd mais pourquoi ne faites vous pas votre "programmeur" comme un plugin interne? Je pense c'est bon de garder la source GEA standardisée at propre.   J'ai modifié un peu différemment, mais j'ai ajouté comme un plugin et vd: GEA.options.multialarm = {name = "multiAlarm", -- optimize = true, control=function(id) return GEA.options.number.control(id) end, getValue=function(id, multi_a) if (os.date("%H:%M", GEA.runAt) == fibaro:getValue(id, "ui."..multi_a.."h.value")) then local days = fibaro:getValue(id, "ui."..multi_a.."j.value") days = days:lower() selected = tools.split(days, " ") for i = 1, #selected do for j = 1, #GEA.trad.week_short do if (GEA.trad.week_short[j] == selected[i]) then if (GEA.traduction.en.week[j]:lower() == os.date("%A"):lower()) then return true end end end end end return false end, } - Alarm : {"multiAlarm", <id_vd>, "<alarme_id>"} - UTILISABLE UNIQUEMENT avec le VirtualDevice GEA.multiAlarm, Alarm_id est "Alarm1" ou "Alarm2" ou "Alarm3" ou "Alarm4"
    CONDITIONS : 
        GEA.add( {"multiAlarm", id["VD_ALARM"], "<alarme_id>"}, 0, "", {ACTIONS} )    - Va vérifier si la période (jour et heure) précisée correspond à celle indiquée sur GEA.ALARM, si TRANCHE VERIFIEE, ACTIONS executées     ACTIONS : Ne peut-etre utilisé en ACTIONS ex.
    GEA.add( {"Alarm", 530, "Alarm2"}, 0, "", {ACTIONS} ) exécute l'action à 4:01, semaine sans samedi   GEA_MultiAlarm.vfib
    • Like
    1