
Sommaire
PRÉSENTATION

- Un capteur de température, pour vous prévenir de température trop chaude ou trop froide
- Un capteur d’inclinaison : pour vous dire si quelqu’un joue avec
- Un capteur d’ouverture : pour vous indiquer si il a été ouvert
- D’une led multicolore pour vous donner des notifications visuels
- De 3 pieds télescopiques en métal doré qui ont la charge de détecter de l’eau mais aussi d’adapter le module aux sols irrégulier
- Enfin il flotte




L’INCLUSION DANS DOMOTICZ
Je suis équipé d’une clef Zwave Aeotec ZW090 Z-Stick Gen5et j’en suis content. Dans Domoticz je me suis rendu dans la page Réglages>Matériels puis ai cliqué sur l’icône Réglages de mon ZWave :







ETRE PRÉVENU DU PROBLÈME
Que la Domotique sache qu’il y a un problème c’est bien, être prévenu à temps c’est mieux ! Création de notification en cas de mise en route :
- Http : qui va m’envoyer un SMS
- Kodi : au cas où je suis entrain de l’utiliser
- Pushbullet
IP = '192.168.0.201'; -- ip de sarah
PORT = '8888' -- port du tts de sarah
commandArray = {}
if (tonumber(os.date('%H')) >= 7 and tonumber(os.date('%H')) < 20 ) then -- de 6h00 à 7h59
--Notification Inondation
if devicechanged['Capteur inondation']=='On' then
runcommand = "curl http://" ..IP.. ":" ..PORT.. "/?tts=il%20a%20une%20fuite%20a%20la%20chaudiere";
os.execute(runcommand);
print(runcommand)
end
if devicechanged['Capteur inondation']=='Off' then
runcommand = "curl http://" ..IP.. ":" ..PORT.. "/?tts=il%20n%20y%20plus%20de%20fuite%20a%20la%20chaudiere";
os.execute(runcommand);
print(runcommand)
endend
return commandArray
[/pcsh]
Vous pouvez le télécharger ici
Et un Script de notification pour mon Hyperion :
[pcsh lang= »cpp » tab_size= »4″ message= » » hl_lines= » » provider= »manual »]
IP = '192.168.0.24' -- ip address hyperion
Port = '19444' -- port de communication hyperion
commandArray = {}
--Notification Inondation / police hyperion
if devicechanged['Capteur inondation']=='On' then
runcommand = "echo '{ \"command\": \"effect\", \"effect\": {\"name\": \"Police Lights Solid\" }, \"priority\": 10 }' | nc -w 1 " .. (IP) .. " " .. (Port) .. " ";
os.execute(runcommand);
end
if devicechanged['Capteur inondation']=='Off' then
runcommand = "echo '{ \"command\": \"clear\", \"priority\": 10 }' | nc -w 1 " .. (IP) .. " " .. (Port) .. " ";
os.execute(runcommand);
end
return commandArray
[/pcsh]
Vous pouvez le télécharger ici
Enfin Voici ce que cela donne en vrai quand il détecte de l’eau :
