Aller au contenu

Johhny

Membres confirmés
  • Compteur de contenus

    95
  • Inscription

  • Dernière visite

Réputation sur la communauté

3 Neutral

À propos de Johhny

  • Rang
    Membre interessé

Profile Information

  • Sexe :
    Homme
  • Ville :
    Home
  • Box
    Home Center 2
  • Version
    4.160

Visiteurs récents du profil

99 visualisations du profil
  1. Support Gea

    @Steven Works like a charm, thx!
  2. Support Gea

    My bad. Didnt see it at the end. Up and running now. Will replay tomorrow if it works. Thx!
  3. Support Gea

    @Steven Not working. This is what I get. [DEBUG] 23:35:16: Started by event of GEA 6.05 (mode property [294]) [DEBUG] 23:35:16: Option : (Global) is missing
  4. Support Gea

    @Steven Im happly waiting for that feature Take your time. I can live without it for a time. Sadly I cant remove it from the header. Using it for other stuff.
  5. Support Gea

    Maybe a simple question, but I cant find the answer. Using GEA 6.05 This line of code. Sure it works. But it should only be running when I arrive home at night, Not when I home and night comes. I had it working before using IF. GEA.add ({{"Global", "JohhnyHome", "1"}, {"Global", "TimeOfDay", "Night"}}, -1, "", {"VirtualDevice", VD["TTS"], "1"}) Old working line. GEA.add ({"Global", "JohhnyHome", "1"}, -1, "", {{"If", {{"Global", "TimeOfDay", "Night"}}}, {"VirtualDevice", VD["TTS"], "1"})
  6. Working now! system.properties removed my lines on every save. Turned Unifi controller off and added the lines again. Hard reset on HC2 and it runs like a charm. Ty for all your help and time!
  7. Running v5.6.29 now, same thing. Even upgraded my AP and router. Still same error.
  8. Nothing, same error. I removed all the variables and rerun the script. Now Im stuck at login and with the same error. I can login in with the read only account added to the code in the browser without any problem. [DEBUG] 18:52:54: Check if global variable 'Unifi_Cookie' exists [DEBUG] 18:52:54: Global variable "Unifi_Cookie" does not exist [DEBUG] 18:52:54: CreateVG [DEBUG] 18:52:54: {"name":"Unifi_Cookie","isEnum":0,"value":""} [DEBUG] 18:52:54: Global variable "Unifi_Cookie" created [DEBUG] 18:52:54: Check if global variable 'Unifi_LAN_Robert' exists [DEBUG] 18:52:54: Global variable "Unifi_LAN_Robert" does not exist [DEBUG] 18:52:54: CreateVG [DEBUG] 18:52:54: {"name":"Unifi_LAN_Robert","isEnum":0,"value":"0"} [DEBUG] 18:52:54: Global variable "Unifi_LAN_Robert" created [DEBUG] 18:52:54: Check if global variable 'Unifi_LAN_Karin' exists [DEBUG] 18:52:54: Global variable "Unifi_LAN_Karin" does not exist [DEBUG] 18:52:54: CreateVG [DEBUG] 18:52:54: {"name":"Unifi_LAN_Karin","isEnum":0,"value":"0"} [DEBUG] 18:52:54: Global variable "Unifi_LAN_Karin" created [DEBUG] 18:52:54: 20/01/2018 : Scene instance manual launch [DEBUG] 18:52:54: Login [DEBUG] 18:52:54: https://192.168.1.53:8443/api/login [DEBUG] 18:52:54: httpClient:request() : Error : wrong version number
  9. Wierd :/ Have been trying to fix it but with no succes so far. Added some more debug but do only get this. [DEBUG] 16:44:20: GetDevices [DEBUG] 16:44:20: https://192.168.1.53:8443/api/s/default/stat/sta [DEBUG] 16:44:20: httpClient:request() : Error : wrong version number https://192.168.1.53:8443/api/s/default/stat/sta loads without problem if I browse it. And I can see my connected device.
  10. Any chance for an update on this? I get this error. Running 5.6.22. [DEBUG] 21:23:44: httpClient:request() : Error : wrong version number
  11. Support Gea

    @pepite This code.. local extinction = GEA.add (id["KOK_LEDLIST"], 30, "", {{"turnOff", id["KOK_LEDLIST"]}}) GEA.add (id["KOK_LEDLIST"], -1, "", {{"StopTask", extinction}}) Debug give me.. But not always. Sometimes lamp keeps turned on. [DEBUG] 16:03:37: [ 26 | n/a ] Add Property : task added for instant run (ID: 2) [StopTask,1] [DEBUG] 16:03:37: GEA Version 5.42 : Running... [DEBUG] 16:03:37: [ 26 | n/a ] Add Property : task added for instant run (ID: 2) [StopTask,1] [DEBUG] 16:03:37: GEA Version 5.42 : Running... [DEBUG] 16:03:51: GEA Version 5.42 : Running... [DEBUG] 16:03:51: [ 26 | Ledlist kök ] sendActions : doing actions (ID: 1) [turnOff,26] [DEBUG] 16:03:51: [ 26 | Ledlist kök ] sendActions : !ACTION! : turnOff (ID: 1) [turnOff,26] [DEBUG] 16:03:51: [ 26 | Ledlist kök ] Done : task done and suspended (ID: 1) [turnOff,26] [DEBUG] 16:03:51: [ 26 | n/a ] Add Property : task added for instant run (ID: 2) [StopTask,1] JSON {"id":26,"name":"Ledlist kök","roomID":5,"type":"com.fibaro.FGRGBW441M","baseType":"com.fibaro.colorController","enabled":true,"visible":true,"isPlugin":false,"parentId":119,"remoteGatewayId":0,"interfaces":["deviceGrouping","energy","levelChange","light","power","zwave"],"properties":{"parameters":[{"id":1,"lastReportedValue":255,"lastSetValue":255,"size":1,"value":255},{"id":6,"lastReportedValue":2,"lastSetValue":2,"size":1,"value":2},{"id":8,"lastReportedValue":0,"lastSetValue":0,"size":1,"value":0},{"id":9,"lastReportedValue":1,"lastSetValue":1,"size":1,"value":1},{"id":10,"lastReportedValue":10,"lastSetValue":10,"size":2,"value":10},{"id":11,"lastReportedValue":67,"lastSetValue":67,"size":1,"value":67},{"id":12,"lastReportedValue":255,"lastSetValue":255,"size":1,"value":255},{"id":13,"lastReportedValue":2,"lastSetValue":2,"size":1,"value":2},{"id":14,"lastReportedValue":4369,"lastSetValue":4369,"size":2,"value":4369},{"id":15,"lastReportedValue":1,"lastSetValue":1,"size":1,"value":1},{"id":16,"lastReportedValue":1,"lastSetValue":1,"size":1,"value":1},{"id":30,"lastReportedValue":0,"lastSetValue":0,"size":1,"value":0},{"id":38,"lastReportedValue":10,"lastSetValue":10,"size":1,"value":10},{"id":39,"lastReportedValue":600,"lastSetValue":600,"size":2,"value":600},{"id":42,"lastReportedValue":2,"lastSetValue":2,"size":1,"value":2},{"id":44,"lastReportedValue":30,"lastSetValue":30,"size":2,"value":30},{"id":45,"lastReportedValue":10,"lastSetValue":10,"size":1,"value":10},{"id":71,"lastReportedValue":1,"lastSetValue":1,"size":1,"value":1},{"id":73,"lastReportedValue":0,"lastSetValue":0,"size":1,"value":0}],"pollingTimeSec":0,"zwaveCompany":"Fibar Group","zwaveInfo":"3,3,52","zwaveVersion":"","associationMode":"2","b":"0","brightness":"99","buttonType":"0","color":"255,255,0,255","configured":"true","currentProgram":"0","currentProgramID":"0","dead":"false","deviceControlType":"50","deviceGroup":"[]","deviceGroupMaster":"0","deviceIcon":"15","emailNotificationID":"0","emailNotificationType":"0","endPointId":"0","energy":"60.27","favoriteProgram":"0","g":"0","isLight":"false","lastColorSet":"255,255,0,255","lastUsedPrograms":"0,0,0,0,0","liliOffCommand":"","liliOnCommand":"","log":"","logTemp":"","manufacturer":"","markAsDead":"true","mode":"0","model":"","nodeId":"12","parametersTemplate":"231","power":"16.80","productInfo":"","programsSortOrder":"1,2,3,4,5","pushNotificationID":"0","pushNotificationType":"0","r":"0","rememberColor":"true","remoteGatewayId":"0","saveLogs":"true","serialNumber":"","showEnergy":"true","smsNotificationID":"0","smsNotificationType":"0","unit":"W","useTemplate":"true","userDescription":"","value":"100","w":"0"},"actions":{"reconfigure":0,"reset":0,"setB":1,"setBrightness":1,"setColor":1,"setFavoriteProgram":2,"setG":1,"setR":1,"setValue":1,"setW":1,"startLevelDecrease":0,"startLevelIncrease":0,"startProgram":1,"stopLevelChange":0,"turnOff":0,"turnOn":0},"created":1484581288,"modified":1484581288,"sortOrder":8} @Steven GEA_Tasks is there and seems to work Gives me these. |R_2|, |2|, |R_1| -- local extinction = GEA.add (id["KOK_LEDLIST"], 30, "", {{"turnOff", id["KOK_LEDLIST"]}}) -- local detection = GEA.add (id["KOK_RORELSE"], -1, "", {{"turnOn", id["KOK_LEDLIST"]}, {"RestartTask", extinction}}) -- GEA.add (id["KOK_LEDLIST"], -1, "", {{"StopTask", extinction}, {"StopTask", detection}}) -- GEA.add (id["KOK_LEDLIST"], -1, "", {{"Inverse"}, {"RestartTask", detection}})
  12. Support Gea

    -- local extinction = GEA.add (id["KOK_LEDLIST"], 30, "", {{"turnOff", id["KOK_LEDLIST"]}}) -- --local detection = GEA.add (id["KOK_RORELSE"], -1, "", {{"turnOn", id["KOK_LEDLIST"]}, {"RestartTask", extinction}}) -- GEA.add (id["KOK_LEDLIST"], -1, "", {{"StopTask", extinction}, {"StopTask", detection}}) -- GEA.add (id["KOK_LEDLIST"], -1, "", {{"Inverse"}, {"RestartTask", detection}}) The name isnt really LAMP but I thought it would be better to write LAMP instead of the Swedish word Above is the code i run for the debug in the last post 26 = Fibaro RGB Driver. 409 = Fibaro Motion Sensor. After turning it on manually its automatically turning off after 21 seconds, like the debug shows.
  13. Support Gea

    IDs on top --[[ %% autostart %% properties 409 value 26 value %% globals --]] This is the debug I got. I added 30 seconds again becouse of your example. [DEBUG] 20:29:54: GEA Version 5.42 : Running... [DEBUG] 20:30:03: [ 26 | n/a ] Add Property : task added for instant run (ID: 2) [StopTask,1] [StopTask] [DEBUG] 20:30:03: [ 26 | n/a ] Add Property : task added for instant run (ID: 3) [Inverse] [RestartTask] [DEBUG] 20:30:03: GEA Version 5.42 : Running... [DEBUG] 20:30:03: [ 26 | n/a ] Add Property : task added for instant run (ID: 2) [StopTask,1] [StopTask] [DEBUG] 20:30:03: [ 26 | n/a ] Add Property : task added for instant run (ID: 3) [Inverse] [RestartTask] [DEBUG] 20:30:03: GEA Version 5.42 : Running... [DEBUG] 20:30:03: [ 26 | n/a ] sendActions : doing actions (ID: 3) [Inverse] [RestartTask] [DEBUG] 20:30:03: [ 26 | n/a ] sendActions : doing actions (ID: 3) [Inverse] [RestartTask] [DEBUG] 20:30:24: [ 26 | LAMP ] sendActions : doing actions (ID: 1) [turnOff,26] [DEBUG] 20:30:24: [ 26 | LAMP ] sendActions : !ACTION! : turnOff (ID: 1) [turnOff,26] [DEBUG] 20:30:24: [ 26 | LAMP ] Done : task done and suspended (ID: 1) [turnOff,26] [DEBUG] 20:30:24: [ 26 | n/a ] Add Property : task added for instant run (ID: 2) [StopTask,1] [StopTask] [DEBUG] 20:30:24: [ 26 | n/a ] Add Property : task added for instant run (ID: 3) [Inverse] [RestartTask]
  14. Support Gea

    2*60 seconds are set now. This is the debug I get when movement is detected and the light is turned off. [DEBUG] 19:56:46: GEA Version 5.42 : Running... [DEBUG] 19:56:46: [ 409 | n/a ] sendActions : doing actions (ID: 2) [turnOn,26] [RestartTask,1] [DEBUG] 19:56:46: [ 409 | n/a ] sendActions : !ACTION! : turnOn (ID: 2) [turnOn,26] [RestartTask,1] [DEBUG] 19:56:46: [ 409 | n/a ] sendActions : !ACTION! : Restart 1 (ID: 2) [turnOn,26] [RestartTask,1] [DEBUG] 19:56:55: [ 409 | n/a ] Add Property : task added for instant run (ID: 2) [turnOn,26] [RestartTask,1] [DEBUG] 19:56:55: GEA Version 5.42 : Running... [DEBUG] 19:56:57: [ 26 | n/a ] Add Property : task added for instant run (ID: 3) [StopTask,1] [StopTask,2] [DEBUG] 19:56:57: [ 26 | n/a ] Add Property : task added for instant run (ID: 4) [Inverse] [RestartTask,2] [DEBUG] 19:56:57: GEA Version 5.42 : Running... [DEBUG] 19:56:57: [ 26 | n/a ] sendActions : doing actions (ID: 4) [Inverse] [RestartTask,2] [DEBUG] 19:56:57: [ 26 | n/a ] sendActions : !ACTION! : Restart 2 (ID: 4) [Inverse] [RestartTask,2] [DEBUG] 19:57:14: [ 26 | LAMP ] Check : Restart (ID: 1) [turnOff,26] If I manual turn it off I get this debug. [DEBUG] 19:56:57: GEA Version 5.42 : Running... [DEBUG] 19:56:57: [ 26 | n/a ] sendActions : doing actions (ID: 4) [Inverse] [RestartTask,2] [DEBUG] 19:56:57: [ 26 | n/a ] sendActions : !ACTION! : Restart 2 (ID: 4) [Inverse] [RestartTask,2] [DEBUG] 19:57:14: [ 26 | LAMP ] Check : Restart (ID: 1) [turnOff,26]
  15. Support Gea

    Everything over 30 sec stops the auto turn off. Everything under 30 stops the light in 5-15 sec.
×