Get Home Adapters List va te lister l'ensemble des modules (protocole) actif au niveau de la DELTA ==> A mon sens cela représenté un groupe spécifique dans jeedom car suivant les protocoles tu va rencontrer des spécificité. Pour chaque Protocole tu peux à mon sens gérer un état enable/disable (mais cela n'est pas la priorité)
Code : Tout sélectionner
{
"result" : [
{
"icon_url" : "/resources/images/home/pictos/adapter_cam.png",
"id" : 1,
"label" : "Gestionnaire de caméra",
"status" : "active",
"type" : {
"abstract" : false,
"generic" : false,
"inherit" : "adapter",
"name" : "adapter::cam"
}
},
{
"icon_url" : "/resources/images/home/rts_logo.png",
"id" : 2,
"label" : "Réseau Rts",
"status" : "active",
"type" : {
"abstract" : false,
"generic" : false,
"inherit" : "adapter",
"name" : "adapter::rts"
}
},
{
"icon_url" : "/resources/images/home/io_logo.png",
"id" : 3,
"label" : "Réseau IOHomeControl",
"props" : {
"Addr" : [XXX],
"SomfyId" : [XXX]
},
"status" : "active",
"type" : {
"abstract" : false,
"generic" : false,
"inherit" : "adapter",
"name" : "adapter::ios"
}
},
{
"icon_url" : "/resources/images/home/adapter_sigfox.png",
"id" : 4,
"label" : "Réseau Sigfox",
"status" : "active",
"type" : {
"abstract" : false,
"generic" : false,
"inherit" : "adapter",
"name" : "adapter::sigfox"
}
},
{
"icon_url" : "/resources/images/home/adapter_dm.png",
"id" : 5,
"label" : "Réseau DomusRf",
"props" : {
"Network ID" : 5670
},
"status" : "active",
"type" : {
"abstract" : false,
"generic" : false,
"inherit" : "adapter",
"name" : "adapter::domus"
}
}
],
"success" : true
}
Ensuite tu peux lister l'ensemble des "nodes" de la freebox delta qui sont à considéré comme des équipements au sens jeedom
Code : Tout sélectionner
{
"result" : [
{
"adapter" : 3,
"category" : "shutter",
"group" : {
"label" : "Couloir"
},
"id" : 6,
"label" : "Vollet Gauche",
"name" : "node_6",
"props" : {
"Address" : [XXX],
"ArcId" : 0
},
"show_endpoints" : [
{
"category" : "",
"ep_type" : "slot",
"id" : 0,
"label" : "Consigne d'ouverture",
"name" : "position_set",
"ui" : {
"access" : "w",
"display" : "slider",
"icon_url" : "/resources/images/home/pictos/volet_3.png",
"range" : [
0,
100
],
"unit" : "%"
},
"value" : 0,
"value_type" : "int",
"visibility" : "normal"
},
{
"category" : "",
"ep_type" : "slot",
"id" : 1,
"label" : "Stop",
"name" : "stop",
"ui" : {
"access" : "w",
"display" : "button"
},
"value" : null,
"value_type" : "void",
"visibility" : "normal"
},
{
"category" : "",
"ep_type" : "slot",
"id" : 2,
"label" : "Toggle",
"name" : "toggle",
"ui" : {
"access" : "w",
"display" : "button"
},
"value" : null,
"value_type" : "void",
"visibility" : "normal"
},
{
"category" : "",
"ep_type" : "signal",
"id" : 4,
"label" : "Consigne d'ouverture",
"name" : "position_set",
"refresh" : 2000,
"ui" : {
"access" : "r",
"display" : "slider",
"icon_url" : "/resources/images/home/pictos/volet_3.png",
"range" : [
0,
100
],
"unit" : "%"
},
"value" : 100,
"value_type" : "int",
"visibility" : "normal"
},
{
"category" : "",
"ep_type" : "signal",
"id" : 5,
"label" : "État",
"name" : "state",
"refresh" : 2000,
"ui" : {
"access" : "r",
"display" : "text"
},
"value" : "CLEF IO",
"value_type" : "string",
"visibility" : "normal"
}
],
"signal_links" : [
],
"slot_links" : [
],
"status" : "active",
"type" : {
"abstract" : false,
"endpoints" : [
{
"ep_type" : "slot",
"label" : "Consigne d'ouverture",
"name" : "position_set",
"value_type" : "int",
"visiblity" : "normal"
},
{
"ep_type" : "slot",
"label" : "Stop",
"name" : "stop",
"value_type" : "void",
"visiblity" : "normal"
},
{
"ep_type" : "slot",
"label" : "Toggle",
"name" : "toggle",
"value_type" : "void",
"visiblity" : "normal"
},
{
"ep_type" : "slot",
"label" : "Consigne d'ouverture",
"name" : "position",
"value_type" : "int",
"visiblity" : "normal"
},
{
"ep_type" : "signal",
"label" : "Consigne d'ouverture",
"name" : "position_set",
"param_type" : "void",
"value_type" : "int",
"visiblity" : "normal"
},
{
"ep_type" : "signal",
"label" : "État",
"name" : "state",
"param_type" : "void",
"value_type" : "string",
"visiblity" : "normal"
}
],
"generic" : false,
"icon" : "/resources/images/home/pictos/volet_3.png",
"inherit" : "node::ios",
"label" : "Volet roulant",
"name" : "node::ios::2",
"params" : {
},
"physical" : true
}
},
{
"adapter" : 3,
"category" : "shutter",
"group" : {
"label" : "Couloir"
},
"id" : 7,
"label" : "Vollet droit",
"name" : "node_7",
"props" : {
"Address" : XXX,
"ArcId" : 1
},
"show_endpoints" : [
{
"category" : "",
"ep_type" : "slot",
"id" : 0,
"label" : "Consigne d'ouverture",
"name" : "position_set",
"ui" : {
"access" : "w",
"display" : "slider",
"icon_url" : "/resources/images/home/pictos/volet_3.png",
"range" : [
0,
100
],
"unit" : "%"
},
"value" : 0,
"value_type" : "int",
"visibility" : "normal"
},
{
"category" : "",
"ep_type" : "slot",
"id" : 1,
"label" : "Stop",
"name" : "stop",
"ui" : {
"access" : "w",
"display" : "button"
},
"value" : null,
"value_type" : "void",
"visibility" : "normal"
},
{
"category" : "",
"ep_type" : "slot",
"id" : 2,
"label" : "Toggle",
"name" : "toggle",
"ui" : {
"access" : "w",
"display" : "button"
},
"value" : null,
"value_type" : "void",
"visibility" : "normal"
},
{
"category" : "",
"ep_type" : "signal",
"id" : 4,
"label" : "Consigne d'ouverture",
"name" : "position_set",
"refresh" : 2000,
"ui" : {
"access" : "r",
"display" : "slider",
"icon_url" : "/resources/images/home/pictos/volet_3.png",
"range" : [
0,
100
],
"unit" : "%"
},
"value" : 0,
"value_type" : "int",
"visibility" : "normal"
},
{
"category" : "",
"ep_type" : "signal",
"id" : 5,
"label" : "État",
"name" : "state",
"refresh" : 2000,
"ui" : {
"access" : "r",
"display" : "text"
},
"value" : "CLEF IO",
"value_type" : "string",
"visibility" : "normal"
}
],
"signal_links" : [
],
"slot_links" : [
],
"status" : "active",
"type" : {
"abstract" : false,
"endpoints" : [
{
"ep_type" : "slot",
"label" : "Consigne d'ouverture",
"name" : "position_set",
"value_type" : "int",
"visiblity" : "normal"
},
{
"ep_type" : "slot",
"label" : "Stop",
"name" : "stop",
"value_type" : "void",
"visiblity" : "normal"
},
{
"ep_type" : "slot",
"label" : "Toggle",
"name" : "toggle",
"value_type" : "void",
"visiblity" : "normal"
},
{
"ep_type" : "slot",
"label" : "Consigne d'ouverture",
"name" : "position",
"value_type" : "int",
"visiblity" : "normal"
},
{
"ep_type" : "signal",
"label" : "Consigne d'ouverture",
"name" : "position_set",
"param_type" : "void",
"value_type" : "int",
"visiblity" : "normal"
},
{
"ep_type" : "signal",
"label" : "État",
"name" : "state",
"param_type" : "void",
"value_type" : "string",
"visiblity" : "normal"
}
],
"generic" : false,
"icon" : "/resources/images/home/pictos/volet_3.png",
"inherit" : "node::ios",
"label" : "Volet roulant",
"name" : "node::ios::2",
"params" : {
},
"physical" : true
}
}
],
"success" : true
}
Il restera à gérer ensuite l'envoie des commande via methode PUT dans la documentation et en parrallèle , remonter l'état du vollet toujours via les API surtout pour gérer les ouvertures/fermeture partielle ==> dans un premier temps faire une ouverture complète/fermeture sera déja un premier pas
Il y a toute une notion d'appairage aussi ... je pense qu'i va falloir qu'on ouvre un suivi complet car les possibilités sont très nombreuse et si tu n'es pas en possession de la DELTA ça risque d'être compliqué. Malheureusement je ne suis pas developpeur mais si je peux aider ....