en3rgy / 14105_go-echarger Goto Github PK
View Code? Open in Web Editor NEWGira KNX Homeserver logic module to interact with an go-eCharger.
License: MIT License
Gira KNX Homeserver logic module to interact with an go-eCharger.
License: MIT License
It would be nice to have amx as an input object due to non flash wasting of "amp" by switching often the current power since to changing solar power.
When converting units, Jason value shall be casted to int/float.
The nrg value of the Wallbox is an array of 15 elements. To access them without adding 15 additional outputs, output them as a Json string.
Hi @En3rGy,
I imported release 0.5 but that seemingly did not have JSON output for the "nrg" field enabled yet as mentioned here:
#4
So i downloaded and built the latest source version from github.
The JSON field was available in the Logic Module but was not populated with any data.
When looking at the code I found that the function to set the output field was not there:
14105_go-eCharger/src/14105_go-eCharger (14105).py
Lines 247 to 254 in fc0a768
after line 253 one would need
self._set_output_value(self.PIN_O_NRG_JSON, json.dumps(nrg_json))
Unfortunately it looks like the string fields are limited in length in the Module so the data gets cut short. To overcome this issue I split the field into 3 individual Fields:
https://github.com/En3rGy/14105_go-eCharger/compare/main...Lightning1984:patch-1?expand=1
Now the data is correctly exported in JSON format and can be further evaluated with e.g. the JSON Parser.
regards
On_input does not react on change of interval. Should trigger get_data.
Ich hatte bisher die aktuelle Ladeleistung aus dem Ausgang 15 (L1+L2+L3) berechnet, jetzt fiel mir aber auf, dass die tatsächliche Ladeleistung niedriger ist.
Sie wird über das Objekt "nrg[11]" zurückgemeldet mit Faktor 0,01 kW, 360 bedeutet also 3,6kW.
In dem JSON auf Ausgang 16 ist der Wert als "kw Sum" enthalten inkl. Umrechnung des 0,01 Faktors:
{'V N': 1, 'P% L2': 100, 'P% L3': 100, 'P% L1': 100, 'V L2': 220, 'V L3': 225, 'kW L1': 0.9, 'V L1': 225, 'kW N': 0.0, 'P% N': 1, 'kW L3': 0.9, 'kW Sum': 2.94, 'kW L2': 0.9, 'A L3': 4.4, 'A L2': 4.3, 'A L1': 4.3}Allerdings ist das ja kein "richtiges" JSON, dann müsste es
"kW Sum" : 2.94
oder
"kW Sum" : "2.94"
heißen.
In last block, when sending data, URL and Port shall be read from logic block input values and provides as sURL and nPort as parameters.
Scaling of value is done by 1/10 what might be wrong
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.