Giter Club home page Giter Club logo

Comments (8)

tbnobody avatar tbnobody commented on August 24, 2024 2

Ich hab da mal ein wenig was gebaut: 1124a9a

In HASS wird das erstmal korrekt angezeigt usw. Ob auch Werte kommen (wovon ich mal ausgehe) wird sich morgen zeigen wenn Licht vorhanden ist.

image

from opendtu.

tbnobody avatar tbnobody commented on August 24, 2024

Hallo Ingo,

ich finde die Idee gut HASS Support einzubauen.
Man müsste dafür nicht mal meine aktuelle Topic Struktur ändern. Es braucht nur zusätzlich Einträge in der Auto-Discovery Topic von HASS.

zigbee2mqtt oder espurna macht sowas:
image

{"dev":{"ids":["espurna_f93b65"],"name":"SolarPanel","sw":"1.15.0-dev.gitc95ea71c","mf":"BLITZWOLF","mdl":"BWSHPX_V23"},"uniq_id":"espurna_f93b65_current_0","name":"SolarPanel current 0","stat_t":"Garden/Terrace/SolarPanel/current","unit_of_meas":"A"}

Dadurch hat man keine JSON values in standard MQTT Topics (die gehören sich da nämlich nicht hin) und HASS bekommt trotzdem was es will.

from opendtu.

tbnobody avatar tbnobody commented on August 24, 2024

Unter espurna schauen die HASS config parameter einfach so aus:
image

das könnte ich mir für OpenDTU auch so vorstellen.

from opendtu.

itn3rd77 avatar itn3rd77 commented on August 24, 2024

Hi, hört und sieht sich gut an!

Irgendwie hing ich gedanklich fest, das ich die eigentlichen Messwerte auch bei den Sensor packen muss. Aber klar macht Sinn die Werte so zu lassen und einfach nur die Auto-Discovery Topics anzulegen.

Hast Du Zeit das zu machen? Wie kann ich unterstützen?

Danke und Gruß
Ingo

from opendtu.

itn3rd77 avatar itn3rd77 commented on August 24, 2024

Hi und guten Morgen!

Habe mein Baby gleich mal mit dem Update versehen und ICH BIN BEGEISTERT 🤩
Wirklich super klasse in welcher Geschwindigkeit Du das hinzauberst - Chapeau!

Besten Dank und viele Grüße
Ingo

from opendtu.

jayefjay avatar jayefjay commented on August 24, 2024

Hallo, das auto discovery funktioniert in Home Assistant wunderbar, allerdings ist mit dem konkreten Setup die Nutzung im Energy Dashboard (https://www.home-assistant.io/blog/2021/08/04/home-energy-management/) nicht möglich da der Sensor hier nicht aufscheint.

Folgende Message kommt bei Home Assistent für die aktuelle Power an:

{
"name": "HM800 Power",
"stat_t": "solar/114181014957/0/power",
"unit_of_meas": "W",
"uniq_id": "114181014957_ch0_Power",
"dev": {
"name": "HM800",
"ids": "114181014957",
"cu": "http://192.168.1.44",
"mf": "OpenDTU",
"mdl": "HM-600, HM-700, HM-800",
"sw": "g725d482"
},
"exp_aft": 10,
"dev_cla": "power",
"stat_cla": "measurement"
}

Das Problem scheint die gewählte device_class "power" zu sein, um automatisch für die Energiestatistiken in Home Assistant zu funktionieren müsste diese wohl "energy" sein. Siehe hier: https://developers.home-assistant.io/docs/core/entity/sensor/#long-term-statistics

from opendtu.

tbnobody avatar tbnobody commented on August 24, 2024

Hm sicher das man da den aktuellen Verbrauch und nicht YieldTotal o.ä. haben möchte? Power gibt ja nur den aktuellen Ertrag an. YieldTotal die gibt erzeugten kWh zurück (die HASS auch auf Tage/Monate etc. aufteilen/kumulieren kann).
Habe es auch hier gerade getestet. YieldTotal wird angezeigt und lässt sich im EnergieDashboard verwenden.

from opendtu.

github-actions avatar github-actions commented on August 24, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion or issue for related concerns.

from opendtu.

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.