Aller au contenu

Messages recommandés

Posté(e)

Oups pardon, effectivement ça ne fonctionne pas comme ça dans les VD, essaye ça et regarde dans le debug :

local ipx_ip = "XXX.XXX.XXX.XXX" -- ip de ton IPX800
local ipx_relais = "X" -- numéro du relais que tu veux checker
local status = ""
 
HC2 = Net.FHttp(ipx_ip)
response = HC2:GET("/api/xdevices.json?cmd=20")
fibaro:debug(response)

string.gsub(response, "OUT"..ipx_relais.."\":(%d+)", function(d) status = status .. d end)
		if (status == "1") then
			fibaro:debug("Le relais est ON")
		else
			fibaro:debug("Le relais est OFF")
		end
Posté(e)
[DEBUG] 21:53:08: {"product":"IPX800_V3","OUT1":0,"OUT2":0,"OUT3":0,"OUT4":0,"OUT5":0,"OUT6":0,"OUT7":0,"OUT8":0,"OUT9":0,"OUT10":0,"OUT11":0,"OUT12":0,"OUT13":0,"OUT14":0,"OUT15":0,"OUT16":0,"OUT17":0,"OUT18":0,"OUT19":0,"OUT20":0,"OUT21":0,"OUT22":0,"OUT23":0,"OUT24":0,"OUT25":0,"OUT26":0,"OUT27":0,"OUT28":0,"OUT29":0,"OUT30":0,"OUT31":0,"OUT32":0}
[DEBUG] 21:53:08: Le relais est OFF
[DEBUG] 21:53:11: {"product":"IPX800_V3","OUT1":0,"OUT2":0,"OUT3":0,"OUT4":0,"OUT5":0,"OUT6":0,"OUT7":0,"OUT8":0,"OUT9":0,"OUT10":0,"OUT11":0,"OUT12":0,"OUT13":0,"OUT14":0,"OUT15":0,"OUT16":0,"OUT17":0,"OUT18":0,"OUT19":0,"OUT20":0,"OUT21":0,"OUT22":0,"OUT23":0,"OUT24":0,"OUT25":0,"OUT26":0,"OUT27":0,"OUT28":0,"OUT29":0,"OUT30":0,"OUT31":0,"OUT32":0}
[DEBUG] 21:53:11: Le relais est OFF
[DEBUG] 21:53:14: {"product":"IPX800_V3","OUT1":0,"OUT2":0,"OUT3":0,"OUT4":0,"OUT5":0,"OUT6":0,"OUT7":0,"OUT8":0,"OUT9":0,"OUT10":0,"OUT11":0,"OUT12":0,"OUT13":0,"OUT14":0,"OUT15":0,"OUT16":0,"OUT17":0,"OUT18":0,"OUT19":0,"OUT20":0,"OUT21":0,"OUT22":0,"OUT23":0,"OUT24":0,"OUT25":0,"OUT26":0,"OUT27":0,"OUT28":0,"OUT29":0,"OUT30":0,"OUT31":0,"OUT32":0}
[DEBUG] 21:53:14: Le relais est OFF
[DEBUG] 21:53:17: {"product":"IPX800_V3","OUT1":0,"OUT2":0,"OUT3":0,"OUT4":0,"OUT5":0,"OUT6":0,"OUT7":0,"OUT8":0,"OUT9":0,"OUT10":0,"OUT11":0,"OUT12":0,"OUT13":0,"OUT14":0,"OUT15":0,"OUT16":0,"OUT17":0,"OUT18":0,"OUT19":0,"OUT20":0,"OUT21":0,"OUT22":0,"OUT23":0,"OUT24":0,"OUT25":0,"OUT26":0,"OUT27":0,"OUT28":0,"OUT29":0,"OUT30":0,"OUT31":0,"OUT32":0}
[DEBUG] 21:53:17: Le relais est OFF
[DEBUG] 21:53:20: {"product":"IPX800_V3","OUT1":0,"OUT2":0,"OUT3":0,"OUT4":0,"OUT5":0,"OUT6":0,"OUT7":0,"OUT8":0,"OUT9":0,"OUT10":0,"OUT11":0,"OUT12":0,"OUT13":0,"OUT14":0,"OUT15":0,"OUT16":0,"OUT17":0,"OUT18":0,"OUT19":0,"OUT20":0,"OUT21":0,"OUT22":0,"OUT23":0,"OUT24":0,"OUT25":0,"OUT26":0,"OUT27":0,"OUT28":0,"OUT29":0,"OUT30":0,"OUT31":0,"OUT32":0}
[DEBUG] 21:53:20: Le relais est OFF
[DEBUG] 21:53:23: {"product":"IPX800_V3","OUT1":0,"OUT2":0,"OUT3":0,"OUT4":0,"OUT5":0,"OUT6":0,"OUT7":0,"OUT8":0,"OUT9":0,"OUT10":0,"OUT11":0,"OUT12":0,"OUT13":0,"OUT14":0,"OUT15":0,"OUT16":0,"OUT17":0,"OUT18":0,"OUT19":0,"OUT20":0,"OUT21":0,"OUT22":0,"OUT23":0,"OUT24":0,"OUT25":0,"OUT26":0,"OUT27":0,"OUT28":0,"OUT29":0,"OUT30":0,"OUT31":0,"OUT32":0}
[DEBUG] 21:53:23: Le relais est OFF
[DEBUG] 21:53:26: {"product":"IPX800_V3","OUT1":0,"OUT2":0,"OUT3":0,"OUT4":0,"OUT5":0,"OUT6":0,"OUT7":0,"OUT8":0,"OUT9":0,"OUT10":0,"OUT11":0,"OUT12":0,"OUT13":0,"OUT14":0,"OUT15":0,"OUT16":0,"OUT17":0,"OUT18":0,"OUT19":0,"OUT20":0,"OUT21":0,"OUT22":0,"OUT23":0,"OUT24":0,"OUT25":0,"OUT26":0,"OUT27":0,"OUT28":0,"OUT29":0,"OUT30":0,"OUT31":0,"OUT32":0}
[DEBUG] 21:53:26: Le relais est OFF
[DEBUG] 21:53:30: {"product":"IPX800_V3","OUT1":0,"OUT2":0,"OUT3":0,"OUT4":0,"OUT5":0,"OUT6":0,"OUT7":0,"OUT8":0,"OUT9":0,"OUT10":0,"OUT11":0,"OUT12":0,"OUT13":0,"OUT14":0,"OUT15":0,"OUT16":0,"OUT17":0,"OUT18":0,"OUT19":0,"OUT20":0,"OUT21":0,"OUT22":0,"OUT23":0,"OUT24":0,"OUT25":0,"OUT26":0,"OUT27":0,"OUT28":0,"OUT29":0,"OUT30":0,"OUT31":0,"OUT32":0}
[DEBUG] 21:53:30: Le relais est OFF
[DEBUG] 21:53:33: {"product":"IPX800_V3","OUT1":0,"OUT2":0,"OUT3":0,"OUT4":0,"OUT5":0,"OUT6":0,"OUT7":0,"OUT8":0,"OUT9":0,"OUT10":0,"OUT11":0,"OUT12":0,"OUT13":0,"OUT14":0,"OUT15":0,"OUT16":0,"OUT17":0,"OUT18":0,"OUT19":0,"OUT20":0,"OUT21":0,"OUT22":0,"OUT23":0,"OUT24":0,"OUT25":0,"OUT26":0,"OUT27":0,"OUT28":0,"OUT29":0,"OUT30":0,"OUT31":0,"OUT32":0}
[DEBUG] 21:53:33: Le relais est OFF
[DEBUG] 21:53:36: {"product":"IPX800_V3","OUT1":0,"OUT2":0,"OUT3":0,"OUT4":0,"OUT5":0,"OUT6":0,"OUT7":0,"OUT8":0,"OUT9":0,"OUT10":0,"OUT11":0,"OUT12":0,"OUT13":0,"OUT14":0,"OUT15":0,"OUT16":0,"OUT17":0,"OUT18":0,"OUT19":0,"OUT20":0,"OUT21":0,"OUT22":0,"OUT23":0,"OUT24":0,"OUT25":0,"OUT26":0,"OUT27":0,"OUT28":0,"OUT29":0,"OUT30":0,"OUT31":0,"OUT32":0}
[DEBUG] 21:53:36: Le relais est OFF
[DEBUG] 21:53:39: {"product":"IPX800_V3","OUT1":0,"OUT2":0,"OUT3":0,"OUT4":0,"OUT5":0,"OUT6":0,"OUT7":0,"OUT8":0,"OUT9":0,"OUT10":0,"OUT11":0,"OUT12":0,"OUT13":0,"OUT14":0,"OUT15":0,"OUT16":0,"OUT17":0,"OUT18":0,"OUT19":0,"OUT20":0,"OUT21":0,"OUT22":0,"OUT23":0,"OUT24":0,"OUT25":0,"OUT26":0,"OUT27":0,"OUT28":0,"OUT29":0,"OUT30":0,"OUT31":0,"OUT32":0}
[DEBUG] 21:53:39: Le relais est OFF
[DEBUG] 21:53:42: {"product":"IPX800_V3","OUT1":0,"OUT2":0,"OUT3":0,"OUT4":0,"OUT5":0,"OUT6":0,"OUT7":0,"OUT8":0,"OUT9":0,"OUT10":0,"OUT11":0,"OUT12":0,"OUT13":0,"OUT14":0,"OUT15":0,"OUT16":0,"OUT17":0,"OUT18":0,"OUT19":0,"OUT20":0,"OUT21":0,"OUT22":0,"OUT23":0,"OUT24":0,"OUT25":0,"OUT26":0,"OUT27":0,"OUT28":0,"OUT29":0,"OUT30":0,"OUT31":0,"OUT32":0}
[DEBUG] 21:53:42: Le relais est OFF
[DEBUG] 21:53:46: {"product":"IPX800_V3","OUT1":0,"OUT2":0,"OUT3":0,"OUT4":0,"OUT5":0,"OUT6":0,"OUT7":0,"OUT8":0,"OUT9":0,"OUT10":0,"OUT11":0,"OUT12":0,"OUT13":0,"OUT14":0,"OUT15":0,"OUT16":0,"OUT17":0,"OUT18":0,"OUT19":0,"OUT20":0,"OUT21":0,"OUT22":0,"OUT23":0,"OUT24":0,"OUT25":0,"OUT26":0,"OUT27":0,"OUT28":0,"OUT29":0,"OUT30":0,"OUT31":0,"OUT32":0}
[DEBUG] 21:53:46: Le relais est OFF
[DEBUG] 21:53:49: {"product":"IPX800_V3","OUT1":0,"OUT2":0,"OUT3":0,"OUT4":0,"OUT5":0,"OUT6":0,"OUT7":0,"OUT8":0,"OUT9":0,"OUT10":0,"OUT11":0,"OUT12":0,"OUT13":0,"OUT14":0,"OUT15":0,"OUT16":0,"OUT17":0,"OUT18":0,"OUT19":0,"OUT20":0,"OUT21":0,"OUT22":0,"OUT23":0,"OUT24":0,"OUT25":0,"OUT26":0,"OUT27":0,"OUT28":0,"OUT29":0,"OUT30":0,"OUT31":0,"OUT32":0}
[DEBUG] 21:53:49: Le relais est OFF
[DEBUG] 21:53:52: {"product":"IPX800_V3","OUT1":0,"OUT2":0,"OUT3":0,"OUT4":0,"OUT5":0,"OUT6":0,"OUT7":0,"OUT8":0,"OUT9":0,"OUT10":0,"OUT11":0,"OUT12":0,"OUT13":0,"OUT14":0,"OUT15":0,"OUT16":0,"OUT17":0,"OUT18":0,"OUT19":0,"OUT20":0,"OUT21":0,"OUT22":0,"OUT23":0,"OUT24":0,"OUT25":0,"OUT26":0,"OUT27":0,"OUT28":0,"OUT29":0,"OUT30":0,"OUT31":0,"OUT32":0}
[DEBUG] 21:53:52: Le relais est OFF
[DEBUG] 21:53:55: {"product":"IPX800_V3","OUT1":0,"OUT2":0,"OUT3":0,"OUT4":0,"OUT5":0,"OUT6":0,"OUT7":0,"OUT8":0,"OUT9":0,"OUT10":0,"OUT11":0,"OUT12":0,"OUT13":0,"OUT14":0,"OUT15":0,"OUT16":0,"OUT17":0,"OUT18":0,"OUT19":0,"OUT20":0,"OUT21":0,"OUT22":0,"OUT23":0,"OUT24":0,"OUT25":0,"OUT26":0,"OUT27":0,"OUT28":0,"OUT29":0,"OUT30":0,"OUT31":0,"OUT32":0}
[DEBUG] 21:53:55: Le relais est OFF
[DEBUG] 21:53:58: {"product":"IPX800_V3","OUT1":0,"OUT2":0,"OUT3":0,"OUT4":0,"OUT5":0,"OUT6":0,"OUT7":0,"OUT8":0,"OUT9":0,"OUT10":0,"OUT11":0,"OUT12":0,"OUT13":0,"OUT14":0,"OUT15":0,"OUT16":0,"OUT17":0,"OUT18":0,"OUT19":0,"OUT20":0,"OUT21":0,"OUT22":0,"OUT23":0,"OUT24":0,"OUT25":0,"OUT26":0,"OUT27":0,"OUT28":0,"OUT29":0,"OUT30":0,"OUT31":0,"OUT32":0}
[DEBUG] 21:53:58: Le relais est OFF
[DEBUG] 21:54:01: {"product":"IPX800_V3","OUT1":0,"OUT2":0,"OUT3":0,"OUT4":1,"OUT5":0,"OUT6":0,"OUT7":0,"OUT8":0,"OUT9":0,"OUT10":0,"OUT11":0,"OUT12":0,"OUT13":0,"OUT14":0,"OUT15":0,"OUT16":0,"OUT17":0,"OUT18":0,"OUT19":0,"OUT20":0,"OUT21":0,"OUT22":0,"OUT23":0,"OUT24":0,"OUT25":0,"OUT26":0,"OUT27":0,"OUT28":0,"OUT29":0,"OUT30":0,"OUT31":0,"OUT32":0}
[DEBUG] 21:54:01: Le relais est ON
[DEBUG] 21:54:05: {"product":"IPX800_V3","OUT1":0,"OUT2":0,"OUT3":0,"OUT4":1,"OUT5":0,"OUT6":0,"OUT7":0,"OUT8":0,"OUT9":0,"OUT10":0,"OUT11":0,"OUT12":0,"OUT13":0,"OUT14":0,"OUT15":0,"OUT16":0,"OUT17":0,"OUT18":0,"OUT19":0,"OUT20":0,"OUT21":0,"OUT22":0,"OUT23":0,"OUT24":0,"OUT25":0,"OUT26":0,"OUT27":0,"OUT28":0,"OUT29":0,"OUT30":0,"OUT31":0,"OUT32":0}
[DEBUG] 21:54:05: Le relais est ON
[DEBUG] 21:54:08: {"product":"IPX800_V3","OUT1":0,"OUT2":0,"OUT3":0,"OUT4":1,"OUT5":0,"OUT6":0,"OUT7":0,"OUT8":0,"OUT9":0,"OUT10":0,"OUT11":0,"OUT12":0,"OUT13":0,"OUT14":0,"OUT15":0,"OUT16":0,"OUT17":0,"OUT18":0,"OUT19":0,"OUT20":0,"OUT21":0,"OUT22":0,"OUT23":0,"OUT24":0,"OUT25":0,"OUT26":0,"OUT27":0,"OUT28":0,"OUT29":0,"OUT30":0,"OUT31":0,"OUT32":0}
[DEBUG] 21:54:08: Le relais est ON
[DEBUG] 21:54:11: {"product":"IPX800_V3","OUT1":0,"OUT2":0,"OUT3":0,"OUT4":1,"OUT5":0,"OUT6":0,"OUT7":0,"OUT8":0,"OUT9":0,"OUT10":0,"OUT11":0,"OUT12":0,"OUT13":0,"OUT14":0,"OUT15":0,"OUT16":0,"OUT17":0,"OUT18":0,"OUT19":0,"OUT20":0,"OUT21":0,"OUT22":0,"OUT23":0,"OUT24":0,"OUT25":0,"OUT26":0,"OUT27":0,"OUT28":0,"OUT29":0,"OUT30":0,"OUT31":0,"OUT32":0}
[DEBUG] 21:54:11: Le relais est ON
[DEBUG] 21:54:14: {"product":"IPX800_V3","OUT1":0,"OUT2":0,"OUT3":0,"OUT4":1,"OUT5":0,"OUT6":0,"OUT7":0,"OUT8":0,"OUT9":0,"OUT10":0,"OUT11":0,"OUT12":0,"OUT13":0,"OUT14":0,"OUT15":0,"OUT16":0,"OUT17":0,"OUT18":0,"OUT19":0,"OUT20":0,"OUT21":0,"OUT22":0,"OUT23":0,"OUT24":0,"OUT25":0,"OUT26":0,"OUT27":0,"OUT28":0,"OUT29":0,"OUT30":0,"OUT31":0,"OUT32":0}
[DEBUG] 21:54:14: Le relais est ON
[DEBUG] 21:54:17: {"product":"IPX800_V3","OUT1":0,"OUT2":0,"OUT3":0,"OUT4":1,"OUT5":0,"OUT6":0,"OUT7":0,"OUT8":0,"OUT9":0,"OUT10":0,"OUT11":0,"OUT12":0,"OUT13":0,"OUT14":0,"OUT15":0,"OUT16":0,"OUT17":0,"OUT18":0,"OUT19":0,"OUT20":0,"OUT21":0,"OUT22":0,"OUT23":0,"OUT24":0,"OUT25":0,"OUT26":0,"OUT27":0,"OUT28":0,"OUT29":0,"OUT30":0,"OUT31":0,"OUT32":0}
[DEBUG] 21:54:17: Le relais est ON
[DEBUG] 21:54:20: {"product":"IPX800_V3","OUT1":0,"OUT2":0,"OUT3":0,"OUT4":1,"OUT5":0,"OUT6":0,"OUT7":0,"OUT8":0,"OUT9":0,"OUT10":0,"OUT11":0,"OUT12":0,"OUT13":0,"OUT14":0,"OUT15":0,"OUT16":0,"OUT17":0,"OUT18":0,"OUT19":0,"OUT20":0,"OUT21":0,"OUT22":0,"OUT23":0,"OUT24":0,"OUT25":0,"OUT26":0,"OUT27":0,"OUT28":0,"OUT29":0,"OUT30":0,"OUT31":0,"OUT32":0}
[DEBUG] 21:54:20: Le relais est ON
[DEBUG] 21:54:24: {"product":"IPX800_V3","OUT1":0,"OUT2":0,"OUT3":0,"OUT4":1,"OUT5":0,"OUT6":0,"OUT7":0,"OUT8":0,"OUT9":0,"OUT10":0,"OUT11":0,"OUT12":0,"OUT13":0,"OUT14":0,"OUT15":0,"OUT16":0,"OUT17":0,"OUT18":0,"OUT19":0,"OUT20":0,"OUT21":0,"OUT22":0,"OUT23":0,"OUT24":0,"OUT25":0,"OUT26":0,"OUT27":0,"OUT28":0,"OUT29":0,"OUT30":0,"OUT31":0,"OUT32":0}
[DEBUG] 21:54:24: Le relais est ON
[DEBUG] 21:54:27: {"product":"IPX800_V3","OUT1":0,"OUT2":0,"OUT3":0,"OUT4":1,"OUT5":0,"OUT6":0,"OUT7":0,"OUT8":0,"OUT9":0,"OUT10":0,"OUT11":0,"OUT12":0,"OUT13":0,"OUT14":0,"OUT15":0,"OUT16":0,"OUT17":0,"OUT18":0,"OUT19":0,"OUT20":0,"OUT21":0,"OUT22":0,"OUT23":0,"OUT24":0,"OUT25":0,"OUT26":0,"OUT27":0,"OUT28":0,"OUT29":0,"OUT30":0,"OUT31":0,"OUT32":0}
[DEBUG] 21:54:27: Le relais est ON
[DEBUG] 21:54:30: {"product":"IPX800_V3","OUT1":0,"OUT2":0,"OUT3":0,"OUT4":1,"OUT5":0,"OUT6":0,"OUT7":0,"OUT8":0,"OUT9":0,"OUT10":0,"OUT11":0,"OUT12":0,"OUT13":0,"OUT14":0,"OUT15":0,"OUT16":0,"OUT17":0,"OUT18":0,"OUT19":0,"OUT20":0,"OUT21":0,"OUT22":0,"OUT23":0,"OUT24":0,"OUT25":0,"OUT26":0,"OUT27":0,"OUT28":0,"OUT29":0,"OUT30":0,"OUT31":0,"OUT32":0}
[DEBUG] 21:54:30: Le relais est ON
[DEBUG] 21:54:33: {"product":"IPX800_V3","OUT1":0,"OUT2":0,"OUT3":0,"OUT4":1,"OUT5":0,"OUT6":0,"OUT7":0,"OUT8":0,"OUT9":0,"OUT10":0,"OUT11":0,"OUT12":0,"OUT13":0,"OUT14":0,"OUT15":0,"OUT16":0,"OUT17":0,"OUT18":0,"OUT19":0,"OUT20":0,"OUT21":0,"OUT22":0,"OUT23":0,"OUT24":0,"OUT25":0,"OUT26":0,"OUT27":0,"OUT28":0,"OUT29":0,"OUT30":0,"OUT31":0,"OUT32":0}
[DEBUG] 21:54:33: Le relais est ON
[DEBUG] 21:54:36: {"product":"IPX800_V3","OUT1":0,"OUT2":0,"OUT3":0,"OUT4":1,"OUT5":0,"OUT6":0,"OUT7":0,"OUT8":0,"OUT9":0,"OUT10":0,"OUT11":0,"OUT12":0,"OUT13":0,"OUT14":0,"OUT15":0,"OUT16":0,"OUT17":0,"OUT18":0,"OUT19":0,"OUT20":0,"OUT21":0,"OUT22":0,"OUT23":0,"OUT24":0,"OUT25":0,"OUT26":0,"OUT27":0,"OUT28":0,"OUT29":0,"OUT30":0,"OUT31":0,"OUT32":0}
[DEBUG] 21:54:36: Le relais est ON
[DEBUG] 21:54:39: {"product":"IPX800_V3","OUT1":0,"OUT2":0,"OUT3":0,"OUT4":1,"OUT5":0,"OUT6":0,"OUT7":0,"OUT8":0,"OUT9":0,"OUT10":0,"OUT11":0,"OUT12":0,"OUT13":0,"OUT14":0,"OUT15":0,"OUT16":0,"OUT17":0,"OUT18":0,"OUT19":0,"OUT20":0,"OUT21":0,"OUT22":0,"OUT23":0,"OUT24":0,"OUT25":0,"OUT26":0,"OUT27":0,"OUT28":0,"OUT29":0,"OUT30":0,"OUT31":0,"OUT32":0}
[DEBUG] 21:54:39: Le relais est ON
[DEBUG] 21:54:43: {"product":"IPX800_V3","OUT1":0,"OUT2":0,"OUT3":0,"OUT4":1,"OUT5":0,"OUT6":0,"OUT7":0,"OUT8":0,"OUT9":0,"OUT10":0,"OUT11":0,"OUT12":0,"OUT13":0,"OUT14":0,"OUT15":0,"OUT16":0,"OUT17":0,"OUT18":0,"OUT19":0,"OUT20":0,"OUT21":0,"OUT22":0,"OUT23":0,"OUT24":0,"OUT25":0,"OUT26":0,"OUT27":0,"OUT28":0,"OUT29":0,"OUT30":0,"OUT31":0,"OUT32":0}
[DEBUG] 21:54:43: Le relais est ON
[DEBUG] 21:54:46: {"product":"IPX800_V3","OUT1":0,"OUT2":0,"OUT3":0,"OUT4":1,"OUT5":0,"OUT6":0,"OUT7":0,"OUT8":0,"OUT9":0,"OUT10":0,"OUT11":0,"OUT12":0,"OUT13":0,"OUT14":0,"OUT15":0,"OUT16":0,"OUT17":0,"OUT18":0,"OUT19":0,"OUT20":0,"OUT21":0,"OUT22":0,"OUT23":0,"OUT24":0,"OUT25":0,"OUT26":0,"OUT27":0,"OUT28":0,"OUT29":0,"OUT30":0,"OUT31":0,"OUT32":0}
[DEBUG] 21:54:46: Le relais est ON
[DEBUG] 21:54:49: {"product":"IPX800_V3","OUT1":0,"OUT2":0,"OUT3":0,"OUT4":1,"OUT5":0,"OUT6":0,"OUT7":0,"OUT8":0,"OUT9":0,"OUT10":0,"OUT11":0,"OUT12":0,"OUT13":0,"OUT14":0,"OUT15":0,"OUT16":0,"OUT17":0,"OUT18":0,"OUT19":0,"OUT20":0,"OUT21":0,"OUT22":0,"OUT23":0,"OUT24":0,"OUT25":0,"OUT26":0,"OUT27":0,"OUT28":0,"OUT29":0,"OUT30":0,"OUT31":0,"OUT32":0}
[DEBUG] 21:54:49: Le relais est ON
[DEBUG] 21:54:52: {"product":"IPX800_V3","OUT1":0,"OUT2":0,"OUT3":0,"OUT4":1,"OUT5":0,"OUT6":0,"OUT7":0,"OUT8":0,"OUT9":0,"OUT10":0,"OUT11":0,"OUT12":0,"OUT13":0,"OUT14":0,"OUT15":0,"OUT16":0,"OUT17":0,"OUT18":0,"OUT19":0,"OUT20":0,"OUT21":0,"OUT22":0,"OUT23":0,"OUT24":0,"OUT25":0,"OUT26":0,"OUT27":0,"OUT28":0,"OUT29":0,"OUT30":0,"OUT31":0,"OUT32":0}


Oula désolé, pas vu que c'était aussi long :(

Posté(e)

Bah ça marche :) Tu l'as mis dans quoi ton code ? Dans un bouton ou le main loop ?

Mais tu veux faire quoi exactement avec tout ça ?

Posté(e)

Tu sais, si c'est pour voir quel relais est actif ou pas, t'as aussi vite fait de prendre le VD de Steven

Tu le prends ici et tu l'importes. Il marche très bien.

Posté(e)

Oui je l'ai également pour voir les activités ON ou OFF

 

Par contre merci de ta patience pour ton sujet :)

 

Une fois que j'aurai intégrer d'autres choses sur le ipx800 je pourrai tester avec ton script et juste changer les numéros de relais !

Posté(e)

De rien :) Quand tu sais ce que tu veux faire tu pourras alors déterminer ce qui est le plus pertinent, VD ou scène, et quoi coder.

  • 11 mois après...
Posté(e)

Besoin de conseil pour brancher mon portail sur un IPX 800.

 

Ce que je souhaiterais :

 

1) Connaitre l'état du portail : ouvert ou fermé

2) Pouvoir l'ouvrir

3) Pouvoir l'ouvrir en mode piéton (facultatif)

 

Notice d'utilisation (Kit Demios BT ultra A400)

 

1) Je pensais utiliser l'AUX 3 en mode serrure magnétique afin que le contact soit fermé si le portail est ouvert

2) Je pensais utiliser COM + IC1 pour l'ouverture

3) Je pensais utiliser COM + IC2 pour l'ouverture en mode piéton 

 

D'où mes question :

 

- Est-ce correcte selon vous ?

- Si oui comment les câbler sur l'IPX ... je suis une nouille en électrique ... n'est-ce pas Did ?  :P

 

 

Merci à  la/les personne(s) qui auront le courage de jeter un oeil.  :60:

Posté(e)

De ce que j'ai vu je suis OK pour ce que tu dis.

Il me semble que tu as une IPXv3 et dans ce cas :

Pour le câblage des ouvertures tu te prends 2 relais (par exemple CH1 et CH2), tu mets le COM de ta carte sur les bornes 2 et 5 et tu mets ton IC1 sur la borne 3 et ton IC2 sur la borne 6. Tu configures ton ipx en impulsionnel sur tes relais 1 et 2.

Pour le AUX3 tu te mets entre le GND et une entrée DIGITAL INPUT. Si ta carte est bien configurée elle doit mettre ton entrée à1. Par contre je me demande si ce ne serait pas plus tôt le mode "alarme portail ouvert" qu'il faudrait utiliser plutôt que la gâche qui doit être temporisée. Vérifie bien que sur ton AUX3 (borne 26/27) tu sois libre de potentiel sinon tu vas cramer une entrée de l'ipx.

Posté(e)

 Bonsoir messieurs,

D'accord avec vous pour IC1 et IC2. Mais le coup de la serrure magnétique, à  voir car si je prend l'exemple de mon portail (en Came), la sortie serrure électrique m'envoie une tension juste 2-3 secondes à  l'ouverture du portail (pour débloquer cette serrure), mais pas à  la fermeture. Je vois que ce ne sera pas ton cas puisque l'auxiliaire 3 est un contact.

 Comme dit @BenjyNet, le mode alarme conviendrait peut-être mieux mais ça reste à  tester en sortie. Autrement, avec un relais 24V (à  voir si la sortie est en continu ou alternatif) sur 20-21 (AUX0 : voyant portail ouvert), et tu récupères sur le contact de sortie de ce relais l'état pour ton entrée de ton IPX.

je suis une nouille en électrique ... n'est-ce pas Did ?

Je n'ai rien dit.

Posté(e)

Bonjour Messieurs,
 
Désolé de n'avoir pu vous répondre plutôt.
 
MERCI BEAUCOUP pour le temps que vous y avez consacrer et ces informations précieuses.
 
Grace à  vous, j'ai pu domotiser l'ouverture/fermeture du portail en tout sérénité. En ce qui concerne l'état du portail Ouvert ... le fameux Aux3 ou Aux0 je n'ai pas poussé plus loin tant que je ne suis pas sà»r s'il y a du 24V ou pas. J'ai posé la question à  l'installateur. S'il ne répond, je vérifierais moi-même. Le meilleur moyen est de poser la langue dans les bornes et d'ouvrir le portail ? Si ça secoue pas c'est qu'il n'est pas alimenté ?
 

Autrement, avec un relais 24V (à  voir si la sortie est en continu ou alternatif) sur 20-21 (AUX0 : voyant portail ouvert), et tu récupères sur le contact de sortie de ce relais l'état pour ton entrée de ton IPX.

Moi avoir rien compris, ce qui conforte ce que j'avais dis ... je suis une nouille en électricité  :D 

 

 

Pour les modes Aux0 et Aux3  : 
 
Mode Alarme Portail Ouvert :
"Le contact reste fermé si le vantail reste ouvert pendant deux fois plus de temps que le TCA configuré"
Soit 2x plus que le temps prévu pour une fermeture automatique ... c'est pas ce que je recherche.

 

Sortie SORTIE VOYANT PORTAIL OUVERT SCA.

"Le contact reste fermé pendant l’ouverture et lorsque le vantail est ouvert, intermittent pendant la fermeture, ouvert avec le vantail fermé"

Pas mal, je devrais pouvoir joué sur l'intermittence si j'ai le courage

 

Sortie pour SERRURE ÉLECTRIQUE À AIMANT.

"Le contact reste fermée lorsque le portail est fermé."

Ce qui me semblait le plus simple

 

 

Je vous tiens au courant et si j'arrive tous faire, je ferais un tuto rapide pour le/les prochain(s) acquéreur(s) d'un moteur BTF.

Posté(e)

Effectivement le "serrure àaimant" est le plus pertinent. Reste àbien vérifier qu'il n'y ait pas de tension sur les bornes AUX3 (me dit pas que t'as pas un multimètre pour vérifier ça !).

Posté(e)

 Ne fais pas comme Fibaro et ton avatar, et tu vas comprendre. :P

http://www.sonelec-musique.com/images/electronique_relais_001aa.gif

Pour transformer la tension que tu as aux bornes en contact libre de potentiel, tu installes un relais (24V continu ou alternatif à  vérifier) qui va se coller quand la tension sera présente aux bornes B1 et B2 et t'activer un contact inverseur en sortie:

COM = Commun

R = Repos (NC : normalement fermé / closed)

T = Travail (NO : normalement ouvert / open)

Ainsi, tu branches ton entrée IPX entre COM et T/NO.

Posté(e)

C'est exactement cette méthode que j'utilise pour détecter une coupure de courant. L'ipx est sur onduleur, coupure = ouverture du relais et donc détection de coupure. Simple non ?

Posté(e)

  Je l'utilise aussi sur l'IPX.

Je ne vois pas comment l'auteur d'un script aussi énorme que GEA n'arriverait pas à  comprendre. ;)

Par contre, il faudra tester à  l'aide d'un multimètre si c'est du continu ou de l'alternatif sinon, le relais va faire des castagnettes.

Posté(e)

Non mais il y a un soucis : j'ai compris  :)

 

Imaginons que je touve un relais 24V en continu (si c'est du continu) comme sur ton dessin

Je le branche B1 et B2 sur l'AUX0 de mon moteur puis COM et NC ou NO (selon ce que je configure) sur mon entrée digital (COM = 9, NC/NO = 8).

 

Donc me reste à  :

1 : Utiliser un voltomètre pour savoir si c'est du continu ou alternatif

2 : Trouver le relais 24V (continu ou alternatif).

 

Dites moi que j'ai juste ... s'illll voussss plaiitttt.

Posté(e)

Bah si tu veux....... le voltomètre, ça doit être un outil de la montagne, parce qu'ici en plaine, je connais pas  :1:

Avant regarde ton AUX3 voir s'il fonctionne comme tu veux (libre de potentiel). Si c'est le cas, regarde après avec le test de continuité (position diode ou ohmmètre) pour voir si le contact s'ouvre/se ferme lorsque ton portail s'ouvre/est fermé. SI t'as en position ohmmètre, un 1 sur l'ecran lorsque ton portail est ouvert et un 0 lorsque ton portail est fermé, c'est good :)

Pas besoin de relais dans ce cas là .

  • Upvote 1
Posté(e)

 C'est à  tester avant (au voltomètre si tu veux) et suivant le résultat, tu installes le relais adéquat.

Si le test de @BenjyNet sur AUX3 est concluant, oublies le relais.

Posté(e)

Vous êtes taquins (ce que je parle bien) mais surtout géniaux. Sérieusement merci pour votre patience et vos explications :13: .

 

Je vous tiens au courant dès demain ... et oui, je travaille pas demain (férié en Suisse), je vais donc pouvoir faire cela.

 

Si vous entendez parler d'explosion proche de Genève, daesh n'y sera pour rien ;).

Je profite de ce stupide gag pour envoyer mes pensées et mon soutien à  ce magnifique peuple Belge qui j'apprécie tout particulièrement :19:  .

  • Upvote 1
Posté(e)

Petit retour de mon weekend.

 

AUX3 envoi  bien du 24V en sortie donc relais oblige.

 

Par contre, le moteur est mort donc mes tests sont repoussés à  la semaine prochaine. (Défaut de fabrication)

×
×
  • Créer...