Gå til innhold
  • Bli medlem
Støtt hjemmeautomasjon.no!
  • 0

Tibber2MQTT, hvordan sette opp ElWiz eller andre lignende saker.


SveinHa

Spørsmål

Etter katastrofale følger av Tibbernoden i Node-Red må jeg se etter alternativer. Feil eller manglende data fra Tibber KAN IKKE ta ned hele systemet mitt... Tenker MQTT er en ganske safe tilnærming men får ikke installert ElWiz. Prøvde meg også på Tibber-Pulse-Live med like dårlig suksess med begge...

 

Noen som har smørbrødliste noe slikt for Linux?

Lenke til kommentar
Del på andre sider

13 svar til spørsmålet

Anbefalte innlegg

  • 0

Prøvde meg et par timer med ElWiz i dag men fikk ikke gang på Tibber Pulse. Første forsøk var på en virtuell Linux Mint maskin men der feilet de fleste av npm installasjonene men det gikk langt bedre på en RPi. Da jeg ga opp brukte jeg en time på å få den tilbake til Tibber appen... Prøvde å følge instruksjonene så godt jeg kunne både for ElWiz og Tibber og plutselig fikk jeg liv i den igjen i Tibber appen uten at jeg skjønner hva som gjorde at den plutselig virket...

 

Brukte litt tid på å oppdage at i Tibber Pulse stod default mqtt port til 8883 og ikke 1883...

 

Noen som har ElWiz oppe og gå som kan fortelle litt...?

Lenke til kommentar
Del på andre sider

  • 0
SveinHa skrev (På 10.6.2022 den 14.55):

Prøvde meg et par timer med ElWiz i dag men fikk ikke gang på Tibber Pulse. Første forsøk var på en virtuell Linux Mint maskin men der feilet de fleste av npm installasjonene men det gikk langt bedre på en RPi. Da jeg ga opp brukte jeg en time på å få den tilbake til Tibber appen... Prøvde å følge instruksjonene så godt jeg kunne både for ElWiz og Tibber og plutselig fikk jeg liv i den igjen i Tibber appen uten at jeg skjønner hva som gjorde at den plutselig virket...

 

Brukte litt tid på å oppdage at i Tibber Pulse stod default mqtt port til 8883 og ikke 1883...

 

Noen som har ElWiz oppe og gå som kan fortelle litt...?

Den gode nyheten er en større oppdatering av ElWiz Nytt er funkskjonalitet for auto discovery i Home Assistant. Etter installasjon og litt justering i configfila glir den rett inn i HA. Anbefales å prøve hvis du har sterkt hjerte.

  • Like 1
Lenke til kommentar
Del på andre sider

  • 0

Da har jeg endelig fått Tibber Pulse til å sende data til MQTT. Ser en smule kryptisk ut og det er vel her ElWiz kommer inn. Data fra Tibber ser slik ut:

image.png.7d68f7f57c40bc14a171233c2f92ade9.png

 

En gang i blandt kommer er statusmelding i klartekst også.

 

Mener jeg har satt opp ElWiz riktig, ser jo ikke så hokus-pokus ut, og forventer resultater på meter/# men ingenting dukker opp der...

 

Noen gode ideer folkens? Ikke stort hjelp i dok.

Lenke til kommentar
Del på andre sider

  • 0
On 07/12/2022 at 18:41, SveinHa said:

Fant det akkurat nå, da virker det supert! Trodde det bare gjaldt seriell...

 

Hei! Helt ny i Node-RED og smarthus generelt - hvordan løste du dette? Har fått koblet opp tibber pulse mot mqtt og den spytter inn data hvert 10. sek. Har ikke funnet ut hvordan jeg skal få ElWiz til å fungere, får bl.a opp følgende i loggen:

 

Spoiler
17/10/2023
21:41:49
21:41:49 PM2          | App [currencies:2] online
17/10/2023
21:41:49
21:41:49 2|currencies | Error: EISDIR: illegal operation on a directory, read
17/10/2023
21:41:49
21:41:49 2|currencies |     at Object.readSync (node:fs:735:3)
17/10/2023
21:41:49
21:41:49 2|currencies |     at tryReadSync (node:fs:420:20)
17/10/2023
21:41:49
21:41:49 2|currencies |     at Object.readFileSync (node:fs:471:19)
17/10/2023
21:41:49
21:41:49 2|currencies |     at Utils.getStringFromFile (/app/node_modules/yamljs/lib/Utils.js:284:19)
17/10/2023
21:41:49
21:41:49 2|currencies |     at Yaml.parseFile (/app/node_modules/yamljs/lib/Yaml.js:46:21)
17/10/2023
21:41:49
21:41:49 2|currencies |     at Yaml.load (/app/node_modules/yamljs/lib/Yaml.js:78:17)
17/10/2023
21:41:49
21:41:49 2|currencies |     at Object.<anonymous> (/app/fetch-eu-currencies.js:11:21)
17/10/2023
21:41:49
21:41:49 2|currencies |     at Module._compile (node:internal/modules/cjs/loader:1241:14)
17/10/2023
21:41:49
21:41:49 2|currencies |     at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
17/10/2023
21:41:49
21:41:49 2|currencies |     at Module.load (node:internal/modules/cjs/loader:1091:32) {
17/10/2023
21:41:49
21:41:49 2|currencies |   errno: -21,
17/10/2023
21:41:49
21:41:49 2|currencies |   syscall: 'read',
17/10/2023
21:41:49
21:41:49 2|currencies |   code: 'EISDIR'
17/10/2023
21:41:49
21:41:49 2|currencies | }
17/10/2023
21:41:49
2023-10-17T21:41:49: PM2 log: App [currencies:2] exited with code [1] via signal [SIGINT]
17/10/2023
21:41:49
2023-10-17T21:41:49: PM2 log: Script /app/fetch-eu-currencies.js had too many unstable restarts (16). Stopped. "errored"
17/10/2023
21:41:49
21:41:49 PM2          | App [currencies:2] exited with code [1] via signal [SIGINT]
17/10/2023
21:41:49
21:41:49 PM2          | Script /app/fetch-eu-currencies.js had too many unstable restarts (16). Stopped. "errored"

 

 

Node-RED fungerer fint, men litt usikker på hvordan jeg går frem siden denne viser til en USB-serial port? Har som sagt en tibber topic i MQTT med all nødvendig data. Setter pris på alle tips!

Lenke til kommentar
Del på andre sider

  • 0
subzero skrev (59 minutter siden):

hvordan løste du dette?

image.png.dd84b1636b51fc1454b6201bc7962bd8.png

[{"id":"2aa639ba46bfcc8d","type":"comment","z":"d49bfe3335c3f7c9","name":"AMS-data fra Tibber Pulse","info":"","x":160,"y":30,"wires":[]},{"id":"d9874ed7c8440967","type":"AMS Decoder Kaifa","z":"d49bfe3335c3f7c9","name":"","x":120,"y":290,"wires":[["cd0fa4b9d8226adf","df097be176a24f1f","2a91913f7daf9e22","bde687413c90c7a6","9234bbdfb6418b2d","27a8339fb0c5d475","6edb531c751a4065","cfdf7b9fc703972c","66cf542e06529e43","a54c37f895885344","88c3f5d84ff88a9b","1d9b5feeed94aac8","a9f0fb26f7862659","a6abec71bb3bef02","26a0d97e8e1dff8e","4651a888ccfba17f","0c930bc668cd8f14","6634ac16d29c92be","825419a575373d8e"]]},{"id":"512a16c827d667bf","type":"mqtt in","z":"d49bfe3335c3f7c9","name":"","topic":"tibber","qos":"2","datatype":"auto","broker":"6db118ed1b0c56de","nl":false,"rap":true,"rh":0,"inputs":0,"x":90,"y":140,"wires":[["da4aee96aa960327"]]},{"id":"4ba0a529a3513749","type":"function","z":"d49bfe3335c3f7c9","name":"hex2str","func":"msg.payload = msg.payload.toString('hex');\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":100,"y":250,"wires":[["d9874ed7c8440967"]]},{"id":"316b9c4746de0552","type":"ui_text","z":"d49bfe3335c3f7c9","group":"ab0b4b6271303101","order":17,"width":0,"height":0,"name":"","label":"act pow pos","format":"{{msg.payload}}W","layout":"row-spread","className":"","x":510,"y":150,"wires":[]},{"id":"cd0fa4b9d8226adf","type":"change","z":"d49bfe3335c3f7c9","name":"act_pow_pos","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.act_pow_pos","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":320,"y":150,"wires":[["316b9c4746de0552","f902c51f3492bfdb","0c1e7b8db2a45148","2e4e5e7740b1a5e0"]]},{"id":"cb5c07e95696c22f","type":"ui_text","z":"d49bfe3335c3f7c9","group":"ab0b4b6271303101","order":18,"width":0,"height":0,"name":"","label":"act pow neg","format":"{{msg.payload}}W","layout":"row-spread","className":"","x":510,"y":180,"wires":[]},{"id":"2a91913f7daf9e22","type":"change","z":"d49bfe3335c3f7c9","name":"act_pow_neg","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.act_pow_neg","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":320,"y":180,"wires":[["cb5c07e95696c22f"]]},{"id":"02e52739b1778564","type":"ui_text","z":"d49bfe3335c3f7c9","group":"ab0b4b6271303101","order":16,"width":0,"height":0,"name":"","label":"Meter model","format":"{{msg.payload}}","layout":"row-spread","className":"","x":510,"y":120,"wires":[]},{"id":"df097be176a24f1f","type":"change","z":"d49bfe3335c3f7c9","name":"meter_model","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.meter_model","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":320,"y":120,"wires":[["02e52739b1778564"]]},{"id":"f478071c8e5cb5f8","type":"ui_text","z":"d49bfe3335c3f7c9","group":"ab0b4b6271303101","order":19,"width":0,"height":0,"name":"","label":"react pow pos","format":"{{msg.payload}}VAr","layout":"row-spread","className":"","x":520,"y":210,"wires":[]},{"id":"bde687413c90c7a6","type":"change","z":"d49bfe3335c3f7c9","name":"react_pow_pos","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.react_pow_pos","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":330,"y":210,"wires":[["f478071c8e5cb5f8"]]},{"id":"6415c3d212573f40","type":"ui_text","z":"d49bfe3335c3f7c9","group":"ab0b4b6271303101","order":20,"width":0,"height":0,"name":"","label":"react pow neg","format":"{{msg.payload}}VAr","layout":"row-spread","className":"","x":520,"y":240,"wires":[]},{"id":"9234bbdfb6418b2d","type":"change","z":"d49bfe3335c3f7c9","name":"react_pow_neg","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.react_pow_neg","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":330,"y":240,"wires":[["6415c3d212573f40"]]},{"id":"88b07d3419df26e6","type":"ui_text","z":"d49bfe3335c3f7c9","group":"ab0b4b6271303101","order":21,"width":0,"height":0,"name":"","label":"curr_L1","format":"{{msg.payload}} A","layout":"row-spread","className":"","x":620,"y":270,"wires":[]},{"id":"27a8339fb0c5d475","type":"change","z":"d49bfe3335c3f7c9","name":"curr_L1","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.curr_L1","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":310,"y":270,"wires":[["e17a590eaf38c069"]]},{"id":"b92aa0dbc528b85a","type":"ui_text","z":"d49bfe3335c3f7c9","group":"ab0b4b6271303101","order":22,"width":0,"height":0,"name":"","label":"curr_L2","format":"{{msg.payload}} A","layout":"row-spread","className":"","x":620,"y":300,"wires":[]},{"id":"6edb531c751a4065","type":"change","z":"d49bfe3335c3f7c9","name":"curr_L2","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.curr_L2","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":310,"y":300,"wires":[["ab769ab7a73d2f1b"]]},{"id":"cbe2db864b83d05d","type":"ui_text","z":"d49bfe3335c3f7c9","group":"ab0b4b6271303101","order":23,"width":0,"height":0,"name":"","label":"curr_L3","format":"{{msg.payload}} A","layout":"row-spread","className":"","x":620,"y":330,"wires":[]},{"id":"cfdf7b9fc703972c","type":"change","z":"d49bfe3335c3f7c9","name":"curr_L3","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.curr_L3","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":310,"y":330,"wires":[["b92108f128318400"]]},{"id":"c7bd2bc1e2d979ec","type":"ui_text","z":"d49bfe3335c3f7c9","group":"ab0b4b6271303101","order":24,"width":0,"height":0,"name":"","label":"volt_L1","format":"{{msg.payload}} V","layout":"row-spread","className":"","x":620,"y":360,"wires":[]},{"id":"825419a575373d8e","type":"change","z":"d49bfe3335c3f7c9","name":"volt_L1","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.volt_L1","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":310,"y":360,"wires":[["109e87c75ab99f8f"]]},{"id":"a068057361d32681","type":"ui_text","z":"d49bfe3335c3f7c9","group":"ab0b4b6271303101","order":25,"width":0,"height":0,"name":"","label":"volt_L2","format":"{{msg.payload}} V","layout":"row-spread","className":"","x":620,"y":390,"wires":[]},{"id":"66cf542e06529e43","type":"change","z":"d49bfe3335c3f7c9","name":"volt_L2","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.volt_L2","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":310,"y":390,"wires":[["9509aee50907afc2"]]},{"id":"9fa94094cca4661e","type":"ui_text","z":"d49bfe3335c3f7c9","group":"ab0b4b6271303101","order":26,"width":0,"height":0,"name":"","label":"volt_L3","format":"{{msg.payload}} V","layout":"row-spread","className":"","x":620,"y":420,"wires":[]},{"id":"a54c37f895885344","type":"change","z":"d49bfe3335c3f7c9","name":"volt_L3","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.volt_L3","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":310,"y":420,"wires":[["b31229757de20edf"]]},{"id":"e00a5ecf722b1935","type":"ui_text","z":"d49bfe3335c3f7c9","group":"ab0b4b6271303101","order":27,"width":0,"height":0,"name":"","label":"date_time","format":"{{msg.payload}}","layout":"row-spread","className":"","x":500,"y":450,"wires":[]},{"id":"88c3f5d84ff88a9b","type":"change","z":"d49bfe3335c3f7c9","name":"date_time","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.date_time","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":310,"y":450,"wires":[["e00a5ecf722b1935"]]},{"id":"8d48f1e047e10020","type":"ui_text","z":"d49bfe3335c3f7c9","group":"ab0b4b6271303101","order":28,"width":0,"height":0,"name":"","label":"act_energy_pos","format":"{{msg.payload}} kWh","layout":"row-spread","className":"","x":650,"y":480,"wires":[]},{"id":"1d9b5feeed94aac8","type":"change","z":"d49bfe3335c3f7c9","name":"act_energy_pos","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.act_energy_pos","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":330,"y":480,"wires":[["4fbeb7f27c2cd404"]]},{"id":"12cce230ad1ea38c","type":"ui_text","z":"d49bfe3335c3f7c9","group":"ab0b4b6271303101","order":29,"width":0,"height":0,"name":"","label":"act_energy_neg","format":"{{msg.payload}} kWh","layout":"row-spread","className":"","x":650,"y":510,"wires":[]},{"id":"a9f0fb26f7862659","type":"change","z":"d49bfe3335c3f7c9","name":"act_energy_neg","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.act_energy_neg","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":330,"y":510,"wires":[["4c20712177aa2ee6"]]},{"id":"bc3892361a9d5c08","type":"ui_text","z":"d49bfe3335c3f7c9","group":"ab0b4b6271303101","order":30,"width":0,"height":0,"name":"","label":"react_energy_pos","format":"{{msg.payload}} kVArh","layout":"row-spread","className":"","x":660,"y":540,"wires":[]},{"id":"a6abec71bb3bef02","type":"change","z":"d49bfe3335c3f7c9","name":"react_energy_pos","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.react_energy_pos","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":340,"y":540,"wires":[["342886d7da88f2fe"]]},{"id":"cfd7fc377135778d","type":"ui_text","z":"d49bfe3335c3f7c9","group":"ab0b4b6271303101","order":31,"width":0,"height":0,"name":"","label":"react_energy_neg","format":"{{msg.payload}} kVArh","layout":"row-spread","className":"","x":660,"y":570,"wires":[]},{"id":"26a0d97e8e1dff8e","type":"change","z":"d49bfe3335c3f7c9","name":"react_energy_neg","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.react_energy_neg","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":340,"y":570,"wires":[["63b8427f0ac96bc2"]]},{"id":"77bb37dba05492c8","type":"ui_text","z":"d49bfe3335c3f7c9","group":"ab0b4b6271303101","order":15,"width":0,"height":0,"name":"","label":"Meter ID","format":"{{msg.payload}}","layout":"row-spread","className":"","x":500,"y":90,"wires":[]},{"id":"4651a888ccfba17f","type":"change","z":"d49bfe3335c3f7c9","name":"meter_ID","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.meter_ID","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":310,"y":90,"wires":[["77bb37dba05492c8"]]},{"id":"28da6720644d498d","type":"ui_text","z":"d49bfe3335c3f7c9","group":"ab0b4b6271303101","order":14,"width":0,"height":0,"name":"","label":"obis_list_version","format":"{{msg.payload}}","layout":"row-spread","className":"","x":520,"y":60,"wires":[]},{"id":"0c930bc668cd8f14","type":"change","z":"d49bfe3335c3f7c9","name":"obis_list_version","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.obis_list_version","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":330,"y":60,"wires":[["28da6720644d498d"]]},{"id":"da4aee96aa960327","type":"switch","z":"d49bfe3335c3f7c9","name":"status?","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"status","vt":"str"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":100,"y":200,"wires":[["08644626be7c82b6"],["4ba0a529a3513749"]]},{"id":"08644626be7c82b6","type":"show-value","z":"d49bfe3335c3f7c9","name":"","path":"","x":680,"y":30,"wires":[["61c6737f3a9430f5"]]},{"id":"0c1e7b8db2a45148","type":"show-value","z":"d49bfe3335c3f7c9","name":"","path":"","x":740,"y":110,"wires":[[]]},{"id":"109e87c75ab99f8f","type":"function","z":"d49bfe3335c3f7c9","name":"Div 10","func":"var svar = \"\";\nvar value=msg.payload;\nvalue = Number(value/10);\nsvar = {payload:value};\nif (value >= 0) return svar;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":360,"wires":[["c7bd2bc1e2d979ec"]]},{"id":"9509aee50907afc2","type":"function","z":"d49bfe3335c3f7c9","name":"Div 10","func":"var svar = \"\";\nvar value=msg.payload;\nvalue = Number(value/10);\nsvar = {payload:value};\nif (value >= 0) return svar;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":390,"wires":[["a068057361d32681"]]},{"id":"b31229757de20edf","type":"function","z":"d49bfe3335c3f7c9","name":"Div 10","func":"var svar = \"\";\nvar value=msg.payload;\nvalue = Number(value/10);\nsvar = {payload:value};\nif (value >= 0) return svar;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":420,"wires":[["9fa94094cca4661e"]]},{"id":"4fbeb7f27c2cd404","type":"function","z":"d49bfe3335c3f7c9","name":"Div 1k","func":"var svar = \"\";\nvar value=msg.payload;\nvalue = Number(value/1000).toFixed(1);\nsvar = {payload:value};\nif (value >= 0) return svar;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":480,"wires":[["8d48f1e047e10020"]]},{"id":"4c20712177aa2ee6","type":"function","z":"d49bfe3335c3f7c9","name":"Div 1k","func":"var svar = \"\";\nvar value=msg.payload;\nvalue = Number(value/1000).toFixed(2);\nsvar = {payload:value};\nif (value >= 0) return svar;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":510,"wires":[["12cce230ad1ea38c"]]},{"id":"342886d7da88f2fe","type":"function","z":"d49bfe3335c3f7c9","name":"Div 1k","func":"var svar = \"\";\nvar value=msg.payload;\nvalue = Number(value/1000).toFixed(1);\nsvar = {payload:value};\nif (value >= 0) return svar;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":540,"wires":[["bc3892361a9d5c08"]]},{"id":"63b8427f0ac96bc2","type":"function","z":"d49bfe3335c3f7c9","name":"Div 1k","func":"var svar = \"\";\nvar value=msg.payload;\nvalue = Number(value/1000).toFixed(1);\nsvar = {payload:value};\nif (value >= 0) return svar;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":570,"wires":[["cfd7fc377135778d"]]},{"id":"b92108f128318400","type":"function","z":"d49bfe3335c3f7c9","name":"Div 1k","func":"var svar = \"\";\nvar value=msg.payload;\nvalue = Number(value/1000).toFixed(1);\nsvar = {payload:value};\nif (value >= 0) return svar;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":330,"wires":[["cbe2db864b83d05d"]]},{"id":"ab769ab7a73d2f1b","type":"function","z":"d49bfe3335c3f7c9","name":"Div 1k","func":"var svar = \"\";\nvar value=msg.payload;\nvalue = Number(value/1000).toFixed(1);\nsvar = {payload:value};\nif (value >= 0) return svar;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":300,"wires":[["b92aa0dbc528b85a"]]},{"id":"e17a590eaf38c069","type":"function","z":"d49bfe3335c3f7c9","name":"Div 1k","func":"var svar = \"\";\nvar value=msg.payload;\nvalue = Number(value/1000).toFixed(1);\nsvar = {payload:value};\nif (value >= 0) return svar;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":270,"wires":[["88b07d3419df26e6"]]},{"id":"61c6737f3a9430f5","type":"debug","z":"d49bfe3335c3f7c9","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":850,"y":30,"wires":[]},{"id":"2e4e5e7740b1a5e0","type":"link out","z":"d49bfe3335c3f7c9","name":"ActPowOut","mode":"link","links":["45be7b2359c6581b"],"x":725,"y":220,"wires":[]},{"id":"6db118ed1b0c56de","type":"mqtt-broker","name":"DaleMQTT","broker":"172.16.0.94","port":"1883","clientid":"","autoConnect":true,"usetls":false,"protocolVersion":"5","keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":""},{"id":"ab0b4b6271303101","type":"ui_group","name":"Kolonne1","tab":"e3ef94435f0945bf","order":1,"disp":false,"width":"7","collapse":false,"className":""},{"id":"e3ef94435f0945bf","type":"ui_tab","name":"Teknisk","icon":"timeline","order":17,"disabled":false,"hidden":false}]

 

Lenke til kommentar
Del på andre sider

  • 0

Pussig sammentreff. I går har noen forsynt seg med Kaifa-dekoderen fra ElWiz og brukt den i en fork av "node-red-contrib-ams-decoder-mod".

https://github.com/jh1982/node-red-contrib-ams-decoder-mod/blob/main/src/ams_decoder_kaifa.js

 

Her er originalkoden: https://github.com/iotux/ElWiz/blob/master/ams/kaifa.js

 

Jeg måtte forsyne meg litt selv for å implementere en Kamstrup-dekoder for ElWiz. Ironisk, ikke sant?

Slik er det med åpen kildekode 🤓

Lenke til kommentar
Del på andre sider

Bli med i samtalen

Du kan publisere innhold nå og registrere deg senere. Hvis du har en konto, logg inn nå for å poste med kontoen din.

Gjest
Svar på spørsmålet...

×   Du har limt inn tekst med formatering.   Lim inn uten formatering i stedet

  Du kan kun bruke opp til 75 smilefjes.

×   Lenken din har blitt bygget inn på siden automatisk.   Vis som en ordinær lenke i stedet

×   Tidligere tekst har blitt gjenopprettet.   Tøm tekstverktøy

×   Du kan ikke lime inn bilder direkte. Last opp eller legg inn bilder fra URL.

×
×
  • Opprett ny...

Viktig informasjon

Vi har plassert informasjonskapsler/cookies på din enhet for å gjøre denne siden bedre. Du kan justere dine innstillinger for informasjonskapsler, ellers vil vi anta at dette er ok for deg.