Welcome to Domotique-fibaro

 

Inscrivez-vous maintenant pour accéder à toutes nos fonctionnalités. Une fois inscrit et connecté, vous serez en mesure de contribuer à ce site en soumettant votre propre contenu ou en répondant au contenu existant. Vous serez en mesure de personnaliser votre profil, de recevoir des points de réputation comme une récompense pour la soumission de contenu, tout en communiquant avec d'autres membres via votre boîte de réception privée, et bien plus encore! Ce message sera supprimé une fois que vous vous êtes connecté.

 

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

sonnyboy

Membres confirmés
  • Compteur de contenus

    23
  • Inscription

  • Dernière visite

Réputation sur la communauté

6 Neutral

À propos de sonnyboy

  • Rang
    Nouveau

Profile Information

  • Sexe :
    Homme
  • Ville :
    Västerås
  • Box
    Home Center 2
  • Version
    4.104 Beta

Visiteurs récents du profil

69 visualisations du profil
  1. I got a strange problem, i got often to many instances on GEA, so change from 2 to 4 instances an push the save button. After that the scene is gone, when i manually write in scene 288 new scene apears, my GEA is gone, tried to save the backup that i had but only got error 403. This has happen two times now, only way to get GEA back is to restore a backup on the HC:2 Anyone else with this problem?
  2. When i did a backup on my system today GEA stopped to to work has anybody else that problem? I run 4.104 Beta. Otherwise my system feels so smood sens i migrated most of my scenes to GEA, Big thanks to all you that made this possible!
  3. When i use {"Scenario", 242} do i have to put anything up in the begining of the code? GEA.add({"Global-", "Sun", "1.3"}, 30, "", {{"Time", "13:00", "20:00"}, {"Days", "Weekday"}, {"Scenario", 242}}) Can i change {"Days", "Weekday"} to {"Days", "All"}?
  4. @ggpublic i must ask about your code snippet, should this do the same? GEA.add({"Global","Alarme","Off"},60,"",{{"turnOn",245},{"Time","21:30","21:35"},{"Days","Monday, Tuesday, Wednesday, Thursday, Sunday"},{"Portable", ipadFrigo},{"Portable", ipadMini}})
  5. @pepite thanks for the tip, This works excellent without repeat, should it not? GEA.add(SENSORS["Wc"], 3*60, "", {{"Inverse"}, {"turnOff", Wc["Tak"]}, {"Repeat"}}) Earth Hour Once a year we let the light turn off for one hour, just to save some energy If you want you can read about in here https://www.earthhour.org/ So if everything works the light will go off at 20:30 2017-03-25 and back on again 21:30
  6. i post my little setup here, perhaps others that just started have like me second thoughts, this is BIG but with help from this forum everything works All the comment is in Swedish Earth Hour is from Robert on Swedish zwaveforum.se, slightly modified, i have deleted sonos in mine, Source here http://zwaveforum.se/viewtopic.php?f=38&t=5463&start=320#p18258 --[[ %% autostart %% properties 202 value 228 value %% globals Sun --]] local Alicia = {Window = 36} local Oliver = {Dimmer = 267} local Elliot = {Dimmer = 274, Elliot_Skrivbord = 300} local BedRoom = {Sonny_Laddare = 37, Erika_Laddare = 288} local Farstukvist = {Tak = 276} local Wc = {Tak = 66} local Laundry_Room = {Tak = 51} local Kitchen = {KaffeBryggare = 272, Window = 250} local LivingRoom = {Hemma_Bio = 42, Tv = 43, Wii = 44, Bakom_Tv = 45, Bakom_Soffa = 269} local SENSORS = {Wc = 202, Laundry_Room = 228} local VD = {AllmanBelysning = 240, BarnensBelysning = 193, Garaget_Stolpe = 76} -- v 5.42 function setEvents() --Barnens belysning --Starta lamporna när globala variablen är 1.3 eller mindre och klockan är mellan 13:00-18:50 släck vid 19 tiden. GEA.add({"Global-", "Sun", "1.3"}, 30, "", {{"Time", "13:00", "18:50"}, {"VirtualDevice", VD["BarnensBelysning"], "1"}})--Tryck på knapp 1 på VD 193 GEA.add(true, 30, "", {{"Time", "19:00", "19:02"}, {"VirtualDevice", VD["BarnensBelysning"], "2"}})--Tryck på knapp 2 på VD 193 GEA.add(true, 30, "", {{"Time", "06:45", "06:46"}, {"turnOff", Elliot["Dimmer"]}}) --UteBelysningen GEA.add({"Global-", "Sun", "0.7"}, 30, "", {{"turnOn", Farstukvist["Tak"]}}) GEA.add({"Global-", "Sun", "0.7"}, 30, "", {{"VirtualDevice", VD["Garaget_Stolpe"], "1"}}) GEA.add({"Global+", "Sun", "0.8"}, 30, "", {{"turnOff", Farstukvist["Tak"]}}) GEA.add({"Global+", "Sun", "0.8"}, 30, "", {{"VirtualDevice", VD["Garaget_Stolpe"], "2"}}) -- Tänder Wc vid rörelse och Släcker GEA.add(SENSORS["Wc"], -1, "", {{"Time", "05:01", "22:30"}, {"Value", Wc["Tak"], 99}}) GEA.add(SENSORS["Wc"], -1, "", {{"Time", "22:31", "05:00"}, {"Value", Wc["Tak"], 30}}) GEA.add(SENSORS["Wc"], 3*60, "", {{"Inverse"}, {"turnOff", Wc["Tak"]}}) -- Tänder Tvättstugan vid rörelse och Släcker GEA.add(SENSORS["Laundry_Room"], -1, "", {{"Time", "00:00", "23:59"},{"turnOn", Laundry_Room["Tak"]}}) GEA.add(SENSORS["Laundry_Room"], 5*60, "", {{"Inverse"}, {"turnOff", Laundry_Room["Tak"]}}) --Vardagsrummet --Standby killer Off GEA.add(true, 30, "", {{"Time", "06:30", "06:31"}, {"turnOn", LivingRoom["Hemma_Bio"]}, {"turnOn", LivingRoom["Tv"]}, {"turnOn", LivingRoom["Wii"]}}) --Standby killer On GEA.add(true, 30, "", {{"Time", "01:30", "01:31"}, {"turnOff", LivingRoom["Hemma_Bio"]}, {"turnOff", LivingRoom["Tv"]}, {"turnOff", LivingRoom["Wii"]}}) --Köket GEA.add({"Sensor+", Kitchen["KaffeBryggare"], 50}, 40*60, "Stänger av Kaffebryggaren #time#", {{"turnOff", Kitchen["kaffeBryggare"]},{"Portable"}}) --Sovrummet --Starta laddare GEA.add(true, 30, "", {{"Time", "22:00", "22:01"}, {"turnOn", BedRoom["Sonny_Laddare"]}, {"turnOn", BedRoom["Erika_Laddare"]}}) --Laddare av GEA.add(true, 30, "", {{"Time", "06:00", "06:01"}, {"turnOff", BedRoom["Sonny_Laddare"]}, {"turnOff", BedRoom["Erika_Laddare"]}}) --Morgonbelysning om sol är mindre än 1 GEA.add({"Global-", "Sun", "1.0"}, 30, "", {{"Time", "05:30", "12:50"}, {"Days", "Weekday"}, {"turnOn", LivingRoom["Bakom_Soffa"]}, {"turnOn", LivingRoom["Bakom_Tv"]}, {"turnOn", Kitchen["Window"]}}) GEA.add({"Global-", "Sun", "1.0"}, 30, "", {{"Time", "07:30", "12:50"}, {"Days", "Weekend"}, {"turnOn", LivingRoom["Bakom_Soffa"]}, {"turnOn", LivingRoom["Bakom_Tv"]}, {"turnOn", Kitchen["Window"]}}) GEA.add({"Global+", "Sun", "1.1"}, 30, "", {{"Time", "05:46", "12:52"}, {"turnOff", LivingRoom["Bakom_Soffa"]}, {"turnOff", LivingRoom["Bakom_Tv"]}, {"turnOff", Kitchen["Window"]}}) -- Earth Hour - Datum fram till 2020. -- Notis via push och Sonos om att Earth Hour börjar om 30 min. GEA.add (true, 30, "Earth Hour börjar om 30 minuter. Förbered levande ljus ifall ni vill se något i mörkret :)", {{"If", {{"Global", "Status", "Hemma"}}}, {"Dates", "25/03/2017", "25/03/2017"}, {"Dates", "31/03/2018", "31/03/2018"}, {"Dates", "30/03/2019", "30/03/2019"}, {"Dates", "28/03/2020", "28/03/2020"}, {"Time", "20:00", "20:01"}}) -- Sätter den globala variabeln till aktivt läge, 1. GEA.add (true, 30, "", {{"If", {{"Global", "Status", "Hemma"}}}, {"Dates", "25/03/2017", "25/03/2017"}, {"Dates", "31/03/2018", "31/03/2018"}, {"Dates", "30/03/2019", "30/03/2019"}, {"Dates", "28/03/2020", "28/03/2020"}, {"Time", "20:30", "20:31"}, {"Global", "EarthHour", "1"}}) -- Påbörjar Earth Hour. Släcker alla lampor, pushar ut notis på mobiler och Sonos. GEA.add ({"Global", "EarthHour", "1"}, -1, "Earth Hour påbörjad. Avslutas 21:30.", {{"If", {{"Global", "Status", "Hemma"}}}, {"Dates", "25/03/2017", "25/03/2017"}, {"Dates", "31/03/2018", "31/03/2018"}, {"Dates", "30/03/2019", "30/03/2019"}, {"Dates", "28/03/2020", "28/03/2020"}, {"Time", "20:30", "20:31"}, {"VirtualDevice", VD["AllmanBelysning"], "2"}}) -- Sätter den globala variabeln till inaktivt läge, 0. GEA.add (true, 30, "", {{"If", {{"Global", "Status", "Hemma"}}}, {"Dates", "25/03/2017", "25/03/2017"}, {"Dates", "31/03/2018", "31/03/2018"}, {"Dates", "30/03/2019", "30/03/2019"}, {"Dates", "28/03/2020", "28/03/2020"}, {"Time", "21:30", "21:31"}, {"Global", "EarthHour", "0"}}) -- Avslutar Earth Hour. Tänder lamporna igen, pushar ut notis på mobiler och Sonos. GEA.add ({"Global", "EarthHour", "0"}, -1, "Earth Hour avslutad. Lamporna tänds.", {{"If", {{"Global", "Status", "Hemma"}}}, {"Dates", "25/03/2017", "25/03/2017"}, {"Dates", "31/03/2018", "31/03/2018"}, {"Dates", "30/03/2019", "30/03/2019"}, {"Dates", "28/03/2020", "28/03/2020"}, {"Time", "21:30", "21:31"}, {"VirtualDevice", VD["AllmanBelysning"], "1"}}) end
  7. @pepite Thanks for putting me in the right direction again, i can use me old VD for this. I call the VD from Gea and then it works Example code From my VD that turn on the light. fibaro:call(36, "turnOn") fibaro:sleep(math.random(3000,12000)) fibaro:call(266, "turnOn") fibaro:wakeUpDeadDevice(274) -- Wake up if dead fibaro:sleep(math.random(5000,14000)) fibaro:call(274, "setValue", "99") fibaro:sleep(math.random(6000,15000)) fibaro:call(300, "turnOn")
  8. @pepite, I wanted it Between each light turned on
  9. Hello is there any possibility to have like this in GEA (math.random(6000,15000)) i would like to have some time between the lights when they turn on. GEA.add({"Global-", "Sun", "1.0"}, 30, "", {{"Time", "05:30", "12:50"}, {"Days", "Weekday"}, {"turnOn", LivingRoom["Bakom_Soffa"]}, {"turnOn", LivingRoom["Bakom_Tv"]}, {"turnOn", Kitchen["Window"]}})
  10. @pepite You just made my mornig bright And i will have a happy wife Tank you!
  11. Bonsoir Will this work tomorrow morning around 05:30 if my global Sun is less than 1? GEA.add({"Global-", "Sun", "1.0"}, 30, "", {{"Time", "05:30", "12:50"}, {"Days", "Weekdays"},{"turnOn", LivingRoom["Bakom_Soffa"]}}) GEA.add({"Global-", "Sun", "1.0"}, 30, "", {{"Time", "05:30", "12:50"}, {"Days", "Weekdays"},{"turnOn", LivingRoom["Bakom_Tv"]}}) GEA.add({"Global-", "Sun", "1.0"}, 30, "", {{"Time", "05:30", "12:50"}, {"Days", "Weekdays"},{"turnOn", Kitchen["Window"]}})
  12. @Steven Thank so Much for this
  13. Yes @pepite That is exactly what i want to do, is it possible? I just love GEA lets get all in it
  14. EN Now i will write in En My France is not so good and when i use google translate my sentens doesent look good Is if possible to get random lighting? i post my lua that i have for this, i want diffrent lights that turns on first every night. just to foll the thieves local deviceIDs = { 248, 250, 252, 269, 45, 189 } math.randomseed(os.time()) function randomOrder(table) local new = {} for j,x in pairs(table) do new[j] = x end local res = {} while (#new > #res) do local index = math.random(1,#new) if (new[index] > -1) then res[#res+1] = new[index] new[index] = -1 end end return res end for Device,device in pairs(randomOrder(deviceIDs)) do local lightstatus=tonumber(fibaro:getValue(device, "value")); fibaro:debug(lightstatus) if (lightstatus==0) then fibaro:call(device, "turnOn") end fibaro:debug( Device .. " DeviceID: "..device) fibaro:sleep(math.random(5000,12000)) fibaro:call(20, "pressButton", "4")--Endast för VD end
  15. @971jmd Merci beaucoup, maintenant je l'ai eu, c'était un peu plus dans le code, mais ça marche maintenant GEA.add(SENSORS["Wc"], -1, "", {{"Time", "22:31", "05:00"}, {"Value", Wc["Tak"], 30}})