-
Compteur de contenus
20 -
Inscription
-
Dernière visite
À propos de Forall
- Date de naissance 21/03/1982
Profile Information
-
Sexe :
Homme
-
Ville :
Stockholm
-
Intéret :
Home automation, Music, Science
-
Box
Home Center 2
-
Version
4.530
Contact Methods
-
Skype
vare.daniel
Visiteurs récents du profil
Le bloc de visiteurs récents est désactivé et il n’est pas visible pour les autres utilisateurs.
Forall's Achievements
Newbie (1/14)
0
Réputation sur la communauté
-
Thank you very much for as always quick and superb replies
- 12 330 réponses
-
- support
- script lua
-
(et 1 en plus)
Étiqueté avec :
-
Hi two question: is it possible to use the "local id" field to define other things than a device ID? eg. parameter values. is if possible to use e.g. global+ and compare to another variable? e.g. GEA.add({"Global+", "VariableA", "VarableB", 30, "" { **do some fun things***}) i also have some problems with this one if anyone can figure of the issue it would be much appricated GEA.add({{"Global", "Driftlage", "Övervakning"},{"Value+", id["Flodesvakt"], 250}, {"Value+", id["Sandfilter"], 0.65},{"Value-", id["Sandfilter"], 0.9}, {"Value+", id["Ph"], 7},{"Value-", id["Ph"], 7.8}, {"Value+", id["Redox"], 599},{"Value-", id["Redox"], 750}}, 30, "", {{"Global", "Paminnelse", "0"}, {"Repeat"}}) it is not validated even though Flodesvakt=300, Sandfilter=0.71 , Ph=7.41 and Redox = 619 Best regards, Daniel
- 12 330 réponses
-
- support
- script lua
-
(et 1 en plus)
Étiqueté avec :
-
Hi all wonderful people. does anyone know if it is possible to do some easy math in GEA for example: * i would like to turn on a fan if the temperature indoors is above 25 degrees but the air outside is atleast 2 lower * or if the current measurement on my pressure gauge is 1.x times higher than yesterday (logged as a variable) * temp in room A is 5 degrees higher than in room B? Best regards, Daniel
- 12 330 réponses
-
- support
- script lua
-
(et 1 en plus)
Étiqueté avec :
-
Thanks again @lazer found that thanks to you once again! Best regards, Daniel
- 12 330 réponses
-
- support
- script lua
-
(et 1 en plus)
Étiqueté avec :
-
It's so hard to search for old discussions on GEA but if i remember correctly it is possible to use local variables within GEA but i cant find any clue on how to do it. I am wrong or could anyone tell me how to do this?
- 12 330 réponses
-
- support
- script lua
-
(et 1 en plus)
Étiqueté avec :
-
Thank you very much @Lazer
- 12 330 réponses
-
- support
- script lua
-
(et 1 en plus)
Étiqueté avec :
-
Hi all, a maybe basic question is it possible to use ">" or "<" with global variables or is there a better way to solve the problem. I am using some timer e.g. if it is nighttime and any outdoor lights is on, turn them of after 5 min if any door i opened or movement during night, turn on lights and reset the counter GEA.add ({"Global", "time of day", "night"}, 30, "", {"Global", "outdoor night timer", "inc+"}) GEA.add({618}, -1, "", {"Global", "outdoor night timer", "0"}) GEA.add({425}, -1, "", {"Global", "outdoor night timer", "0"}) GEA.add({553}, -1, "", {"Global", "outdoor night timer", "0"}) GEA.add({601}, -1, "", {"Global", "outdoor night timer", "0"}) GEA.add ({"Global", "outdoor night timer", >10}, -1, "", {"Turnoff", 620, 659, 362})
- 12 330 réponses
-
- support
- script lua
-
(et 1 en plus)
Étiqueté avec :
-
DEAR all, I am trying to migrate to HC3 but have porblems with this new GEA. I hope i have added some lines on the correct places but i do get the following error /warning as you see it didn't add line 23 nor do i see that it runs every 30 sec. Ps. was the language selection removed? I cant find it anymore
- 12 330 réponses
-
- support
- script lua
-
(et 1 en plus)
Étiqueté avec :
-
Thank you@pepite The idea is to use the counter to check an array of triggers if any of them starts reset the counter different amount of time. when all conditions are fulfilled execute something. eg. if outdoor motion sensor detects light reset the timer to -3 min but if the phones arrive at home reset the timer to -10 min.
- 12 330 réponses
-
- support
- script lua
-
(et 1 en plus)
Étiqueté avec :
-
Dear all, I have searched and searched without finding any answer to if it is possible to have local 'variables' in GEA that can be used with the inc+ function. Any one that can help out with a answer? Best regards, Daniel --anyone awake? GEA.add({{id["VardagsrumPIR"]},{"Global", "Solen", "Sen kväll"}}, -1, "", {{"Global", "VaknaCounter", "0"},{"Repeat"}}) -- if movement in livingroom restart timer GEA.add({{id["HallPIR"]},{"Global", "Solen", "Sen kväll"}}, -1, "", {{"Global", "VaknaCounter", "0"},{"Repeat"}}) -- if movement in hallway restart timer GEA.add({{"Power+", id["TV"], 50}}, 60, "", {{"Global", "VaknaCounter", "0"},{"Repeat"}}) -- -- if the TV is on restart timer GEA.add({{id["VardagsrumDorr"]},{"Global", "Solen", "Sen kväll"}}, -1, "", {{"Global", "VaknaCounter", "0"},{"Repeat"}}) -- if the door to the pavio is open restart timer GEA.add({{id["HallLampa"]},{"Global", "Solen", "Sen kväll"}}, 5*60, "", {{"Global", "VaknaCounter", "0"},{"Repeat"}}) --if lights are on in Hallway restart timer GEA.add({{id["Sovrum1Lampa"]},{"Global", "Solen", "Sen kväll"}}, 5*60, "", {{"Global", "VaknaCounter", "0"},{"Repeat"}}) --if lights are on in masterbedroom restart timer GEA.add({{id["SoffbordLampa"]},{"Global", "Solen", "Sen kväll"}}, 5*60, "", {{"Global", "VaknaCounter", "0"},{"Repeat"}}) --if lights are on by the couch restart timer --Are we asleep local ljusstyrning = GEA.add({"Global", "Solen", "Sen kväll"}, 60, "", {{"Global", "VaknaCounter", "inc+"},{"Repeat"}}) -- count up every minute local ljusstyrning2 = GEA.add({"Global+", "VaknaCounter", "15"}, -1, "", {{"Global", "Vakna", "Stilla"},{"Scenario", id["ManSlack"]},{"Global", "VaknaCounter", "0"}}) --then counting reached 15 define night and turn of all remaining lights etc. GEA.add({"Global", "Ljusstyrning", "Gäster/Man"}, 30, "", {{"StopTask", ljusstyrning},{"StopTask", ljusstyrning2}}) -- if we have guests keep all lights on GEA.add({"Global", "Ljusstyrning", "Auto"}, 30, "", {{"RestartTask", ljusstyrning},{"RestartTask", ljusstyrning2}}) ---reaktivate light management
- 12 330 réponses
-
- support
- script lua
-
(et 1 en plus)
Étiqueté avec :
-
Thank you all for great help now my Gea works as it should with some 40 functions For my next function i am wondering if there is any possibility to use randomization ( i know true randomization is impossible). The idea is that if the alarm system is armed then during the late night run a couple of parallel functions at "random" times between 21:45-23:00, turning off different groups of lights in each function. eg. Monday/day 1 -- 22:06 turn off Lights 1-3, 22:16 turn of lights 4-6, 22:59 turn off lights 7-10 Tuesday/day 2 -- 21:46 turn off Lights 7-10, 22:08 turn of lights 4-6, 22:22 turn off lights 1-3 Any brilliant ideas or solutions? Best regards, Daniel
- 12 330 réponses
-
- support
- script lua
-
(et 1 en plus)
Étiqueté avec :
-
Thank you very much @Steven, For me there was never any hurry but i sincerely appreciate all the time you have put into both developing GEA and for the support you give The new code looks like it is working as it should! I quite often envy those that have the same discipline as you, and not having the computer at home working evenings and weekends...
- 12 330 réponses
-
- support
- script lua
-
(et 1 en plus)
Étiqueté avec :
-
Dear @Steven, unfortionatly the log shows that each time i get movement it interperate the code as seting the varible to night instead of if night GEA.add(id["FramsidePIR"], -1, "", { {"Global", "Solen", "Natt"}, --if nighttime {"TurnOn", { id["UppfartenLampa"], id["EntreLampa"], id["GangLampa"] }} -- turn on lights } ) Best regards, Daniel
- 12 330 réponses
-
- support
- script lua
-
(et 1 en plus)
Étiqueté avec :
-
Dear @Steven, Thank you for the explanation! I will correct this in the code and give it a new try
- 12 330 réponses
-
- support
- script lua
-
(et 1 en plus)
Étiqueté avec :
-
Dear @pepite, Thank you so much for helping me out with this. Line 1921 is " message:gsub("({.-})", function(c) " from section " message:gsub("({.-})", function(c) local d = tools.split(c:gsub("{", ""):gsub("}", ""), ",") for i = 1, #d do d = tools.trim(d) if (tools.isNumber(d)) then d = tonumber(d) elseif (d:lower()=="true") then d = true elseif (d:lower()=="false") then d = false end end local res = GEA.getOption(d).getValue() if (type(res) == "nil") then res = "n/a" end message = message:gsub(c, tostring(res)) end) " Regarding Lux meter 167, I had it in the heading to collect the data but not started adding the code yet, so removing it and only adding the once i have a function ready for solved that one Are these correct functions? got a little confused with the multiple conditions structure with PIR activation: --Turn on outdoor lights on front side of the house PIR dependent during the night and turn of 5 min later GEA.add(id["FramsidePIR"], -1, "", {{"Global", "Solen", "Natt"}}, {{"turnOn", id["EntreLampa"]}, {"turnOn", id["UppfartenLampa"]},{"turnOn", id["GangLampa"]}}) -- when PIR notice movement, but only during night time, turn on 3 lamps GEA.add(id["FramsidePIR"], 5*60, "", {{"Global", "Solen", "Natt"}}, {{"turnOff", id["EntreLampa"]}, {"turnOff", id["UppfartenLampa"]}, {"turnOff", id["GangLampa"]}}) -- 5 min after the movement stops, still only during night time, turn of the affected lamps --Outdoor Lightning -- get variable Sun='Solen' through the day using timers to avoid LUX meters to activete the light on inproper times GEA.add( {{"Time", "05:00", "05:02"}}, 30 , {{"Global", "Solen", "Gryning"}}) - check every 30 sec and if time is between 05:00-05:02 state that it is twilight in the global variable GEA.add( {{"Time", "09:00", "09:02"}}, 30 , {{"Global", "Solen", "Dag"}, {"Global", "Pool", "Släck"}}) -- check every 30 sec and if time is between 09:00-09:02 state that it is daytime and the the pool light variable should be set to off GEA.add( {{"Time", "14:00", "14:02"}}, 30 , {{"Global", "Solen", "Eftermiddag"}}) GEA.add( {{"Time", "22:00", "22:02"}}, 30 , {{"Global", "Solen", "Sen kväll"}}) -- Control Variable 'Sun' (Solen)with LUX meeters morning and afternoon GEA.add( {{"Value+", id["FramsidanLUX"], 150} , {"Global", "Solen", "Gryning"}}, 30 , {{"Global", "Pool", "Släck"}, {"turnOFF", id["EntreLampa"]}, {"turnOff", id["UppfartenLampa"]}, {"turnOff", id["GangLampa"]}, {"turnOff", id["AltanLampa"]}, {"turnOff", id["PoolLampa"]}, {"Global", "Solen", "Dag"}}) --check every 30 sec and if the lux is above 150 and it is twilight turn of a bunch of lamps and state that it is daytime and pool lights off GEA.add( {{"Value+", id["BaksidanLUX"], 150} , {"Global", "Solen", "Gryning"}}, 30 , {{"Global", "Pool", "Släck"}, {"turnOFF", id["EntreLampa"]}, {"turnOff", id["UppfartenLampa"]}, {"turnOff", id["GangLampa"]}, {"turnOff", id["AltanLampa"]}, {"turnOff", id["PoolLampa"]}, {"Global", "Solen", "Dag"}}) -- same as above but on the other side of the house GEA.add( {{"Value-", id["FramsidanLUX"], 25} , {"Global", "Solen", "Eftermiddag"}}, 30, {{"Global", "Pool", "Tänd"}, {"turnOn", id["EntreLampa"]}, {"turnOn", id["UppfartenLampa"]}, {"turnOn", id["GangLampa"]}, {"turnOn", id["AltanLampa"]}, {"Global", "Solen", "Kväll"}}) ----check every 30 sec and if the lux is below 25 and it is afternoon turn on a bunch of lamps and state that it is evening and pool lights on GEA.add( {{"Value-", id["BaksidanLUX"], 25} , {"Global", "Solen", "Eftermiddag"}}, 30, {{"Global", "Pool", "Tänd"}, {"turnOn", id["EntreLampa"]}, {"turnOn", id["UppfartenLampa"]}, {"turnOn", id["GangLampa"]}, {"turnOn", id["AltanLampa"]}, {"Global", "Solen", "Kväll"}})
- 12 330 réponses
-
- support
- script lua
-
(et 1 en plus)
Étiqueté avec :