Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


Apax

Member
  • Posts

    50
  • Joined

  • Last visited

About Apax

  • Birthday 05/15/1975

Profile information

  • Gender
    Male
  • Country
    Sweden
  • Gateway/s
    Home Center 3
    Home Center 2

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Apax's Achievements

Learner

Learner (2/8)

1

Reputation

  1. after implement this code in to some QA´s, I would like to expand with some cron as well ( sun´state´ and exact time) but i do not get it to work. Could you please give me some hints, in the right direction self:subscribe({type='cron', time=<cronString>, tag=<string>})
  2. Hi jgab! This was a nice one thank you very much, i have never imported a script that works direct. Great job! For those who read this and want to use this script, change line 7 to only one ":"
  3. all right , that´s an idea so there is no way to just read check the device status like motion detector or simular
  4. Hi All! I have created a loop in a QA and need to detect if a button (from a 8-button device, Scene Master - ZRC-90 - Remotec) has been singleclick or dubbleclick and which one Normaly I simple use this: { conditions = { { id = 162, isTrigger = true, operator = "anyValue", property = "centralSceneEvent", type = "device" } }, operator = "any" } local trigger = sourceTrigger if (trigger.value.keyId==1 and trigger.value.keyAttribute=="Pressed" ) But in this case we do not have this device as a "sourceTrigger" I have tried diffrent ways but can not get it to work function QuickApp:loop(KeyCodeQA) local trigger = hub.getValue(162, "value") if (trigger.keyId==1 and trigger.keyAttribute=="Pressed" ) end
  5. Thanks i will take alook at it later
  6. Hi ! does anyone know it here is a way to open a QA direct from a browser. To skip the process of finding the QA and expand it and zoom in to cover all over the display The reason is that i got i few screens on the wall and sometimes they just simply going down. And that would be nice to have this link to "auto open" QA in full screen Thanks in advance
  7. Hi Thanks for answering and for your nice comments. I will bring this in to a consideration. Put every thing in to a QA , maybe it will improve stability Yes it is a lot off "call 103" . it is diffrent text fieds in the QA that needs to be uppdated and as i said, it is working for a day But why not aim for 72h
  8. Hi all!! Thank you all for this forum and all nice people that helping eachother out. Now its my turn to ask a question regarding LUA scripting, a script that makes my system to stall within 24h What the script basicaly does is that it checks if doors, windows, motionsencors etc is open or closed and then send it to a QA but also to a global value from a standard LUA scene. I am running the QA on diffrent screens in my home to so i get a nice view of what´s going on. The global value i pick up then i am arming the house and sending it to a a TTS-script. Always nice to hear a voice that tells me that a window is open etc... when i am leaving. But i think something is draining resources, i have tried to only activate the script via Conditions and Triggers, but also via a loop with diffrent sleep times. It does not say in Diagnostics that i am out of recourses se my sample below short version (The script works fine but after aprox 24h HC3 stalls or not working as expected ). How can i do it better ? ::BEGIN:: local var = {}; local debug = 1; ----------------WINDOWS------------ local Windows = ""; local WindowsAlarm = ""; local WindowsLiving = ""; local WindowsLivingAlarm = ""; local WLiving = fibaro.getValue(249, "value"); --...and 6 more sencors ----------------DOORS------------ local Doors = ""; local DoorsAlarm = ""; local Freezer = "" ; local FreezerAlarm = "" ; local DFreezer = fibaro.getValue(355, "value") ; --...and 10 more sencors ----------------MOTION---------- local Motion = ""; local MotionAlarm = ""; local Kitchen = ""; local KitchenAlarm = ""; local MKitchen = fibaro.getValue(21, "value"); --...and 7 more sencors ----------------Switches 1st and 2nd floor---- --...About 30 switches ----------------TEMPS---------------------- --... collecting temps round house ----------------Secure-------------------- local SecureFrontdoor = " " local Parm = " " -- ...Checking if frontdoor is locked and if it is armed etc... ----------------Garage-------------------- -- ... same with garage local Garage = "Garage : " ..IR ..Outlet ..Mainlight ..Port ----------------Setting Variable--------- if WLiving == true then WindowsLiving = "Livingroom" WindowsLivingAlarm = "Vardagsrums fönster, " end; if DFreezer == true then Freezer= "Frys, " FreezerAlarm = "Frysdörr. " end ; if MKitchen == true then Kitchen = "Köket, " KitchenAlarm = "Rörelse i köket, " end; if fibaro.getValue(30, "value") == true then sink = fibaro.getName(30)..", " end; -------------CONSOLIDATE --------------- Windows = "Fönster: " ..WindowsLiving .." " .. Bathroom; -- for screens QA var.WindowsAlarm = WindowsLivingAlarm ..BathroomAlarm; Doors = "Dörrar: " ..Refrigerator .." "..StoreTrash ; -- for screens QA var.DoorsAlarm = RefrigeratorAlarm ..StoreTrashAlarm ; Motion = "Rörelse:" ..Kitchen .." "..Shower ; -- for screens QA var.MotionAlarm = KitchenAlarm ..ShowerAlarm ; -- .. and some more... -------------SEND UPDATES---------------------------------------------------------------------- fibaro.call(103,"updateView","windows","text", Windows); fibaro.call(103,"updateView","doors","text", Doors) fibaro.call(103,"updateView","detectors","text", Motion); fibaro.call(103,"updateView","avgtemp","text", avgtemp) ; fibaro.call(103,"updateView","secure","text", SecureFrontdoor .." " ..Parm ); fibaro.call(103,"updateView","garage","text", Garage) ; fibaro.call(103,"updateView","first","text",first) ; fibaro.call(103,"updateView","second","text",second) ; fibaro.setGlobalVariable('Status',json.encode(var)) -------------DEBUG-------------- ------Loop Me ------------------ fibaro.sleep(5*1000); goto BEGIN
  9. Hello! I would like to set a globl variable that contains several values that I can divide again. Instead of I am createing three different global variables. example local a = "1"; local b = "A"; local c = "!"; fibaro.setGlobalVariable ("Alpha", a ..b ..c) but, in another scene I would like to return these values separately again, divide it into a, b and c separately local Alpha = fibaro.getGlobalVariable ("Alpha") local a = ??; local b = ??; local c = ??; How do I do this most easily?
  10. After having big issues with senes that is getting slow and not always responding. I begun to disable scenes I noticed that if i disable "setglobalvalue" it begun to run faster again and become more stable.
  11. I am having the exact same problem , over 60 devices and about 60 sences as well. But it is getting a problem when you cant disarm hose and open the door. Tried to check activity and resources in hc3 but every thing is normal. I do not feel that a reebot is solving the problem, or it is comming back very fast Tried to disable senes. What i have notice is that i can not chang my poolingtime it is stuck at 404sec. I hope Fibaro plan to FIX THIS ISSUE SOON!
  12. Apax

    QA Update label

    @RH_Dreambox , thanks
  13. Apax

    QA Update label

    @SmartHomeEddy Yes from QA ID 107 to QAs label 95
  14. Apax

    QA Update label

    Hi all ! I would like to update another QA's label. In this case, it's QA with ID 95 and the label is called Doors. Does anyone know if this is possible and what that code might look like. function QuickApp:onInit() self:debug("QuickApp:OnInit") self:updateView("Doors open", "text", Doors) -- would like to update QA ID 95 end
  15. role = output/input (or RGBW lights) solved the problem
×
×
  • Create New...