For that I'm planning to use a table with different parameter and a week and weekend schedule.
Here is an exemple.
Code: Select all
["Sdb"] = {
["Setpoint"] = "BT Sdb ThermoSetpoint",
["Motion"] = "Motion Sdb",
["Week_Planning"] = { ["07:30"] = "Confort", ["09:00"] = "Eco", ["12:00"] = "Confort", ["14:00"] = "Eco", ["18:00"] = "Confort", ["21:00"] = "Eco" },
["WeekEnd_planning"] = { ["09:00"] = "Confort", ["21:00"] = "Eco" },
}
Why I need to have this order, is because I'm trying to identify in which period am I based on the current time. But as the items are coming in a different order, I cannot.
Any idea how I should process ?