Commandes Intuis connect sur Node RED - v1.0 2024 par Yann V
Une fois que vous aurez réussi à exploiter le flow "Intuis connect sur Node RED - v1.x 2024 par Yann V" (disponible ici : https://flows.nodered.org/flow/3d7f77cef8a7c6aa4fc33e2dbf26f15e), ce nouveau flow permet de réaliser des commandes de base à l'API Intuis connect (by Netatmo) pour acquitter les notifications de fenêtre ouverte ou modifier le planning de chauffe en cours.
Pour l'exploiter, il faut une bonne maitrise de Node RED ainsi que des connaissances Java.
Notice d'installation :
- Installer et configurer le flow "Intuis connect sur Node RED - v1.x 2024 par Yann V". Une fois qu'il est fonctionnel, passer à la suite.
- Coller le contenu de ce nouveau flow dans le flow cité juste au dessus.
- Configurer les entités d'entrée des deux nouveaux groupes à partir d'entités créées dans Home Assistant (ex: un bouton pour l'acquittement des fenêtres ouvertes, une liste déroulante pour les plannings).
- Configurer le noeud "Set param acquit fenetre" selon le nombre de pièces de votre domicile.
- Configurer les noeuds "Set param planning 1" et "Set param planning 2" avec les id de vos plannings
Ce flow est un modèle, vous pouvez le personnaliser ou l'améliorer selon vos besoins et vos envies. Il est possible de récupérer d'autres informations depuis le serveur, d'ajouter d'autres commandes, etc. Pour obtenir une première aide sur la configuration du flow, consulter ce post HACF : https://forum.hacf.fr/t/integration-radiateurs-intuis-connect-sans-homekit/41313
[{"id":"9794645f52fb9ea3","type":"tab","label":"Intuis connect 2 - modèle","disabled":false,"info":"Créé par Yann V. le 26/10/2024\r\nDernière mise a jour le 26/10/2024","env":[]},{"id":"34336a48ec02f20d","type":"group","z":"9794645f52fb9ea3","name":"Gestion planning chauffage","style":{"label":true},"nodes":["b33a88b5617f89db","fd042da8b632b8ba","5e86c83b1bb1779e","92400dcaf72c9972","9c57574987b74339","d46ec09d2328154d","3ad8fc0b452f4caa","cbef5337b3ef3900","471d58b1750acfda","8c8d32bea621bca5","959a7bbf9fba0ac5","aa959dcd5b04c60c"],"x":74,"y":79,"w":1372,"h":222},{"id":"9c29a7df43721672","type":"group","z":"9794645f52fb9ea3","name":"Aqcuitter ouverture fenêtre","style":{"label":true},"nodes":["58aee8436820190c","1886bcc7c5f82bc7","523fe5db69368821","1afb356e7d76cfe1","c2967d79d0c0fe33","f24589a6a83bd139","b57531cff61def7e","949dc9bc2d0e3620","d83a9dc535b855e4"],"x":34,"y":319,"w":1432,"h":202},{"id":"b33a88b5617f89db","type":"server-state-changed","z":"9794645f52fb9ea3","g":"34336a48ec02f20d","name":"Etat planning 1","server":"","version":6,"outputs":2,"exposeAsEntityConfig":"","entities":{"entity":[],"substring":[],"regex":[]},"outputInitially":true,"stateType":"str","ifState":"libellé_planning_1","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":true,"ignoreCurrentStateUnavailable":true,"outputProperties":[{"property":"payload","propertyType":"msg","value":"1","valueType":"num"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"timestamp","propertyType":"msg","value":"","valueType":"date"}],"x":180,"y":140,"wires":[["5e86c83b1bb1779e"],[]]},{"id":"fd042da8b632b8ba","type":"server-state-changed","z":"9794645f52fb9ea3","g":"34336a48ec02f20d","name":"Etat planning 2","server":"","version":6,"outputs":2,"exposeAsEntityConfig":"","entities":{"entity":["input_select.planning_chauffage"],"substring":[],"regex":[]},"outputInitially":true,"stateType":"str","ifState":"libellé_planning_2","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":true,"ignoreCurrentStateUnavailable":true,"outputProperties":[{"property":"payload","propertyType":"msg","value":"1","valueType":"num"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"timestamp","propertyType":"msg","value":"","valueType":"date"}],"x":180,"y":260,"wires":[["92400dcaf72c9972"],[]]},{"id":"5e86c83b1bb1779e","type":"change","z":"9794645f52fb9ea3","g":"34336a48ec02f20d","name":"","rules":[{"t":"set","p":"token","pt":"msg","to":"\"Bearer \" & $globalContext(\"AccessToken\")\t","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":470,"y":120,"wires":[["9c57574987b74339"]]},{"id":"92400dcaf72c9972","type":"change","z":"9794645f52fb9ea3","g":"34336a48ec02f20d","name":"","rules":[{"t":"set","p":"token","pt":"msg","to":"\"Bearer \" & $globalContext(\"AccessToken\")\t","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":470,"y":240,"wires":[["d46ec09d2328154d"]]},{"id":"9c57574987b74339","type":"change","z":"9794645f52fb9ea3","g":"34336a48ec02f20d","name":"Set param planning 1","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\t \"app_identifier\" : \"app_muller\",\t \"home_id\" : $globalContext(\"home_id\"),\t \"schedule_id\" : \"id_planning_1\",\t \"schedule_type\" : \"therm\"\t}","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":740,"y":120,"wires":[["3ad8fc0b452f4caa","aa959dcd5b04c60c"]]},{"id":"d46ec09d2328154d","type":"change","z":"9794645f52fb9ea3","g":"34336a48ec02f20d","name":"Set param planning 2","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\t \"app_identifier\" : \"app_muller\",\t \"home_id\" : $globalContext(\"home_id\"),\t \"schedule_id\" : \"id_planning_2\",\t \"schedule_type\" : \"therm\"\t}","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":740,"y":240,"wires":[["cbef5337b3ef3900","aa959dcd5b04c60c"]]},{"id":"3ad8fc0b452f4caa","type":"http request","z":"9794645f52fb9ea3","g":"34336a48ec02f20d","name":"Intuis switchhomeschedule","method":"POST","ret":"obj","paytoqs":"ignore","url":"https://app.muller-intuitiv.net/api/switchhomeschedule","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[{"keyType":"Authorization","keyValue":"","valueType":"msg","valueValue":"token"},{"keyType":"Content-Type","keyValue":"","valueType":"other","valueValue":"application/json"}],"x":1040,"y":120,"wires":[["471d58b1750acfda"]]},{"id":"cbef5337b3ef3900","type":"http request","z":"9794645f52fb9ea3","g":"34336a48ec02f20d","name":"Intuis switchhomeschedule","method":"POST","ret":"obj","paytoqs":"ignore","url":"https://app.muller-intuitiv.net/api/switchhomeschedule","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[{"keyType":"Authorization","keyValue":"","valueType":"msg","valueValue":"token"},{"keyType":"Content-Type","keyValue":"","valueType":"other","valueValue":"application/json"}],"x":1040,"y":240,"wires":[["471d58b1750acfda"]]},{"id":"471d58b1750acfda","type":"debug","z":"9794645f52fb9ea3","g":"34336a48ec02f20d","name":"contrôle retour","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1320,"y":180,"wires":[]},{"id":"58aee8436820190c","type":"server-state-changed","z":"9794645f52fb9ea3","g":"9c29a7df43721672","name":"Etat bouton acquitter ","server":"","version":6,"outputs":1,"exposeAsEntityConfig":"","entities":{"entity":[],"substring":[],"regex":[]},"outputInitially":true,"stateType":"str","ifState":"","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":true,"ignoreCurrentStateUnavailable":true,"outputProperties":[{"property":"payload","propertyType":"msg","value":"1","valueType":"num"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"timestamp","propertyType":"msg","value":"","valueType":"date"}],"x":150,"y":420,"wires":[["1886bcc7c5f82bc7"]]},{"id":"1886bcc7c5f82bc7","type":"change","z":"9794645f52fb9ea3","g":"9c29a7df43721672","name":"","rules":[{"t":"set","p":"token","pt":"msg","to":"\"Bearer \" & $globalContext(\"AccessToken\")\t","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":470,"y":420,"wires":[["523fe5db69368821"]]},{"id":"523fe5db69368821","type":"change","z":"9794645f52fb9ea3","g":"9c29a7df43721672","name":"Set param acquit fenetre","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\t \"home\": {\t \"id\": $globalContext(\"home_id\"),\t \"rooms\": [\t {\t \"id\": $globalContext(\"room0_id\"),\t \"open_window\": false\t },\t {\t \"id\": $globalContext(\"room1_id\"),\t \"open_window\": false\t }\t ]\t },\t \"app_identifier\": \"app_muller\"\t}","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":750,"y":420,"wires":[["c2967d79d0c0fe33","b57531cff61def7e"]]},{"id":"1afb356e7d76cfe1","type":"debug","z":"9794645f52fb9ea3","g":"9c29a7df43721672","name":"contrôle retour","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1340,"y":420,"wires":[]},{"id":"c2967d79d0c0fe33","type":"debug","z":"9794645f52fb9ea3","g":"9c29a7df43721672","name":"contrôle requête","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1020,"y":360,"wires":[]},{"id":"f24589a6a83bd139","type":"inject","z":"9794645f52fb9ea3","d":true,"g":"9c29a7df43721672","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":170,"y":360,"wires":[["1886bcc7c5f82bc7"]]},{"id":"b57531cff61def7e","type":"http request","z":"9794645f52fb9ea3","g":"9c29a7df43721672","name":"Intuis setstate","method":"POST","ret":"obj","paytoqs":"ignore","url":"https://app.muller-intuitiv.net/syncapi/v1/setstate","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[{"keyType":"Authorization","keyValue":"","valueType":"msg","valueValue":"token"},{"keyType":"Content-Type","keyValue":"","valueType":"other","valueValue":"application/json"}],"x":1020,"y":420,"wires":[["1afb356e7d76cfe1"]]},{"id":"949dc9bc2d0e3620","type":"comment","z":"9794645f52fb9ea3","g":"9c29a7df43721672","name":"A compléter ... ","info":"Renseigner votre serveur\nPuis ajouter une entitée \nEn cliquant sur + add entity","x":170,"y":480,"wires":[]},{"id":"8c8d32bea621bca5","type":"comment","z":"9794645f52fb9ea3","g":"34336a48ec02f20d","name":"A compléter ... ","info":"Renseigner votre serveur\nPuis ajouter une entitée \nen cliquant sur + add entity\nPuis renseigner le libellé de votre planning\nà la place de \"libellé_planning_\" 1 ou 2","x":190,"y":200,"wires":[]},{"id":"d83a9dc535b855e4","type":"comment","z":"9794645f52fb9ea3","g":"9c29a7df43721672","name":"A compléter selon nombre de pièces ","info":"","x":740,"y":460,"wires":[]},{"id":"959a7bbf9fba0ac5","type":"comment","z":"9794645f52fb9ea3","g":"34336a48ec02f20d","name":"A compléter avec les id de planning","info":"","x":720,"y":180,"wires":[]},{"id":"aa959dcd5b04c60c","type":"debug","z":"9794645f52fb9ea3","g":"34336a48ec02f20d","name":"contrôle requête","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1000,"y":180,"wires":[]}]