Aller au contenu

Messages recommandés

Posté(e)
Il y a 20 heures, 971jmd a dit :

salut a tous

 

je cherche une solution pour réaliser une incrémentation de +25 

 

 chaque foi que je clique sur une bouton d'un VD (click1) je souhaite incrémenter la variable RESUL de +25

 


GEA.add ({"Global", "CLICK1", "1"}, -1, "", {{"Global", "RESUL", "????"}}) 

 

 

Perso, cela fonctionne chez moi 

GEA.add ({"Global", "CLICK1", "1"}, -1, "", {{"Global", "RESUL", "inc+25"}}) 

 

  • Upvote 1
Posté(e)
il y a 5 minutes, pepite a dit :

Hi, 

 

Nothing in the debug ? 

 

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]

 

Posté(e)
Le 18/01/2017 à 17:56, Johhny a dit :

-- local extinction = GEA.add (id["LAMP"], 30, "", {{"turnOff", id["LAMP"]}}) --

2 things : 

 - have you put the ID of the LAMP under properties ? 

 - try only with the line over and turnOn manually the lamp

Posté(e)

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]

 

Posté(e)

26 : LAMP ? 

 

And what happens ? 

have you tried with 1 line the extinction ? and turnOn manually ? the LAMP turns OFF ?

Posté(e)
	-- 
	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.

Posté(e)

hi @Johhny,

 

Ok, The 21 seconds is not surprising and not a problem.

 

I think the problem  is around the stoptask

 

 

Could you try only this code and turn on manually


 

local extinction = GEA.add (id["KOK_LEDLIST"], 30, "", {{"turnOff", id["KOK_LEDLIST"]}})

GEA.add (id["KOK_LEDLIST"], -1, "", {{"StopTask", extinction}})

Could you give us the JSON of RGB please, because i don't undersatnd what happens ;-) ?

http://IPHC2/api/devices/26

 

Posté(e)

Bien vu master, j'y avais pas pensé. J'ai compris que tout le reste de son GEA fonctionnait ;-) mais je ne me suis pas dit que c'etait sa 1ere fois pour les restart

Merci

Posté(e)

@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}})

 

Posté(e) (modifié)

Bien bonjours a tous.

 

j'ai un petit souci 

 

 

je souhait envoyer la capture de la camera au compte ID314 qui n'est pas un compte administrateur.

 

pour info: quand je teste avec ID2 qui le compte administrateur ça fonctionne bien

et l'adresse du 314 est valide

 

GEA.add({"Global", "cam", "1"}, -1, "camera ext1", {{"picture", id["CAMERA"], 314}})

  

 

[DEBUG] 00:48:47: [ siri=3 ] Add Global : ajout de la tâche pour lancement instantané (ID: 1) [picture,98,314] [Email,314]
[DEBUG] 00:48:47: GEA Version 5.40 : en exécution...
[DEBUG] 00:48:47: [ siri=3 ] sendActions : traitement des actions (ID: 1) [picture,98,314] [Email,314]
[DEBUG] 00:48:47: [ siri=3 ] sendActions : !ACTION! : email picture from camera 98 to 314 (ID: 1) [picture,98,314] [Email,314]
[DEBUG] 00:48:47: [ siri=3 ] sendActions : !ACTION! : email to 314 (ID: 1) [picture,98,314] [Email,314]
[DEBUG] 00:48:47: [ siri=3 ] sendActions : !ACTION! : sendPush camera (ID: 1) [picture,98,314] [Email,314]
[DEBUG] 00:48:47: [ siri=3 ] sendActions : !ACTION! : sendPush camera (ID: 1) [picture,98,314] [Email,314]

 

Modifié par 971jmd
Posté(e)

ça fonctionne tres bien avec xxx@gamil.com , xxx@icloud.com..... sauf xxx@orange.fr

 

la question ça viens de GEA ou den la HC2

Posté(e) (modifié)

messieurs,

 

petite demande

 

    GEA.add({id["MOV_COULOIR"],{"Value+", id["ECL_ESCALIER"],50},{"Value-",id["LUM_SDB_HAUT"],50}}, 5*60, "Extinction Lumière escalier, car allumée depuis #duration#", {{"Inverse"},{"Value", id["ECL_ESCALIER"],0},{"Repeat"}})

l'idée c'est si plus aucune detection dans le couloir, et que la lumière de l'escalier est allumé et que la lumière de la salle de bain est OFF alors on éteint la lumière de l'escalier après 5mn.

 

la lumiere escalier est un dimmer donc le value+ marche

par contre la lumière de la sdb est sur un FGS212 et donc j'ai un probleme avec ce value- ca marche pas.

 

comment dire "si lumière seb est OFF" ? value, id, 0 ?

merci

 

EDIT : ok c'était ca...

Modifié par Sakkhho
Posté(e) (modifié)

tu à déclarer dans l'entête  LUM_SDB_HAUT   ?

 

si je comprend bien  : Detection si ECL_ESCALIER +50% et si LUM_SDB_HAUT -50%

Modifié par 971jmd
Posté(e)
Le 1/9/2017 à 08:28, Steven a dit :

Hi @UKCamaroSS,

 

 

{"Time", "19:30"} is not enough, syntax is {"Time", <start>, <end>} so you have to write {"Time", "19:30", "19:30"}

 

 

This should work because this line means : 

If the module 96 is ON more than 10mn, turn it OFF.

 

Try it again once you have corrected the previous error with the {"Time", "19:30", "19:30"}

 

Btw, welcome in GEA :60:

 

 

Thank you very much - I have now got that to work.

 

However, I am stuck with the following:

 

I want to have the virtual device #41 button #6 pressed only if all 3 Global Variables match (Global Blinds Closed, Global Darkness 0, Global DemoMode No)

 

This is what I have tried:

local condition = {"If",{{"Global", "Blinds", "Closed"},{"Global", "Darkness", "0"},{"Global", "DemoMode", "No"}}}
GEA.add("VirtualDevice", 41, 6, "The Rear Kitchen Blinds have been opened at sunrise", condition)

 

I get the following error:

[Debug] 18:16:18 line 245: attempt to index field '?' (a nil value)

 

What am I doing wrong?

 

Thank you

Posté(e)

Hell @UKCamaroSS,

 

you have some syntax error.

Keep in mind :
 

GEA.add(condition, time, message, options)

With syntax

GEA.add({condition}, time, "message", {{options}})

You can write in 1 line like this

 

GEA.add({{"Global", "Blinds", "Closed"}, {"Global", "Darkness", "0"}, {"Global", "DemoMode", "No"}}, 30,  "The Rear Kitchen Blinds have been opened at sunrise", {{"VirtualDevice", 41, 6}}) 

 

Posté(e)

salut a tous

 

un petit probleme 

 

je cherche a incrémenté un variable à chaque foi que le volet s'ouvre

 GEA.add({"Value+", id["VOLET"], 1},  -1, "", {{"Global", "OUVRT_VL", "inc%+"}})

mai ça ne fonctionne pas et j'ai bien déclarer dans l'entête ID du volet

 

[DEBUG] 14:07:29: GEA Version 5.40 : en exécution...
[DEBUG] 14:07:29: [ n/a ] sendActions : traitement des actions (ID: 1) [Global,OUVRT_VL,inc%+]
[DEBUG] 14:07:29: [ n/a ] !!! ERREUR !!! : vérification (ID: 1) [Global,OUVRT_VL,inc%+]

 

×
×
  • Créer...