
Kristiano
Membres confirmés-
Compteur de contenus
87 -
Inscription
-
Dernière visite
Tout ce qui a été posté par Kristiano
-
From a best practise perspective how to proceed creating a trigger for 10 lights at the same time. - 10 single lines. One for each light - Group all 10 lights. Add trigger the group I experience today that a light or two gets missed.
- 12 330 réponses
-
- support
- script lua
-
(et 1 en plus)
Étiqueté avec :
-
I still believe the trigger is slower even with GEA 6.10. Im running the 4.511 Beta. And what's the purpose with - GEA.globalvariables = "GEA_Tasks6"? When "GEA_Tasks" is already available.
- 12 330 réponses
-
- support
- script lua
-
(et 1 en plus)
Étiqueté avec :
-
Running the latest GEA and the latest beta of Fibaro firmware. I get the feeling that GEA is triggering slower. All my "-1", instant triggers are slower. Are my feelings correct?
- 12 330 réponses
-
- support
- script lua
-
(et 1 en plus)
Étiqueté avec :
-
thanks! solved! now I get this API Error and I guess its harmless and still not solved?
- 12 330 réponses
-
- support
- script lua
-
(et 1 en plus)
Étiqueté avec :
-
I now get this... [DEBUG] 20:10:30: Started by event of GEA 6.07 (mode property [302])[DEBUG] 20:10:30: 2018-10-22 20:10:30.573861 [ fatal] Unknown exception: /opt/fibaro/scenes/195.lua:1903: bad argument #1 to 'pairs' (table expected, got number)[DEBUG] 20:10:54: GEA run since 1h 30m - Memory used: 826.05 KB
- 12 330 réponses
-
- support
- script lua
-
(et 1 en plus)
Étiqueté avec :
-
Thanks! despite it’s not a -1 should I still declare it at the top?
- 12 330 réponses
-
- support
- script lua
-
(et 1 en plus)
Étiqueté avec :
-
Question, Id like to check if a global variable is in a certain state for 1h or more. How to do that? eg If Global variable "DoorStatus" is "Open" for 1h or more then trigger push.
- 12 330 réponses
-
- support
- script lua
-
(et 1 en plus)
Étiqueté avec :
-
I try again, - How to check if a global parameter been to a certain value over time. eg. Globalparameter "Noonehome" is "Yes" for more then 30 min, then provide push. - Can i have another scene checking if my GEA scene is running? And then if not send a push. Sometimes my GEA scene crashes and i would like to know since its controling to much to be stopped for long. Thanks!
- 12 330 réponses
-
- support
- script lua
-
(et 1 en plus)
Étiqueté avec :
-
im trying to check if a variable is set to "OPEN" for more then 30 min it will send a push. But can't get it to work This is what I tried. GEA.add({"Global", "ZONE1_STATUS", "OPEN"}, 30*60, "Garagedoor open!")
- 12 330 réponses
-
- support
- script lua
-
(et 1 en plus)
Étiqueté avec :
-
Its not getting triggered. The thing is that "secured" carries value "255" instead of "1". Is this handled? Kristian
- 12 330 réponses
-
- support
- script lua
-
(et 1 en plus)
Étiqueté avec :
-
I kept the "506 secured" as a trigger only. Still can't get anything in the log for the new code. Still my code is triggered. (First 2 GEA lines) GEA.add({"Value", id["UTILITY_DOOR"], 0}, 30*60, "Förrådsdörr olåst >30min") GEA.add({"Value", id["UTILITY_DOOR"], 0}, -1, "", {"HttpRequest", "https://10.0.1.31:8088/spc/area/2/unset", "PUT", ""}) -- tests GEA.add( {"DoorLock", "Value"}, -1, "The door is : {Result}") GEA.add( {"DoorLock", 506, "Value"}, -1, "The door is : {Result}") GEA.add( {"DoorLock", "Secured"}, -1, "The door is : {Result}") GEA.add( {"DoorLock",506, "Secured"}, -1, "The door is : {Result}") [DEBUG] 16:03:17: Started by event of GEA 6.07 (mode property [506]) [DEBUG] 16:03:17: -------------------------------------------------------------------------------- [DEBUG] 16:03:17: @0s [Validation*] #54 [Value, [506,0]][HttpRequest, ["https:\/\/10.0.1.31:8088\/spc\/area\/2\/unset","PUT",""]] [DEBUG] 16:03:17: [Started] #54 [Value, [506,0]][HttpRequest, ["https:\/\/10.0.1.31:8088\/spc\/area\/2\/unset","PUT",""]] [DEBUG] 16:03:17: [action] [HttpRequest, ["https:\/\/10.0.1.31:8088\/spc\/area\/2\/unset","PUT",""]] [DEBUG] 16:03:17: @0s [Validation] #56 [DoorLock, [506,"Value"]] [DEBUG] 16:03:17: @0s [Validation] #58 [DoorLock, [506,"Secured"]] [DEBUG] 16:03:18: STATUS200 - DATA : {"status":"success","data":"null"} [DEBUG] 16:03:21: -------------------------------------------------------------------------------- [DEBUG] 16:03:21: Started by event of GEA 6.07 (mode property [506]) [DEBUG] 16:03:21: -------------------------------------------------------------------------------- [DEBUG] 16:03:21: @0s [Validation] #54 [Value, [506,0]][HttpRequest, ["https:\/\/10.0.1.31:8088\/spc\/area\/2\/unset","PUT",""]] [DEBUG] 16:03:21: @0s [Validation] #56 [DoorLock, [506,"Value"]] [DEBUG] 16:03:21: @0s [Validation] #58 [DoorLock, [506,"Secured"]] [DEBUG] 16:03:24: --------------------------------------------------------------------------------
- 12 330 réponses
-
- support
- script lua
-
(et 1 en plus)
Étiqueté avec :
-
@pepite should I add both 506 value and 506 secured as a trigger on top?
- 12 330 réponses
-
- support
- script lua
-
(et 1 en plus)
Étiqueté avec :
-
I suppose I should add an instant trigger for both 506 value and 506 secured?
- 12 330 réponses
-
- support
- script lua
-
(et 1 en plus)
Étiqueté avec :
-
@nugget So this will be part of next version? Since id like to trigger both for "value" and "secured" by my door. - Secure will control the alarm behind the door - Value will just be used if the door was keept open for a long time Thanks!
- 12 330 réponses
-
- support
- script lua
-
(et 1 en plus)
Étiqueté avec :
-
Correct! I prefer using the secure property since it’s more relevant to the actual status of the the door. Since an open door can be open during brake in. Depends of course what you want to achieve. a disarming alarm trigger makes more sense to the secure but a turning on light is more related to the value property.
- 12 330 réponses
-
- support
- script lua
-
(et 1 en plus)
Étiqueté avec :
-
{"id":506,"name":"Förrådsdörr","roomID":473,"type":"com.fibaro.doorLock","baseType":"com.fibaro.securityMonitoring","enabled":true,"visible":true,"isPlugin":false,"parentId":0,"remoteGatewayId":1,"remoteDeviceID":32,"interfaces":["battery","fibaroFirmwareUpdate","pinCode","remoteGateway","zwave","zwaveAlarm"],"properties":{"alarmLevel":"0","alarmType":"0","batteryLevel":"100","batteryLowNotification":"true","configured":true,"dead":"false","defInterval":"0","deviceControlType":"0","deviceIcon":"1001","emailNotificationID":"0","emailNotificationType":"0","endPointId":"0","firmwareUpdate":"{\"info\":\"\",\"progress\":0,\"status\":\"UpToDate\",\"updateVersion\":\"1.0\"}","liliOffCommand":"","liliOnCommand":"","log":"","logTemp":"","manufacturer":"","markAsDead":"true","maxInterval":"0","maxUsers":"52","minInterval":"0","model":"","nodeId":"2","parameters":[],"parametersTemplate":"0","pollingTimeSec":0,"productInfo":"2,48,0,3,0,1,1,0","pushNotificationID":"0","pushNotificationType":"0","remoteGatewayId":"0","saveLogs":"true","secured":"255","serialNumber":"","smsNotificationID":"0","smsNotificationType":"0","stepInterval":"0","updateVersion":"","useTemplate":"false","userCodes":"[{\"id\":1,\"name\":\"\",\"status\":\"Unknown\",\"update\":\"InProgress\"},{\"id\":2,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":3,\"name\":\"\",\"status\":\"Occupied\",\"update\":\"Ok\"},{\"id\":4,\"name\":\"\",\"status\":\"Occupied\",\"update\":\"Ok\"},{\"id\":5,\"name\":\"\",\"status\":\"Occupied\",\"update\":\"Ok\"},{\"id\":6,\"name\":\"\",\"status\":\"Occupied\",\"update\":\"Ok\"},{\"id\":7,\"name\":\"\",\"status\":\"Occupied\",\"update\":\"Ok\"},{\"id\":8,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":9,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":10,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":11,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":12,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":13,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":14,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":15,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":16,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":17,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":18,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":19,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":20,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":21,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":22,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":23,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":24,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":25,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":26,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":27,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":28,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":29,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":30,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":31,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":32,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":33,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":34,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":35,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":36,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":37,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":38,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":39,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":40,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":41,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":42,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":43,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":44,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":45,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":46,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":47,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":48,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":49,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":50,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":51,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"},{\"id\":52,\"name\":\"\",\"status\":\"Available\",\"update\":\"Ok\"}]","userDescription":"","value":"true","zwaveCompany":"","zwaveInfo":"3,4,5","zwaveVersion":"1.0"},"actions":{"abortUpdate":1,"getMaxUsers":0,"getUserCode":1,"reconfigure":0,"retryUpdate":1,"secure":0,"setInterval":1,"setUserCode":4,"startUpdate":1,"unsecure":0,"updateFirmware":1},"created":1522048282,"modified":1522048282,"sortOrder":161}
- 12 330 réponses
-
- support
- script lua
-
(et 1 en plus)
Étiqueté avec :
-
Thanks! But how to define the different statuses of the door lock in a condition? - Open / closed / unlocked / locked? I'm using "506 secured" in the top properties and then this GEA code and it works great. It seems like the properties of my door lock behaves like this: - Door unsecured with eg pin code-> Property "secured" changes from 255-> 0 - Door opeens -> Property "value" changes from 1-> 0 And then back again Ps. I also guess "Dooorlock" should be "Doorlock"?
- 12 330 réponses
-
- support
- script lua
-
(et 1 en plus)
Étiqueté avec :
-
FYI Something is wrong with the door lock condition. Keep the top property trigger to "506 secured" but changed to condition from "Doorloock" to just a "Value" condition and then it works. What the difference? How should "door lock" work?
- 12 330 réponses
-
- support
- script lua
-
(et 1 en plus)
Étiqueté avec :
-
@Steven I found a misspel of the doorlock in the syntax manual. what Are the conditions for the doorloock? - Door open - Door closed - Door unsecure - Door secure
- 12 330 réponses
-
- support
- script lua
-
(et 1 en plus)
Étiqueté avec :
-
@Steven Sorry, it was a typo. In the top properties I define my lock with id 506. tried both with "506 value" and "506 secured". I want the GEA to trigger upon a unsecured doorlock. Meaning, when I open the door with a successful pin id like to send a HTTP request. Did a new try: This is NOT working: GEA.options.httprequest = { name = "HttpRequest" , action = function(url, method, auth) local selfhttp = net.HTTPClient() selfhttp:request ( url, { options = { method = method, headers = { ['Authorization'] = auth }, }, success = function(status) fibaro:debug("STATUS" .. status.status .. " - DATA : " ..status.data) end, error = function(err) fibaro:debug( "ERROR" .. err) end }) end } GEA.add({"Doorlock", id["UTILITY_DOOR"], 1}, -1, "", {"httprequest", "https://10.0.1.1:8080/set.php", "PUT", ""}) Created a stand alone scene using a function and then it IS working. --[[ %% properties %% globals --]] function httprequest(url, method, auth) local selfhttp = net.HTTPClient() selfhttp:request ( url, { options = { method = method, headers = { ['Authorization'] = auth }, }, success = function(status) fibaro:debug("STATUS" .. status.status .. " - DATA : " ..status.data) end, error = function(err) fibaro:debug( "ERROR" .. err) end }) end httprequest("https://10.0.1.1:8088/set.php","PUT","")
- 12 330 réponses
-
- support
- script lua
-
(et 1 en plus)
Étiqueté avec :
-
Still its not working, The https call is not getting throw. Log in debug is nothing. [DEBUG] 17:42:54: Started by event of GEA 6.07 (mode property [506]) [DEBUG] 17:42:54: -------------------------------------------------------------------------------- [DEBUG] 17:42:54: @0s [Validation] #54 [DoorLock, [506,1]][HttpRequest, ["https:\/\/10.0.1.1:80\/test"]]
- 12 330 réponses
-
- support
- script lua
-
(et 1 en plus)
Étiqueté avec :
-
Ouch! How could i miss that, i will test it right away! Btw. Talking about door locks. All locks seems to be using 2 attributes when they are open/closed. The attribut "value" and "Secure" are changing value i the class lib. I was thinking what GEA is using? If the "value" is used i think its all about if the door is open or closed. Not really securely opened. Since it might be a break-in. Right? So then i guess that the other version would be a trigger if the door lock was securly "opened" with a verified rfid or pin. Not necesearly opening the door.
- 12 330 réponses
-
- support
- script lua
-
(et 1 en plus)
Étiqueté avec :
-
No, nothing. Just the 506 property line and then it shows a validation line.
- 12 330 réponses
-
- support
- script lua
-
(et 1 en plus)
Étiqueté avec :
-
I set debug to 'true', but nothing in log. Only this. I guess its the trigger only? So it is triggered? The reason is that door locks got 2 different attributs, "secure" and "value". I dont really know the difference. I trigger on top using "506 value", and is not sure if this is right. [DEBUG] 17:23:29: -------------------------------------------------------------------------------- [DEBUG] 17:23:29: Started by event of GEA 6.07 (mode property [506]) [DEBUG] 17:23:29: -------------------------------------------------------------------------------- [DEBUG] 17:23:29: @0s [Validation] #54 [DoorLock, [506,1]][HttpRequest, ["https:\/\/10.0.1.1:80\/\/unset"]] Device id 506 is the trigger
- 12 330 réponses
-
- support
- script lua
-
(et 1 en plus)
Étiqueté avec :
-
Great! Now it seems like its calling the code. But there seems to be a problem within the http request. - How come I can't see the return code of the request? It should just call the url with a PUT method, it works if I do it outside of the Fibaro system,
- 12 330 réponses
-
- support
- script lua
-
(et 1 en plus)
Étiqueté avec :