Aller au contenu

Johhny

Membres confirmés
  • Compteur de contenus

    84
  • Inscription

  • Dernière visite

Réputation sur la communauté

0 Neutral

À propos de Johhny

  • Rang
    Membre interessé

Profile Information

  • Sexe :
    Homme
  • Ville :
    Home
  • Box
    Home Center 2
  • Version
    4.110
  1. 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}})
  2. 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.
  3. 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]
  4. 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]
  5. Support Gea

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

    GEA.checkEvery its still 30 sec. No change there. Do you have any clue why 2*60 wont work? I will try 31 sec and see whats happen
  7. Support Gea

    First I would like to say thank you for every good bit of code I have snap from here even if my main language isnt France. I have tried out this script for a while now. I get how its build but I can get it to work like I want. -- local extinction = GEA.add (id["LAMP"], 30, "", {{"turnOff", id["LAMP"]}}) -- local detection = GEA.add (id["MOVEMENT"], -1,"", {{"turnOn", id["LAMP"]}, {"RestartTask", extinction}}) -- GEA.add (id["LAMP"], -1, "", {{"StopTask", extinction}, {"StopTask", detection}}) -- GEA.add (id["LAMP"], -1, "", {{"Inverse"}, {"RestartTask", detection}}) It works but not very good. The 30 sec bit never works correct. Its more like 5-20 sec before the light turns off. If I change it to 60 sec or 2*60 it never turns off. I guess this part "{"RestartTask", extinction}})" restarts "local extinction" every time movement is trigged. Do it work like this code {{"Inverse"}, {"turnOff", id["LAMP"]}}) ? But I cant get it to work. Lamp first turn off then diretly turns on again if thiers movement. I have aslo tried this code, see first row. But thats fucks the code up a bit, row 3 and 4 isnt working But the 2*60 bit works. -- local extinction = GEA.add (id["MOVEMENT"], 2*60, "", {{"Inverse"}, {"turnOff", id["LAMP"]}}) -- local detection = GEA.add (id["MOVEMENT"], -1,"", {{"turnOn", id["LAMP"]}, {"RestartTask", extinction}}) -- GEA.add (id["LAMP"], -1, "", {{"StopTask", extinction}, {"StopTask", detection}}) -- GEA.add (id["LAMP"], -1, "", {{"Inverse"}, {"RestartTask", detection}})
×