c’est ça ?
[
{
"id": "c93d76e425518d9b",
"type": "tab",
"label": "Flux 1",
"disabled": false,
"info": "",
"env": []
},
{
"id": "ef0a1cd26af51e3f",
"type": "api-current-state",
"z": "c93d76e425518d9b",
"name": "Temp Ext",
"server": "59781b09.703574",
"version": 3,
"outputs": 1,
"halt_if": "",
"halt_if_type": "str",
"halt_if_compare": "is",
"entity_id": "sensor.ecojoko_temperature_exterieure",
"state_type": "num",
"blockInputOverrides": true,
"outputProperties": [
{
"property": "payload2",
"propertyType": "msg",
"value": "",
"valueType": "entityState"
},
{
"property": "data",
"propertyType": "msg",
"value": "",
"valueType": "entity"
}
],
"for": "0",
"forType": "num",
"forUnits": "minutes",
"override_topic": false,
"state_location": "payload",
"override_payload": "msg",
"entity_location": "data",
"override_data": "msg",
"x": 120,
"y": 100,
"wires": [
[
"342aa5ba09b4c93f"
]
]
},
{
"id": "8d09554d4110583d",
"type": "api-current-state",
"z": "c93d76e425518d9b",
"name": "Humid Ext",
"server": "59781b09.703574",
"version": 3,
"outputs": 1,
"halt_if": "",
"halt_if_type": "str",
"halt_if_compare": "is",
"entity_id": "sensor.ecojoko_humidite_exterieure",
"state_type": "num",
"blockInputOverrides": true,
"outputProperties": [
{
"property": "payload1",
"propertyType": "msg",
"value": "",
"valueType": "entityState"
}
],
"for": "0",
"forType": "num",
"forUnits": "minutes",
"override_topic": false,
"state_location": "payload",
"override_payload": "msg",
"entity_location": "data",
"override_data": "msg",
"x": 130,
"y": 200,
"wires": [
[
"342aa5ba09b4c93f"
]
]
},
{
"id": "390a4ed619ea2191",
"type": "telegram sender",
"z": "c93d76e425518d9b",
"name": "",
"bot": "f9e88713e8567cb0",
"haserroroutput": false,
"outputs": 1,
"x": 410,
"y": 280,
"wires": [
[]
]
},
{
"id": "79b1128fd97b2f0d",
"type": "inject",
"z": "c93d76e425518d9b",
"name": "",
"props": [],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"x": 90,
"y": 40,
"wires": [
[
"ef0a1cd26af51e3f",
"8d09554d4110583d"
]
],
"info": "msg.reset = true;\r\nnode.warn(\"Reset envoyé !\");\r\nreturn msg;"
},
{
"id": "7f45fbb3ee27a720",
"type": "function",
"z": "c93d76e425518d9b",
"name": "function 9",
"func": "msg.payload = {\n chatId: '5699281820',\n type: 'message',\n content: \"Humidité: \" + msg.payload[0] + \" %, Température: \" + msg.payload[1]\n}\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 120,
"y": 280,
"wires": [
[
"390a4ed619ea2191"
]
]
},
{
"id": "342aa5ba09b4c93f",
"type": "join",
"z": "c93d76e425518d9b",
"name": "",
"mode": "custom",
"build": "array",
"property": "payload",
"propertyType": "msg",
"key": "topic",
"joiner": "\\n",
"joinerType": "str",
"useparts": false,
"accumulate": false,
"timeout": "1",
"count": "",
"reduceRight": false,
"reduceExp": "",
"reduceInit": "",
"reduceInitType": "",
"reduceFixup": "",
"x": 350,
"y": 160,
"wires": [
[
"7f45fbb3ee27a720",
"1c5c59d8a9cc4297"
]
]
},
{
"id": "1c5c59d8a9cc4297",
"type": "debug",
"z": "c93d76e425518d9b",
"name": "debug 1",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 400,
"y": 80,
"wires": []
},
{
"id": "59781b09.703574",
"type": "server",
"name": "Home Assistant",
"addon": true
},
{
"id": "f9e88713e8567cb0",
"type": "telegram bot",
"botname": "Alerte",
"usernames": "Alerte47bot",
"chatids": "5699281820",
"baseapiurl": "",
"testenvironment": false,
"updatemode": "polling",
"addressfamily": "",
"pollinterval": "300",
"usesocks": false,
"sockshost": "",
"socksprotocol": "socks5",
"socksport": "6667",
"socksusername": "anonymous",
"sockspassword": "",
"bothost": "",
"botpath": "",
"localbotport": "8443",
"publicbotport": "8443",
"privatekey": "",
"certificate": "",
"useselfsignedcertificate": false,
"sslterminated": false,
"verboselogging": false
}
]