- Appartement en location (Donc pas de travaux à prévoir)
- Radiateurs électrique avec fil pilote et thermostat intégré aux radiateurs.
- Raspberry + RaZberry + Rfxcom + Domotictz
- Qubino Fil pilote branché dans le tableau électrique à l'entrée du délesteur.(Juste 1 Zone de chauffage)
Je veux bien votre avis sur le script ou des astuces
En projet Gestion par thermostat Virtuel du mode confort et Eco avec une sonde oregon. Si retour positif de la communauté
Code : Tout sélectionner
-- script_device_Chauffage
-- ZIONIII - Date:04/2016 - Version 01
-- Qubino ZMNHJD1 Non du device Fil_Pilote
--- Arrêt-Délestage: 0-10,
--- Hors-Gel: 11-20,
--- Eco: 21-30,
--- Confort -2: 31-40,
--- Confort -1: 41-50,
--- Confort: 51-100
------------------------------------------
--------- Device Virtuel à créer ---------
------------------------------------------
-- Device interupteur On/Off Non: Planning_Chauffage
--- Afin de réaliser le progranmme horaires On=Confort Off=Eco
-- Device Sélecteur Non: Change_Over (NB: Cacher le niveau Off)
--- Eté (Set level 0)
--- Hiver (Set level 10)
-- Device Sélecteur Non: Mode_Chauffage
--- Off (Set level 0)
--- Confort (Set level 10)
--- Eco (Set level 20)
--- Absence (Set level 30) = mode Eco mais plus de planning horaires
--- Hors-Gel (Set level 40)
-- Local device
local Chauffage = 'Mode_Chauffage'
local Commande = 'Fil_Pilote'
local Horaires = 'Planning_Chauffage'
local Vacances = 'Vacances'
local Saison = 'Change_Over'
--- Début du Script ---
commandArray = {}
-- Device Virtuel Mode_Chauffage
-- Chauffage Mode Arrêt
if (devicechanged[Chauffage] == 'Off') then
commandArray[Commande]='Set Level 5'
print('Chauffage Arrêté')
-- Chauffage Mode Confort
elseif (devicechanged[Chauffage] == 'Confort') and (otherdevices[Saison] == 'Hiver') then
commandArray[Commande]='Set Level 90'
print('Chauffage Mode Confort')
-- Chauffage Mode ECO
elseif (devicechanged[Chauffage] == 'Eco') and (otherdevices[Saison] == 'Hiver') then
commandArray[Commande]='Set Level 25'
print('Chauffage Mode Eco')
elseif (devicechanged[Chauffage] == 'Absence') and (otherdevices[Saison] == 'Hiver') then
commandArray[Commande]='Set Level 25'
-- Chauffage Mode Absence
print('Chauffage Mode Absence')
-- Chauffage Hors-Gel
elseif (devicechanged[Chauffage] == 'Hors-Gel') and (otherdevices[Saison] == 'Hiver') then
commandArray[Commande]='Set Level 15'
print('Chauffage Mode Hors-Gel')
end
-- Device Virtuel Change-over Eté / Hiver ---
-- Sélection du mode été = Arrêt du Chauffage
if (devicechanged[Saison] == 'Eté') then
commandArray[Chauffage]='Set Level 0'
-- commandArray[Commande]='Set Level 5'
print('Chauffage Arrêté car mode été')
end
-- Mode Hiver = Basculement du chauffage en mode Confort
if (devicechanged[Saison] == 'Hiver') then
commandArray[Chauffage]='Set Level 10'
print('Chauffage Arrêté car mode été')
end
-- Mode Eté Blocage du device Mode_Chauffage sur off
if ((devicechanged[Chauffage] == 'Hors-Gel') or (devicechanged[Chauffage] == 'Absence') or (devicechanged[Chauffage] == 'Eco') or (devicechanged[Chauffage]=='Confort')) and (otherdevices[Saison] == 'Eté') then
commandArray[Chauffage]='Set Level 0'
end
-- Programmation horaires (Rentrer le programme horaires directement dans le device)
-- Le programme horaires ne fonctionnne que sur le mode confort ou Eco
if ((devicechanged[Horaires] == 'Off') and (otherdevices[Chauffage] == 'Confort') and (otherdevices[Saison] == 'Hiver')) then
commandArray[Chauffage]='Set Level 20'
print('Chauffage mode Eco')
elseif ((devicechanged[Horaires] == 'On') and (otherdevices[Chauffage] == 'Eco') and (otherdevices[Saison] == 'Hiver')) then
commandArray[Chauffage]='Set Level 10'
print('Chauffage mode Confort')
end
return commandArray