Intégration Eedomus -> Node-RED

Partagez ici vos astuces et idées d'utilisation d'eedomus

Intégration Eedomus -> Node-RED

Messagepar KikiFUNstyle » 15 Mars 2021 13:20

Voici un exemple pour faire interagir Eedomus avec Node-RED à partir d'un actionneur HTTP :
Node-RED_periph_HTTP_config_1.PNG
Node-RED_periph_HTTP_config_1.PNG (19.41 Kio) Consulté 25516 fois


Node-RED_periph_HTTP_config_2.PNG
Node-RED_periph_HTTP_config_2.PNG (36.09 Kio) Consulté 25516 fois


Mettre le periphId que l'on souhaite envoyer à Node-RED dans valeur brute

Pour les paramètres vous pouvez copier/coller ça sur chaque nouvelle ligne
Code : Tout sélectionner
/pushEedomus?periphId=[RAW_VALUE]&value=[LAST_VALUE PERIPH_ID=[RAW_VALUE]]

dans paramètres

Coté Node-RED :
Voici le flow à importer
Code : Tout sélectionner
[{"id":"8c2f2ff5.7901b","type":"debug","z":"45b4a4fe.34b43c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":550,"y":420,"wires":[]},{"id":"a1d3ee0f.72148","type":"comment","z":"45b4a4fe.34b43c","name":"916824 - Mouvement salle à manger","info":"","x":620,"y":380,"wires":[]},{"id":"4075ee7b.a7445","type":"http in","z":"45b4a4fe.34b43c","name":"","url":"/pushEedomus","method":"get","upload":false,"swaggerDoc":"","x":130,"y":460,"wires":[["89d7723f.338e8","d27cb40e.6042f8"]]},{"id":"89d7723f.338e8","type":"template","z":"45b4a4fe.34b43c","name":"response","field":"payload","fieldType":"msg","format":"json","syntax":"mustache","template":"{\n    \"success\": 1,\n    \"payload\": {\n        \"periphId\": \"{{payload.periphId}}\",\n        \"value\": \"{{payload.value}}\"\n    }\n}","output":"json","x":180,"y":400,"wires":[["20c30d82.5fa3b2"]]},{"id":"20c30d82.5fa3b2","type":"http response","z":"45b4a4fe.34b43c","name":"","statusCode":"","headers":{},"x":330,"y":400,"wires":[]},{"id":"d27cb40e.6042f8","type":"switch","z":"45b4a4fe.34b43c","name":"","property":"payload.periphId","propertyType":"msg","rules":[{"t":"eq","v":"916824","vt":"str"},{"t":"eq","v":"916825","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":350,"y":460,"wires":[["8c2f2ff5.7901b"],["c41ae64a.8e3b08"]]},{"id":"c41ae64a.8e3b08","type":"debug","z":"45b4a4fe.34b43c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":550,"y":520,"wires":[]},{"id":"ef9f2a30.378278","type":"comment","z":"45b4a4fe.34b43c","name":"916825 - Température salle à manger","info":"","x":630,"y":480,"wires":[]}]


Node-RED_flow.PNG
Node-RED_flow.PNG (36.81 Kio) Consulté 25516 fois


Je préfère faire du push Eedomus vers Node-RED afin d'envoyer ce que je souhaite (règles lorsque le périphérique change de valeur par exemple) et non pas du polling Node-RED vers Eedomus.

La node http in permet d'avoir un Endpoint coté Node-RED :)

Pour la suite sur Node-RED :
https://cookbook.nodered.org/
https://nodered.org/docs/
ZWave / RFXCom / broadlink RM /Google Mini / Yeelight / Xiaomi Vacuum V1 / Shelly <3 / Node-RED <3 <3
[Store] Shelly
KikiFUNstyle
 
Messages : 908
Inscription : 24 Avr 2014
Localisation : Toulouse

Re: Intégration Eedomus -> Node-RED

Messagepar aldiallo-Edomu » 15 Mars 2021 22:00

Merci!
aldiallo-Edomu
 
Messages : 243
Inscription : 20 Déc 2017

Re: Intégration Eedomus -> Node-RED

Messagepar titi007 » 21 Mars 2021 16:19

Merci,
Faut que je comprenne comment ça fonctionne...
j'étais tombé sur le paquet node-red-eedomus mais je ne vois pas comment l'intégrer via homeassistant!
@kikiFunstyle, je vois que tu es de Toulouse, on est voisin alors, je suis de Balma :P :P
titi007
 
Messages : 116
Inscription : 19 Oct 2014

Re: Intégration Eedomus -> Node-RED

Messagepar KikiFUNstyle » 21 Mars 2021 18:04

titi007 a écrit:Merci,
Faut que je comprenne comment ça fonctionne...
j'étais tombé sur le paquet node-red-eedomus mais je ne vois pas comment l'intégrer via homeassistant!
@kikiFunstyle, je vois que tu es de Toulouse, on est voisin alors, je suis de Balma :P :P

Y'a quand même un prérequis qui t'obliges à installer Node-RED sur une machine (Raspberry, docker, windows, linux ...)

Pour le paquet node-red-contrib-eedomus l0ghan ne l'a pas publié sur npm donc pas disponible depuis la palette Node-RED.

Je vais essayé de faire évoluer son projet afin d'avoir des nodes Eedomus disponible et de publier ça
ZWave / RFXCom / broadlink RM /Google Mini / Yeelight / Xiaomi Vacuum V1 / Shelly <3 / Node-RED <3 <3
[Store] Shelly
KikiFUNstyle
 
Messages : 908
Inscription : 24 Avr 2014
Localisation : Toulouse

Re: Intégration Eedomus -> Node-RED

Messagepar BingO » 01 Avr 2021 12:59

Je me suis installé HA sur une VM, je vais poser le module additionel Node-Red dessus et ensuite, documentation pour comprendre comment faire interagir HA et eedomus avec Node-Red au milieu :D
Merci pour ton exemple, ça facilitera la chose je pense :)
BingO
 
Messages : 336
Inscription : 16 Jan 2016

Re: Intégration Eedomus -> Node-RED

Messagepar drobert.68 » 01 Avr 2021 20:33

Bonsoir,

Super ce transfert d'info sur node-red !

Pourrait-on modifier les infos transmises pour rajouter
- le nom du périphérique du type :
&Name=[?NAME? PERIPH_ID=[RAW_VALUE]]
- la pièce du périphérique ? ?ROOM?
- l'usage ?

L'idée est de pouvoir ensuite, suivant l'usage , pousser la donnée sur un infludb ....

Merci
EEDOMUS+ ZIGATE + RFX433 + 5xLC13 + 1xNP201 + 1xFGBS321 + 4xFGK101 + 2xFGMS001 + 2xFGWP011 + 1xZMNHBA2 + 1xZF5201 + 1xSF812
JEEDOM (VM SYNO) + Gateway XIAOMI + BLEA + Aquara + Miflora + Yeelight + Station NETATMO + 2x ECOCompteur
drobert.68
 
Messages : 21
Inscription : 09 Nov 2014
Localisation : Alsace / Haut-Rhin

Re: Intégration Eedomus -> Node-RED

Messagepar KikiFUNstyle » 01 Avr 2021 22:40

drobert.68 a écrit:Bonsoir,

Super ce transfert d'info sur node-red !

Pourrait-on modifier les infos transmises pour rajouter
- le nom du périphérique du type :
&Name=[?NAME? PERIPH_ID=[RAW_VALUE]]
- la pièce du périphérique ? ?ROOM?
- l'usage ?

L'idée est de pouvoir ensuite, suivant l'usage , pousser la donnée sur un infludb ....

Merci

On peut tout faire avec Node-RED ! :geek: :mrgreen:

Coté Eedomus
Capture_eedomus.PNG
Capture_eedomus.PNG (42.02 Kio) Consulté 25124 fois

Capture_eedomus_config.PNG
Capture_eedomus_config.PNG (29.21 Kio) Consulté 25107 fois


Coté Node-RED
Modifier la node Variables (eedomus_ip, user_api, secret_api)

On donc comme infos à partir d'un periph_id :

Capture_Node-RED.PNG
Capture_Node-RED.PNG (67.4 Kio) Consulté 25124 fois


Code : Tout sélectionner
[{"id":"2ff7c4b3.10c0cc","type":"group","z":"6e424c7e.d25704","name":"Récupérer les informations Eedomus à partir de periph_id","style":{"label":true,"stroke":"#ffC000","fill":"#ffefbf","fill-opacity":"0.33","color":"#000000"},"nodes":["b29e82d9.3de54","4fbf39a6.5ca368","a0badef.4ac472","157e3ea2.7f9221","961a8713.481d38","9e3e723b.16d5c","e882e9c1.63aec8","353cc887.cb9368","7973c34a.21a5ec","bdd0c90.1865e38","474a5e6c.82079","e5959952.204638","6628fb8a.88b2c4","2e4bbb5c.bee4c4"],"x":254,"y":79,"w":992,"h":382},{"id":"b29e82d9.3de54","type":"http in","z":"6e424c7e.d25704","g":"2ff7c4b3.10c0cc","name":"","url":"/eedomus/nodeRed","method":"get","upload":false,"swaggerDoc":"","x":390,"y":180,"wires":[["4fbf39a6.5ca368","e882e9c1.63aec8"]]},{"id":"4fbf39a6.5ca368","type":"template","z":"6e424c7e.d25704","g":"2ff7c4b3.10c0cc","name":"response","field":"payload","fieldType":"msg","format":"json","syntax":"mustache","template":"{\n    \"success\": 1,\n    \"payload\": {\n        \"periphId\": \"{{payload.periph_id}}\"\n    }\n}","output":"json","x":420,"y":120,"wires":[["a0badef.4ac472"]]},{"id":"a0badef.4ac472","type":"http response","z":"6e424c7e.d25704","g":"2ff7c4b3.10c0cc","name":"","statusCode":"","headers":{},"x":570,"y":120,"wires":[]},{"id":"157e3ea2.7f9221","type":"http request","z":"6e424c7e.d25704","g":"2ff7c4b3.10c0cc","name":"periph.list","method":"GET","ret":"obj","paytoqs":"ignore","url":"http://{{ eedomus_ip }}/api/get?api_user={{ api_user }}&api_secret={{ api_secret }}&action=periph.list","tls":"","persist":false,"proxy":"","authType":"","x":660,"y":240,"wires":[["961a8713.481d38"]]},{"id":"961a8713.481d38","type":"function","z":"6e424c7e.d25704","g":"2ff7c4b3.10c0cc","name":"Find periph.list info by periph_id","func":"// find info by periphId\nfor (var periph of msg.payload.body) {\n    if(periph.periph_id === msg.periph_id) {\n        msg.payload = periph;\n        \n        break;\n    }\n}\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":890,"y":240,"wires":[["7973c34a.21a5ec"]]},{"id":"9e3e723b.16d5c","type":"http request","z":"6e424c7e.d25704","g":"2ff7c4b3.10c0cc","name":"periph.caract show_config","method":"GET","ret":"obj","paytoqs":"ignore","url":"http://{{ eedomus_ip }}/api/get?api_user={{ api_user }}&api_secret={{ api_secret }}&action=periph.caract&periph_id={{ periph_id }}&show_config=1","tls":"","persist":false,"proxy":"","authType":"","x":710,"y":300,"wires":[["353cc887.cb9368"]]},{"id":"e882e9c1.63aec8","type":"change","z":"6e424c7e.d25704","g":"2ff7c4b3.10c0cc","name":"Variables","rules":[{"t":"set","p":"eedomus_ip","pt":"msg","to":"EEDOMUS_IP","tot":"str"},{"t":"set","p":"api_user","pt":"msg","to":"API_USER","tot":"str"},{"t":"set","p":"api_secret","pt":"msg","to":"API_SECRET","tot":"str"},{"t":"set","p":"periph_id","pt":"msg","to":"payload.periph_id","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":620,"y":180,"wires":[["157e3ea2.7f9221","9e3e723b.16d5c","bdd0c90.1865e38","e5959952.204638"]],"info":"Modifier les variables :\needomus_api= Ip locale de l'eedomus\napi_user=api_user Eedomus\napi_secret=api_secret Eedomus"},{"id":"353cc887.cb9368","type":"debug","z":"6e424c7e.d25704","g":"2ff7c4b3.10c0cc","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1130,"y":300,"wires":[]},{"id":"7973c34a.21a5ec","type":"debug","z":"6e424c7e.d25704","g":"2ff7c4b3.10c0cc","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1130,"y":240,"wires":[]},{"id":"bdd0c90.1865e38","type":"http request","z":"6e424c7e.d25704","g":"2ff7c4b3.10c0cc","name":"periph.history &show_all- /!\\CLOUD/!\\","method":"GET","ret":"obj","paytoqs":"ignore","url":"http://api.eedomus.com/get?api_user={{ api_user }}&api_secret={{ api_secret }}&action=periph.history&periph_id={{ periph_id }}&show_all=1","tls":"","persist":false,"proxy":"","authType":"","x":750,"y":420,"wires":[["474a5e6c.82079"]]},{"id":"474a5e6c.82079","type":"debug","z":"6e424c7e.d25704","g":"2ff7c4b3.10c0cc","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1130,"y":420,"wires":[]},{"id":"e5959952.204638","type":"http request","z":"6e424c7e.d25704","g":"2ff7c4b3.10c0cc","name":"periph.value_list","method":"GET","ret":"obj","paytoqs":"ignore","url":"http://{{ eedomus_ip }}/api/get?api_user={{ api_user }}&api_secret={{ api_secret }}&action=periph.value_list&periph_id={{ periph_id }}&show_config=1","tls":"","persist":false,"proxy":"","authType":"","x":680,"y":360,"wires":[["6628fb8a.88b2c4"]]},{"id":"6628fb8a.88b2c4","type":"debug","z":"6e424c7e.d25704","g":"2ff7c4b3.10c0cc","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1130,"y":360,"wires":[]},{"id":"2e4bbb5c.bee4c4","type":"comment","z":"6e424c7e.d25704","g":"2ff7c4b3.10c0cc","name":"<= Changer les variables","info":"","x":810,"y":180,"wires":[]}]


Voilà avec ça tu as toutes les informations que l'on peut récupérer grâce à l'API Eedomus
ZWave / RFXCom / broadlink RM /Google Mini / Yeelight / Xiaomi Vacuum V1 / Shelly <3 / Node-RED <3 <3
[Store] Shelly
KikiFUNstyle
 
Messages : 908
Inscription : 24 Avr 2014
Localisation : Toulouse

Re: Intégration Eedomus -> Node-RED

Messagepar Michteedo » 14 Oct 2021 09:12

Bonjour, après vous avoir demander qqls renseignements j'ai vu ce sujet, je m y affaire mais ouf

Je démarre, a suivre...MI
Michteedo
 
Messages : 109
Inscription : 24 Avr 2018

Re: Intégration Eedomus -> Node-RED

Messagepar soundfab » 27 Déc 2021 12:37

bonjour , je cherche à intégrer le node eedomus sur mon node red. mon node red est installé sur mon home assistant sur virtual box . quelqu'un connait il la marche à suivre ?
Merci à tous . Bonne journée.
soundfab
 
Messages : 127
Inscription : 27 Nov 2017

Re: Intégration Eedomus -> Node-RED

Messagepar KikiFUNstyle » 27 Déc 2021 12:48

soundfab a écrit:bonjour , je cherche à intégrer le node eedomus sur mon node red. mon node red est installé sur mon home assistant sur virtual box . quelqu'un connait il la marche à suivre ?
Merci à tous . Bonne journée.

Salut,

Il n'y a pas de node Eedomus, cela utilise des nodes par défaut dans Node-RED.

Lis le sujet tu as pas mal d'informations pour avoir un exemple de faire communiquer Eedomus vers Node-RED.

Après reste à savoir ce que tu veux faire ...
ZWave / RFXCom / broadlink RM /Google Mini / Yeelight / Xiaomi Vacuum V1 / Shelly <3 / Node-RED <3 <3
[Store] Shelly
KikiFUNstyle
 
Messages : 908
Inscription : 24 Avr 2014
Localisation : Toulouse

Re: Intégration Eedomus -> Node-RED

Messagepar soundfab » 27 Déc 2021 15:48

merci pour ta réponse. je souhaiterai plusieurs choses :
transmettre la valeur de certains périphériques d'eedomus à node red puis a Home assistant , et inversement .
controler certains périphériques de home assistant depuis eedomus via Node Red.
soundfab
 
Messages : 127
Inscription : 27 Nov 2017

Re: Intégration Eedomus -> Node-RED

Messagepar KikiFUNstyle » 27 Déc 2021 18:23

Tu peux suivre ce tuto
viewtopic.php?f=12&t=10587&p=102237&sid=3918f382956222ac9efa7a075870dc38#p97981

Tu pourras faire communiquer ta Eedomus avec Node-RED puis ensuite Home Assistant ou où tu veux.

Et pour faire communiquer Home Assistant vers Eedomus
Code : Tout sélectionner
[{"id":"e839d759.55c978","type":"group","z":"2b8f5f47.bb263","name":"Prise LIDL","style":{"label":true},"nodes":["b5a21f1e.8dd7a","a575b1f2.3738f","23955067.62584","c4055286.07db8","5cd4db77.2c7ff4","783767c2.550d28","f5b72ff0.013b3","d4adb34f.8ab13","8336076.a197df8","6f70281e.fba9e8"],"x":54,"y":1559,"w":972,"h":302},{"id":"b5a21f1e.8dd7a","type":"http in","z":"2b8f5f47.bb263","g":"e839d759.55c978","name":"","url":"/eedomus/lidl/set/on","method":"get","upload":false,"swaggerDoc":"","x":190,"y":1600,"wires":[["a575b1f2.3738f","23955067.62584"]]},{"id":"a575b1f2.3738f","type":"http response","z":"2b8f5f47.bb263","g":"e839d759.55c978","name":"","statusCode":"","headers":{},"x":190,"y":1660,"wires":[]},{"id":"23955067.62584","type":"api-call-service","z":"2b8f5f47.bb263","g":"e839d759.55c978","name":"prise LIDL on","server":"f9bd5c6.6d37fa","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.prise_lidl","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":430,"y":1600,"wires":[[]]},{"id":"c4055286.07db8","type":"api-call-service","z":"2b8f5f47.bb263","g":"e839d759.55c978","name":"prise LIDL off","server":"f9bd5c6.6d37fa","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.prise_lidl","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":430,"y":1720,"wires":[[]]},{"id":"5cd4db77.2c7ff4","type":"http in","z":"2b8f5f47.bb263","g":"e839d759.55c978","name":"","url":"/eedomus/lidl/set/off","method":"get","upload":false,"swaggerDoc":"","x":190,"y":1720,"wires":[["a575b1f2.3738f","c4055286.07db8"]]},{"id":"783767c2.550d28","type":"server-state-changed","z":"2b8f5f47.bb263","g":"e839d759.55c978","name":"MAJ prise LIDL sur Eedomus","server":"f9bd5c6.6d37fa","version":3,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"switch.prise_lidl","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":200,"y":1800,"wires":[["f5b72ff0.013b3"]]},{"id":"f5b72ff0.013b3","type":"change","z":"2b8f5f47.bb263","g":"e839d759.55c978","name":"flow context to msg context","rules":[{"t":"set","p":"eedomus","pt":"msg","to":"eedomus","tot":"flow"},{"t":"set","p":"periphId","pt":"msg","to":"2427281","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":480,"y":1800,"wires":[["8336076.a197df8"]],"info":"Modifier les variables :\needomus_api= Ip locale de l'eedomus\napi_user=api_user Eedomus\napi_secret=api_secret Eedomus"},{"id":"d4adb34f.8ab13","type":"http request","z":"2b8f5f47.bb263","g":"e839d759.55c978","name":"LIDL set action on","method":"GET","ret":"obj","paytoqs":"ignore","url":"http://{{ eedomus.ip }}/api/set?api_user={{ eedomus.api_user }}&api_secret={{ eedomus.api_secret }}&action=periph.value&periph_id={{ periphId }}&value=100","tls":"","persist":false,"proxy":"","authType":"","x":910,"y":1780,"wires":[[]]},{"id":"8336076.a197df8","type":"switch","z":"2b8f5f47.bb263","g":"e839d759.55c978","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":710,"y":1800,"wires":[["d4adb34f.8ab13"],["6f70281e.fba9e8"]]},{"id":"6f70281e.fba9e8","type":"http request","z":"2b8f5f47.bb263","g":"e839d759.55c978","name":"LIDL set action off","method":"GET","ret":"obj","paytoqs":"ignore","url":"http://{{ eedomus.ip }}/api/set?api_user={{ eedomus.api_user }}&api_secret={{ eedomus.api_secret }}&action=periph.value&periph_id={{ periphId }}&value=0","tls":"","persist":false,"proxy":"","authType":"","x":910,"y":1820,"wires":[[]]},{"id":"f9bd5c6.6d37fa","type":"server","name":"Home Assistant","version":1,"addon":false,"rejectUnauthorizedCerts":false,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]
ZWave / RFXCom / broadlink RM /Google Mini / Yeelight / Xiaomi Vacuum V1 / Shelly <3 / Node-RED <3 <3
[Store] Shelly
KikiFUNstyle
 
Messages : 908
Inscription : 24 Avr 2014
Localisation : Toulouse

Re: Intégration Eedomus -> Node-RED

Messagepar soundfab » 28 Déc 2021 15:57

merci beaucoup c'est top .
par contre quand je suis le tutoriel pour faire communiquer eedomus vers HA , coté eedomus quand je teste le capteur html. j ai une erreur .
<html>
<head><title>401 Authorization Required</title></head>
<body>
<center><h1>401 Authorization Required</h1></center>
<hr><center>nginx</center>
</body>
</html>
soundfab
 
Messages : 127
Inscription : 27 Nov 2017

Re: Intégration Eedomus -> Node-RED

Messagepar KikiFUNstyle » 28 Déc 2021 16:16

Il faut mettre tes identifiants Eedomus

Code : Tout sélectionner
[{"id":"6684e666b55217ac","type":"group","z":"2b8f5f47.bb263","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["12aa97c1548826c8","792e6b762ebb3adc"],"x":194,"y":139,"w":342,"h":82},{"id":"12aa97c1548826c8","type":"inject","z":"2b8f5f47.bb263","g":"6684e666b55217ac","name":"","props":[],"repeat":"","crontab":"","once":true,"onceDelay":0.1,"topic":"","payloadType":"str","x":290,"y":180,"wires":[["792e6b762ebb3adc"]]},{"id":"792e6b762ebb3adc","type":"change","z":"2b8f5f47.bb263","g":"6684e666b55217ac","name":"init Eedomus","rules":[{"t":"set","p":"eedomus.ip","pt":"flow","to":"_Mettre_IP_EEDOMUS_","tot":"str"},{"t":"set","p":"eedomus.api_user","pt":"flow","to":"_Mettre_USER_EEDOMUS_","tot":"str"},{"t":"set","p":"eedomus.api_secret","pt":"flow","to":"_Mettre_SECRET_EEDOMUS_","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":440,"y":180,"wires":[[]],"info":"Modifier les variables :\needomus_api= Ip locale de l'eedomus\napi_user=api_user Eedomus\napi_secret=api_secret Eedomus"}]


Pense à modifier :
- IP Eedomus
- user Eedomus
- secret Eedomus

Sinon tu modifies directement les variables avec les valeurs ...
ZWave / RFXCom / broadlink RM /Google Mini / Yeelight / Xiaomi Vacuum V1 / Shelly <3 / Node-RED <3 <3
[Store] Shelly
KikiFUNstyle
 
Messages : 908
Inscription : 24 Avr 2014
Localisation : Toulouse

Re: Intégration Eedomus -> Node-RED

Messagepar KikiFUNstyle » 28 Déc 2021 16:21

Sinon mets un screenshot de ce que tu fais et où tu as cette erreur :roll:
ZWave / RFXCom / broadlink RM /Google Mini / Yeelight / Xiaomi Vacuum V1 / Shelly <3 / Node-RED <3 <3
[Store] Shelly
KikiFUNstyle
 
Messages : 908
Inscription : 24 Avr 2014
Localisation : Toulouse

Re: Intégration Eedomus -> Node-RED

Messagepar soundfab » 28 Déc 2021 16:42

Capture d’écran 2021-12-28 à 16.40.44.png
Capture d’écran 2021-12-28 à 16.40.44.png (67.54 Kio) Consulté 21519 fois
Capture d’écran 2021-12-28 à 16.40.08.png
Capture d’écran 2021-12-28 à 16.40.08.png (97.04 Kio) Consulté 21519 fois
soundfab
 
Messages : 127
Inscription : 27 Nov 2017

Re: Intégration Eedomus -> Node-RED

Messagepar KikiFUNstyle » 28 Déc 2021 17:06

Il est sécurisé ton Node-RED ?
401 veut dire que tu n'est pas autorisé ...

Si tu appel ton node RED avec
Code : Tout sélectionner
http://[valeur de VAR1]/pushEedomus/periphId=1040004&value=0


Tu dois avoir une 401 logiquement
ZWave / RFXCom / broadlink RM /Google Mini / Yeelight / Xiaomi Vacuum V1 / Shelly <3 / Node-RED <3 <3
[Store] Shelly
KikiFUNstyle
 
Messages : 908
Inscription : 24 Avr 2014
Localisation : Toulouse

Re: Intégration Eedomus -> Node-RED

Messagepar soundfab » 28 Déc 2021 17:15

quand je tape l'adresse il me demande un identifiant et mot de passe donc oui il est sécurisé . comment enlever le mot de passe ?
soundfab
 
Messages : 127
Inscription : 27 Nov 2017

Re: Intégration Eedomus -> Node-RED

Messagepar KikiFUNstyle » 29 Déc 2021 00:54

Regarde du côté de home assistant dans http node, tu as dû mettre un login / mdp

Screenshot_20211229-005217_Home Assistant.jpg
Screenshot_20211229-005217_Home Assistant.jpg (277.36 Kio) Consulté 21474 fois
ZWave / RFXCom / broadlink RM /Google Mini / Yeelight / Xiaomi Vacuum V1 / Shelly <3 / Node-RED <3 <3
[Store] Shelly
KikiFUNstyle
 
Messages : 908
Inscription : 24 Avr 2014
Localisation : Toulouse

Re: Intégration Eedomus -> Node-RED

Messagepar soundfab » 29 Déc 2021 11:27

Merci vraiment pour ton aide . je n'y connais pas grand chose en Node Red. je débute vraiment.
J'ai enlevé le mot de passe mais même résultat...
Le code que tu m'as donné pour les codes eedomus , je dois le mettre ou ? dans quel flow ?
dans ton tuto , y'a t-il des choses à modifier ou juste coller le code dans importer un flow ?
soundfab
 
Messages : 127
Inscription : 27 Nov 2017

Suivant

Retour vers Mes usages

Qui est en ligne ?

Utilisateurs parcourant ce forum : Aucun utilisateur inscrit et 34 invité(s)