GithubHelp home page GithubHelp logo

Comments (5)

schliepi avatar schliepi commented on August 20, 2024 1

Ja, läuft mit den beiden Werten ersetzt super.

Konfiguration der Werte analog zur Tasmota-Konfiguration

https://tasmota.github.io/docs/Smart-Meter-Interface/#meter-definition
<jsonPrefix> | Prefix for Web UI and MQTT JSON payload. Up to 7 characters.
Bei Dir "SML", bei mir "DWS74" - Vorschlag Konfigurationstype: meterDefinitionMqttPrefix

https://tasmota.github.io/docs/Smart-Meter-Interface/#meter-metrics
<var> | MQTT label (max. 23 characters)
Bei Dir "curr_w", bei mir "Power" - Vorschlag Konfigurationstype: meterMetricsMqttLabel

Kriegst auch noch ein paar weitere Issues :-)

from hoymileszeroexport.

reserve85 avatar reserve85 commented on August 20, 2024

ja, schwieriges Thema. Ist eben bei jedem Zähler unterschiedlich (je nach Script) und muss daher individuell angepasst werden.
Bei dir läuft es dann wenn du "SML" durch "DWS74" ersetzt und "curr_w" durch "Power"?
Ich kann die beiden Werte prinzipiell mit oben in die Types einfügen...

from hoymileszeroexport.

reserve85 avatar reserve85 commented on August 20, 2024

Ja habs mal so benannt:

# the following three constants describes how to navigate through the Tasmota-JSON
# e.g. JSON_Result = {"StatusSNS":{"Time":"2023-02-28T12:49:49","SML":{"total_kwh":15011.575,"curr_w":-71}}}
TAS_JSON_STATUS = 'StatusSNS'
TAS_JSON_PAYLOAD_MQTT_PREFIX = 'SML' # Prefix for Web UI and MQTT JSON payload
TAS_JSON_POWER_MQTT_LABEL = 'curr_w' # Power-MQTT label

from hoymileszeroexport.

schliepi avatar schliepi commented on August 20, 2024

Ja, gut so. Danke!

from hoymileszeroexport.

Ollipop030 avatar Ollipop030 commented on August 20, 2024

Habe die Änderungen auch bei mir übernommen (obwohl es keine wirkliche Änderung seit vorgestern gab). Bei mir muss das ganze so aussehen:

`#TAS_JSON_STATUS = 'StatusSNS'

#TAS_JSON_PAYLOAD_MQTT_PREFIX = 'SML' # Prefix for Web UI and MQTT JSON payload

TAS_JSON_POWER_MQTT_LABEL = 'Leistung170' # Power-MQTT label

TAS_JSON_E_POWER_MQTT_LABEL = 'Leistung270' # ExportPower-MQTT label`

Und dann natürlich Watts = int(ParsedData[TAS_JSON_POWER_MQTT_LABEL] - ParsedData[TAS_JSON_E_POWER_MQTT_LABEL])

da der Zähler bei mir zwei Werte ausgibt. Sollte klappen, Sonne ist schon zu niedrig um Einspeiseleistung zu begrenzen. Aber schön zu sehen, dass es immer flexibler wird.
Vielleicht wäre noch eine variable Domänenangabe interessant, sowas wie TAS_JSON_DOMAIN = '/cm?cmnd=status%2010'

from hoymileszeroexport.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.