Fichier JSON - Aide

Bonsoir la cummunauté,

Je viens de récupérer un fichier JSON avec des commandes concernant mes volets roulants Selve (Etat / Commande).

Comment faire l’interprétation sous Jeedom svp ?
Pouvez-vous m’aider svp ?

Merci pour votre aide.

Le plugin-script sait interpréter les JSON.

Oui d’accord et comment utiliser et exploiter ce fichier ?
J’aimerai piloter mes volets Selve .

Merci pour ton aide.

tu le récupères comment ce fichier ?

La page de doc est bien faite :

https://doc.jeedom.com/fr_FR/plugins/programming/script/#Le%20choix%20JSON

Il y a même un exemple et une explication sommaire mais suffisante

Bon, je n’y arrive pas.
J’ai toutes mes instructions concernant mes volets roulant dans ce JSON mais je suis incapable d’envoyer une instruction via Jeedom.

Personne ici n’a de volets Selve avec Jeedom pour le coup ?

Bonjpur

D’où? Comment?

Le json est si secret que l’on ne peut pas le voir?

Que voulez vous faire avec dans jeedom ?

Antoine

Bonjour Tonio,

Haaa pas du tout secret.
Je l’ai récupéré depuis ma passerelle Selve.
Le but : envoyer des commandes via Jeedom pour piloter mes volets.

Voici le JSON :

"
{
	"info": {
		"_postman_id": "a1754845-7b71-4497-9c3f-b4c03e74231a",
		"name": "Selve Home Server 2",
		"description": "This collection describes the API of the Selve Home Server 2\n\nIf the Home Server is password protected add the \"auth\" parameter with the password in plain text\n\nRequests on the local network are done via http and via https through the cloud",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "commeo",
			"item": [
				{
					"name": "Get Device Configuration",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "http://{{SERVER_IP}}/cmd?XC_FNC=GetConfig&type=CM&adr={{DEVICE_ADDRESS}}&auth={{SERVER_PASSWORD}}",
							"protocol": "http",
							"host": [
								"{{SERVER_IP}}"
							],
							"path": [
								"cmd"
							],
							"query": [
								{
									"key": "XC_FNC",
									"value": "GetConfig"
								},
								{
									"key": "type",
									"value": "CM"
								},
								{
									"key": "adr",
									"value": "{{DEVICE_ADDRESS}}"
								},
								{
									"key": "auth",
									"value": "{{SERVER_PASSWORD}}"
								}
							]
						},
						"description": "Retrieves the configuration of a commeo device\n\n### Parameter: \n\n| Parameter     | Description   | Options |\n| ------------- |---------------|---------|        \n| XC_FNC  | Function to be executed | GetConfig |\n| type    | Device Type      | CM |\n| adr     | Device address   |    |\n| auth    | Server password in plain text   |    |\n\n\nThe device address can be retrieved using getStates\n\n### Example\n\n```javascript\n{\n    \"XC_SUC\": {\n        \"info\": {\n            \"configurable\": {\n                \"name\": \"Adapter Plug\"\n            },\n            \"not_configurable\": {\n                \"adr\": \"007FE604\",\n                \"teach\": \"1\"\n            }\n        },\n        \"config\": {\n            \"configurable\": {\n                \"type\": \"16\"\n            },\n            \"not_configurable\": {\n                \"wired\": \"0\",\n                \"obstacle\": \"0\",\n                \"reverse\": \"0\",\n                \"tightening\": \"0\",\n                \"overload\": \"0\",\n                \"limits\": \"0\",\n                \"firmware\": \"17.12.04.01\",\n                \"dev\": \"20\"\n            }\n        },\n        \"runtime\": {\n            \"configurable\": {\n                \"dev\": \"20\",\n                \"board\": \"5380\",\n                \"mode\": \"1\",\n                \"botpos\": \"59965\",\n                \"secpos\": \"0\",\n                \"pos1\": \"59965\",\n                \"pos2\": \"0\"\n            }\n        }\n    }\n}\n```"
					},
					"response": []
				},
				{
					"name": "Sending commands",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\"XC_FNC\":\"SendGenericCmd\",\"id\":\"02\",\"data\":{\"cmd\":\"moveDown\"}}"
						},
						"url": {
							"raw": "http://{{SERVER_IP}}/cmd?auth={{SERVER_PASSWORD}}",
							"protocol": "http",
							"host": [
								"{{SERVER_IP}}"
							],
							"path": [
								"cmd"
							],
							"query": [
								{
									"key": "auth",
									"value": "{{SERVER_PASSWORD}}"
								}
							]
						},
						"description": "Commands are sent in JSON Format as the POST Body.\n\n### Switch Type Devices with state. e.g Switch\n\n| Name          | Description   | Value   |\n| ------------- |---------------|---------| \n| on | Turn on the device | None\n| off | Turn off the device | None\n| toggle | Toggle between on and off | None\n\n#### Example POST Body\n{\"XC_FNC\":\"SendGenericCmd\",\"id\":\"02\",\"data\":{\"cmd\": \"on\"}}\n\n#### Motor Type Devices with run_state e.g. shutter\n\n| Name          | Description   | Value   |\n| ------------- |---------------|---------| \n| moveUp | Move the device in upward direction | None | \n| moveDown | Move the device in downward direction | None | \n| stop | Stop the moving device | None | \n| moveTo | Move the device to specific position | 0-100 | \n| stepUp | Step up the device one relative step | None | \n| stepDown | Step down the device one relative  step | None | \n| movetoP1 | Move to position 1 | None | \n| movetoP2 | Move to position 2 | None | \n| auto | Set device to auto mode | None | \n| manu | Set device to manu mode | None | \n| saveP1 | Save position 1 | None | \n| saveP2 | save position 2 | None | \n\n<br />\nExamples:<br />\n{\"XC_FNC\":\"SendGenericCmd\",\"id\":\"01\",\"data\":{\"cmd\": \"moveTo\",\"value\":10}}<br />\n{\"XC_FNC\":\"SendGenericCmd\",\"id\":\"02\",\"data\":{\"cmd\": \"manu\"}}<br />\n<br />\nChange id to the id of your device. The id of your device can be retrieved using GetStates (parameter sid). You can also replace the id with a group id to control groups of commeo type."
					},
					"response": []
				}
			],
			"description": "### Devices\nThere are two types of CM devices. Receiver and Sensors.\nExamples for receivers.\n{\n\"type\": \"CM\",\n\"sid\": \"03\",\n\"adr\": \"0000006D\",\n\"deviceType\": \"00\",\n\"eType\": \"5\",\n\"cid\": \"02\",\n\"states\": {\n\"run_state\": \"0\",\n\"position\": \"96\",\n\"flags\": \"0050\",\n\"timeout\": \"0\"\n}\n}\n{\n\"type\": \"CM\",\n\"sid\": \"02\",\n\"adr\": \"007FE604\",\n\"deviceType\": \"00\",\n\"eType\": \"16\",\n\"cid\": \"01\",\n\"states\": {\n\"state\": \"0\",\n\"flags\": \"0000\",\n\"timeout\": \"0\"\n}\n}\nExamples for sensors.\n{\n\"type\": \"CM\",\n\"sid\": \"05\",\n\"adr\": \"00D88019\",\n\"deviceType\": \"01\",\n\"cid\": \"00\",\n\"states\": {\n\"flags\": \"0000\",\n\"wind_state\": \"1\",\n\"rain_state\": \"0\",\n\"temp_state\": \"0\",\n\"light_state\": \"3\",\n\"temp\": \"-\",\n\"wind\": \"0.00\",\n\"s1\": \"0.00\",\n\"s2\": \"0.00\",\n\"s3\": \"0.00\",\n\"illumination\": \"816.00\"\n}\n}\nadr: The funk address of the devices.\nsid: The device id inside the gateway.\ncid: Commeo ID : The id of the device in CC. (not relevent for operations).\ndeviceType: device is either reciver or sensor. 00: Receiver or aktor and 01 for sensors.\neType: type of the reciver.\neType\nThe reciver are further classified into two types. Motor Type and Switch Type.\nThe profile type of the reciver.\n0 : BLIND_INSIDE\n1 : BLIND_OUTSIDE\n2: AWNING_INSIDE\n3: AWNING_OUTSIDE\n4: AWNING_BUSSINESS\n5: ROLLER_SHUTTER\n6: WINDOW\n7 FOLDING_SHUTTER\n8..15 Unknown Motor type.\n16: LIGHT_NIGHT\n17: LIGHT_DUSK\n18: HEATING\n19: COLLING\n20: SWITCH\n21: SWITCH_SUN\n22..31 Unknown Switch type.\nstates\nFor reciver type.\nMotor reciver type.\nrun_state: 0: Stop 1: moving up 2: mobing down.\nposition: The position of the shutter.(0-100%).\nSwitch type\nstate: 0: On 1: Off.\ntimeout: 0: No timeout 1:timeout.\nflags: flags inside recivers type.\nBit 0: Timeout. 0: No time out 1: timeout\nBit 1: Overload. 1: overload\nBit 2: obstacle. 1: obstacle\nBit 3: emergency alarm. 1: emgerency alarm.\nBit 4: sensor is learned. 0: no sensor learned 1: Sensor is learned\nBit 5: sensor is lost. 0: sensor is connected 1: sensor is lost.\nBit 6: mode. 0: manu 1: automatic.\nBit 7: Timeout. 1: device not longer is CC.\nBit 8: wind alarm.\nBit 9: rain alarm.\nBit 10: frost alarm.\nBit 11-15 : Don't care.\nFor sensor type.\nflags: flags inside sensor type.\nBit 0: timeout\nBit 1: Battery low\nBit 2: Test mode.\nBit 3: Service mode.\nwind_state: 0: No wind sensor 1: wind below thershold 2: Wind above thershold\nrain_state 0: No rain sensor 1: Rain not detected 2: Rain detected.\ntemp_state 0: No temp sensor 1: temp below thershold 2: temp above thershold.\nlight_state 0: No light sensor 1: Dark 2: Twilight 3: Normal 4: Sunny\ntemp: temp in degreee C.\nwind: wind in m/s\ns1-s3 : Sun intensity in kLux.\nillumination: light in Lux.\nAny state with \"-\" indicate either the state is not avalible. Example for sensor device if temp_state is 0 then temp will always be \"-\".\n\n"
		},
		{
			"name": "iveo",
			"item": [
				{
					"name": "Sending commands",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\"XC_FNC\":\"SendGenericCmd\",\"id\":\"02\",\"data\":{\"cmd\":\"moveDown\"}}"
						},
						"url": {
							"raw": "http://{{SERVER_IP}}/cmd?auth={{SERVER_PASSWORD}}",
							"protocol": "http",
							"host": [
								"{{SERVER_IP}}"
							],
							"path": [
								"cmd"
							],
							"query": [
								{
									"key": "auth",
									"value": "{{SERVER_PASSWORD}}"
								}
							]
						},
						"description": "Commands are sent in JSON Format as the POST Body.\n\n### Switch Type Devices with state. e.g Switch\n\n| Name          | Description   | \n| ------------- |---------------|\n| on | Turn on the device | \n| off | Turn off the device | \n\n### Motor Type Devices with state. e.g Shutter\n\n| Name          | Description   | \n| ------------- |---------------|\n| moveUp | Move the device in upward direction | \n| moveDown | Move the device in downward direction | \n| stop | Stop the moving device | \n| movetoP1 | Move to position 1 | \n| movetoP2 | Move to position 2 | \n| saveP1 | Save position 1 | \n| saveP2 | Save position 2 | \n| delete | Send delete command to motor | \n| configP1 | Config intermediate position | \n| configP2 | Config ventilation/tilt position | \n\n<br />\nExamples:<br />\n{\"XC_FNC\":\"SendGenericCmd\",\"id\":\"01\",\"data\":{\"cmd\": \"moveUp\"}}<br />\n{\"XC_FNC\":\"SendGenericCmd\",\"id\":\"02\",\"data\":{\"cmd\": \"movetoP1\"}}<br />\n<br />\nChange id to the id of your device. The id of your device can be retrieved using GetStates (parameter sid). You can also replace the id with a group id to control groups of iveo type."
					},
					"response": []
				}
			],
			"description": "IVEO Devices have the follwoing structure:\n\n{\n   \"type\":\"IV\",\n   \"sid\":\"04\",\n   \"adr\":\"01\",\n   \"config\":\"103,202\",\n   \"state\":\"?\"\n}\n\nthe state is only set when controlled through the Home Server 2. Otherwise IVEO Devices not have a real state. The state always shows the last known state by the Home Server.",
			"event": [
				{
					"listen": "prerequest",
					"script": {
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				},
				{
					"listen": "test",
					"script": {
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				}
			]
		},
		{
			"name": "Get SI",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "http://{{SERVER_IP}}/cmd?XC_FNC=GetSI&auth={{SERVER_PASSWORD}}",
					"protocol": "http",
					"host": [
						"{{SERVER_IP}}"
					],
					"path": [
						"cmd"
					],
					"query": [
						{
							"key": "XC_FNC",
							"value": "GetSI"
						},
						{
							"key": "auth",
							"value": "{{SERVER_PASSWORD}}"
						}
					]
				},
				"description": "Retrieves the Home Server's Systeminformation\n\n### Parameter: \n\n| Parameter     | Description   | Options |\n| ------------- |---------------|---------|        \n| XC_FNC  | Function to be executed | GetSI |\n| auth    | Server password in plain text   |    |\n\n#### Response Example\n\n```javascript\n{\n   \"XC_SUC\":{\n      \"HWV\":\"E7\",\n      \"HWRV\":\"01\",\n      \"FWV\":\"1.10.1\",\n      \"BUILD\":\"0003\",\n      \"TZ\":\"21\",\n      \"TIME\":\"07:50:11 07.04.2021\",\n      \"LONG\":\"005F\",\n      \"LAT\":\"0201\",\n      \"RFM\":\"0D01\",\n      \"RFCAL\":\"ZZXX\",\n      \"PIN\":\"\",\n      \"rgb\":{\n         \"defaultColor\":\"01\"\n      },\n      \"DC\":[\n         \"0%\",\n         \"0%\"\n      ],\n      \"ststart\":\"03:02:23 01.04.2021\",\n      \"astro\":{\n         \"sunrise\":\"06:47\",\n         \"sunset\":\"20:01\",\n         \"dawn\":\"05:31\",\n         \"dusk\":\"21:16\",\n         \"noon\":\"13:24\"\n      },\n      \"HM\":{\n         \"ADR\":\"78E53C\",\n         \"KEY\":\"\"\n      },\n      \"CM\":{\n         \"learning\":\"0\",\n         \"baseAdr\":\"EF8990\",\n         \"f\":\"0\",\n         \"receivers\":\"01\"\n      },\n      \"IV\":{\n         \"baseAdr\":\"0990\",\n         \"index\":\"00\",\n         \"repeater\":\"0\",\n         \"lastChannel\":\"00\"\n      },\n      \"S/N\":\"\",\n      \"udp\":\"0/12\"\n   }\n}\n```\n\n| Parameter     | Description   |\n| ------------- |---------------|     \n| HWV | Hardware Version |\n| FWV | Firmware Version |\n| BUILD | Firmware Build |\n| TZ | Timezone |\n| TIME | Systemtime |\n| LONG | Geolocation: Longitude |\n| LAT | Geolocation Latitude |\n| RFM | RF Receiving Mode |  \n| rgb | LED Color |\n| astro | Calculated Astro times |\n| HM | Configuration parameter Homematic |\n| CM | Configuration parameter Commeo |\n| IV | Configuration parameter Iveo |"
			},
			"response": []
		},
		{
			"name": "Get States",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "http://{{SERVER_IP}}/cmd?XC_FNC=GetStates&auth={{SERVER_PASSWORD}}",
					"protocol": "http",
					"host": [
						"{{SERVER_IP}}"
					],
					"path": [
						"cmd"
					],
					"query": [
						{
							"key": "XC_FNC",
							"value": "GetStates"
						},
						{
							"key": "auth",
							"value": "{{SERVER_PASSWORD}}"
						}
					]
				},
				"description": "Retrieves the Home Server's devices and their states\n\n### Parameter: \n\n| Parameter     | Description   | Options |\n| ------------- |---------------|---------|        \n| XC_FNC  | Function to be executed | GetStates |\n| auth    | Server password in plain text   |    |\n\n### Response Examples\n\n#### Commeo Receivers\n\n```javascript\n{\n    \"type\": \"CM\",\n    \"sid\": \"03\",\n    \"adr\": \"0000006D\",\n    \"deviceType\": \"00\",\n    \"eType\": \"5\",\n    \"cid\": \"02\",\n        \"states\": {\n        \"run_state\": \"0\",\n        \"position\": \"96\",\n        \"flags\": \"0050\",\n        \"timeout\": \"0\"\n    },\n    \"group\": \"02\"\n}\n```\n\n#### Commeo Sensors\n```javascript\n{\n    \"type\": \"CM\",\n    \"sid\": \"05\",\n    \"adr\": \"00D88019\",\n    \"deviceType\": \"01\",\n    \"cid\": \"00\",\n    \"states\": {\n        \"flags\": \"0000\",\n        \"wind_state\": \"1\",\n        \"rain_state\": \"0\",\n        \"temp_state\": \"0\",\n        \"light_state\": \"3\",\n        \"temp\": \"-\",\n        \"wind\": \"0.00\",\n        \"s1\": \"0.00\",\n        \"s2\": \"0.00\",\n        \"s3\": \"0.00\",\n        \"illumination\": \"816.00\"\n    }\n}\n```\n\n#### Device values\n\n| Parameter     | Description   |\n| ------------- |---------------| \n| adr | The RF address of the device |\n| sid | The device id inside the gateway |\n| cid | Commeo ID : The id of the device in CC. (not relevent for operations) |\n| deviceType | Device is either receiver or sensor. 00: Receiver or actuator and 01 for sensors |\n| eType | Type of the receiver |\n| group | Group Sid. Only set if device is part of a group |\n\n#### eTypes\nThe receiver are further classified into two types. Motor Type and Switch Type.\n\nReceiver profile types: \n\n| Value     | Type  |\n| ------------- |---------------| \n| 0 | BLIND_INSIDE |\n| 1 | BLIND_OUTSIDE |\n| 2 | AWNING_INSIDE |\n| 3 | AWNING_OUTSIDE |\n| 4 | AWNING_BUSSINESS |\n| 5 | ROLLER_SHUTTER |\n| 6 | WINDOW |\n| 7 | FOLDING_SHUTTER |\n| 8..15 | Unknown Motor type  |\n| 16 | LIGHT_NIGHT |\n| 17 | LIGHT_DUSK |\n| 18 | HEATING |\n| 19 | COLLING |\n| 20 | SWITCH |\n| 21 | SWITCH_SUN |\n| 22..31 | Unknown Switch type |\n\n#### States\n\n##### Receiver and motor states\n\n| Parameter     | Values  |\n| ------------- |---------------| \n| run_state | 0: Stop<br />  1: moving up<br /> 2: moving down |\n| position | The position of the shutter (0-100%) |\n| state | 0: On 1: Off |\n| timeout | 0: No timeout 1:timeout |\n| flags | Bit 0: Timeout 0: No time out 1: timeout <br /> Bit 1: Overload 1: overload<br />Bit 2: Obstacle 1: obstacle<br />Bit 3: Emergency alarm 1: emgerency alarm.<br />Bit 4: Sensor learned 0: no sensor learned 1: Sensor is learned<br />Bit 5: Sensor lost 0: sensor is connected 1: sensor is lost<br />Bit 6: Mode 0: manu 1: automatic<br />Bit 7: Timeout 1: device not longer is CC<br />Bit 8: Wind alarm<br />Bit 9: Rain alarm<br />Bit 10: Frost alarm<br />Bit 11-15 : Reserved |\n\n\n##### Sensor States\n\n| Parameter     | Values  |\n| ------------- |---------------| \n| flags | Bit 0: timeout<br />Bit 1: Battery low<br />Bit 2: Test mode<br />Bit 3: Service mode |\n| wind_state | 0: No wind sensor<br /> 1: Wind below thershold<br /> 2: Wind above thershold |\n| rain_state | 0: No rain sensor<br /> 1: Tain not detected<br /> 2: Rain detected |\n| temp_state | 0: No temp sensor<br /> 1: Temp below thershold<br /> 2: Temp above thershold |\n| light_state | 0: No light sensor<br /> 1: Dark<br /> 2: Twilight<br /> 3: Normal<br /> 4: Sunny |\n| temp | Temp in degreee C |\n| wind | Wind in m/s |\n| s1-s3 | Sun intensity in kLux |\n| illumination | Brightness in Lux |\n\n\nAny state with \"-\" indicate either the state is not avalible. Example for sensor device if temp_state is 0 then temp will always be \"-\".\n\n#### Iveo Receivers\n\n```javascript\n{\n   \"type\":\"IV\",\n   \"sid\":\"04\",\n   \"adr\":\"01\",\n   \"config\":\"103,202\",\n   \"state\":\"?\"\n}\n```\n\n##### Iveo Parameter\n\n| Parameter     | Values  |\n| ------------- |---------------|\n| type | Device type. Always IV |\n| sid | System Id on the Selve Home Server |\n| adr | Device address |\n| config | Device config |\n| state | Fake state. Might be wrong. Options: open or closed for switch and motor devices |\n\n#### Device Groups\n```javascript\n{\n    \"type\":\"SGROUP\",\n    \"sid\":\"02\",\n    \"adr\":\"00000002\",\n    \"sys\":\"CM\",\n    \"deviceType\":\"02\",\n    \"name\":\"dGVzdA==\"\n}\n```\n\n##### Group Parameter\n\n| Parameter     | Values  |\n| ------------- |---------------|\n| type |  Group type. Always SGROUP |\n| sid | Group System ID |\n| adr | Group Address |\n| sys | CM: Commeo Group IV: Iveo Group |\n| deviceType | 1: Switch type 2: Motor type | \n| name | Group name. Base64 encoded |"
			},
			"response": []
		},
		{
			"name": "Sending commands via the cloud",
			"request": {
				"auth": {
					"type": "basic",
					"basic": [
						{
							"key": "password",
							"value": "{{AT}}",
							"type": "string"
						},
						{
							"key": "username",
							"value": "user",
							"type": "string"
						},
						{
							"key": "saveHelperData",
							"value": true,
							"type": "boolean"
						},
						{
							"key": "showPassword",
							"value": false,
							"type": "boolean"
						}
					]
				},
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\"XC_FNC\":\"SendGenericCmd\",\"id\":\"02\",\"data\":{\"cmd\":\"moveDown\"}}"
				},
				"url": {
					"raw": "https://ccs.my-selve.de/rapi/live/{{SID}}/cmd?at={{AT}}",
					"protocol": "https",
					"host": [
						"ccs",
						"my-selve",
						"de"
					],
					"path": [
						"rapi",
						"live",
						"{{SID}}",
						"cmd"
					],
					"query": [
						{
							"key": "at",
							"value": "{{AT}}"
						}
					]
				},
				"description": "#### Sending Commands via the Cloud Interface\n\nTo send commands via the cloud the server must have cloud access and the password enabled. This can be setup in the Selve Home App.<br />\n\nTo send a remote command simply swap the local server address<br />\nhttp://{{SERVER_IP}}/cmd<br />\n<br />\nwith the following address:<br />\nhttps://ccs.my-selve.de/rapi/live/{{SID}}/cmd<br />\n\n### Parameter: \n\n| Parameter     | Description   | Options |\n| ------------- |---------------|---------|        \n| sid    | System ID in the cloud. Can be retrieved via /info command   |    |\n\n\n#### Authorization\n\nBASIC Auth is used to authorize requests.\n<br />\nUsername: user<br />\nPassword: Access Token: A MD5 hash value calculated from the plain text server password and the word _SALT!: MD5(password + '_SALT!'). <br /><br />Attention: Special characters must be encoded"
			},
			"response": []
		},
		{
			"name": "Info",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "http://{{SERVER_IP}}/info?auth={{SERVER_PASSWORD}}",
					"protocol": "http",
					"host": [
						"{{SERVER_IP}}"
					],
					"path": [
						"info"
					],
					"query": [
						{
							"key": "auth",
							"value": "{{SERVER_PASSWORD}}"
						}
					]
				},
				"description": "Retrieves the Home Server's Network Information\n\n### Parameter: \n\n| Parameter     | Description   | Options |\n| ------------- |---------------|---------|        \n| auth    | Server password in plain text   |    |\n\n\n#### Response Example\n\n```javascript\n{\n   \"XC_SUC\":{\n      \"name\":\"SELVE-Home\",\n      \"mhv\":\"XN I-2M\",\n      \"mfv\":\"1.2.4-343732a6\",\n      \"msv\":\"1.10.1\",\n      \"hwv\":\"E7\",\n      \"vid\":\"000B\",\n      \"mem\":29624,\n      \"ip\":\"192.168.1.143\",\n      \"sn\":\"255.255.255.0\",\n      \"gw\":\"192.168.1.1\",\n      \"dns\":\"1.1.1.1\",\n      \"mac\":\"ff-ff-ff-ff-ff-ff\",\n      \"ntp\":\"129.6.15.28\",\n      \"start\":1617238943,\n      \"time\":1617773596,\n      \"loc\":\"8C1392035C\",\n      \"serial\":\"230400,8N1\",\n      \"io\":\"AA-20\",\n      \"cfg\":\"BF\",\n      \"server\":\"ccs.my-selve.de:80\",\n      \"sid\":\"10576893073949646ED898769978773951D55828AF\",\n      \"wifi\":\"wifi-net\",\n      \"rssi\":-61\n   }\n}\n```\n\n| Parameter     | Description   |\n| ------------- |---------------|       \n| msv   | Current Firmware Version   |\n| ip | IP Address |\n| sn | Subnet |\n| gw | Gateway | \n| dns | DNS Server |\n| mac | MAC Address |\n| ntp | Time Server |\n| start | Start time |\n| time | System time |\n| server | Connected Cloud Server |\n| sid | System ID in the cloud. Changes if server is being reset |\n| wifi | Connected wifi |"
			},
			"response": []
		}
	],
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		}
	]
}"

Merci d’utiliser Texte préformaté avec le bouton </> pour garder l’indentation du json.

:thinking:

Alors, complément d’info, je viens de récupérer du code via mon cloud Selve :

  "Chambre Mathis Volet roulant 06": {
    "type": "blind",
    "commands": {
      "up": {
        "type": "POST",
        "url": "/cmd",
        "data": {
          "XC_FNC": "SendGenericCmd",
          "id": "06",
          "data": {
            "cmd": "moveUp"
          }
        }
      },
      "down": {
        "type": "POST",
        "url": "/cmd",
        "data": {
          "XC_FNC": "SendGenericCmd",
          "id": "06",
          "data": {
            "cmd": "moveDown"
          }
        }
      },
      "stop": {
        "type": "POST",
        "url": "/cmd",
        "data": {
          "XC_FNC": "SendGenericCmd",
          "id": "06",
          "data": {
            "cmd": "stop"
          }
        }
      }
    },
   

C’est qqle chose que je peux interpréter via mon Jeedom ?

Il est partiel ton json, ce n’est pas utile.

Ma première impression est que le json est probablement trop long pour le plugin script.

D’accord, je me suis posé cette question.

Est-il possible d’interpréter les commandes que je viens de récupérer ?