Closed AUSMAUS closed 1 year ago
Das war schon immer so. Status8 wird für mehrere Parameter ausgelesen (Power+Energy). Die Tasmota Implemetierung cached die Abfragen in einem evcc Cycle nicht! War auch bisher nicht nörig ==> NO ISSUE!
Hinweis:
Bei deinem pv2
Meter, solltest du usage
von grid
auf pv
ändern.
Ich Glaube, dass in der Vorgängerversion oder Anfangs, den doppelten Eintrag in der PV noch nicht gab. War nur im Stromzähler
Das kann sein, in den ersten Tasmota Versionen wurde nur Power ausgelesen ...
Als am Anfang die meine Anlage konfigurierte stand bei pv2 auch pv drinnen. Da hatte ich das Problem, dass bei PV nichts angezeigt wurde. Dann habe ich eine Anfrage in github gestartet und ich bekam die Empfehlung dies auf grid zu ändern. https://github.com/evcc-io/evcc/discussions/8084
Ich habe in pv2 grid auf pv geändert und dann war bei Erzeugung wieder 0 drinn gestanden. Jetzt steht wieder grid drinnen und nun wird wieder was angezeigt.
Ah, ok, ich erinnere mich. Kann es sein, dass Du über einen Lesekopf einen Zähler ausliest, der deinen Solarstrom misst? Dann passt das mit usage: grid.
Ein Lesekopf für Hausstrom und ein weiterer Lesekopf PV-Erzeugung
OK, passt (mit grid)! :-)
Was ist mit den Doppelanfragen? Die sind wirklich unnötig
Nope sind sie nicht, da einmal aus dem JSON Power ausgelesen wird und einmal Energy. Hast du funktional ein Problem damit?
Wenn es sooo sehr stört, Alternative wäre ein custom-meter, bei dem nur power
abgefragt wird
- name: grid1
type: custom
power:
source: http
uri: http://192.168.178.29/cm?cmnd=Status%208
jq: .StatusSNS.SML.Power_curr
Hi ihr Zwei, ich bin gerade dabei das Caching auch in die Tasmota Logik einzubauen ... PR folgt ...
hat geklappt. Danke. Diese Lösung würde mir auch reichen!
Die Tasmota Implemetierung cached die Abfragen in einem evcc Cycle nicht! War auch bisher nicht nörig ==> NO ISSUE!
@thierolm ein kleines cache: 1s
wäre natürlich nice ;)
Describe the bug
Ich benutzte Tasmota zum Auslesen des Strom- und PV-Zählers. Schaut man in die Script sieht man immer das Status8 immer doppelt angestoßen wird. Bei mir alle 10 Sekunden, aber fast immer zu gleichen Sekunde doppelt. Log aus Stromzähler 15:45:04.223 MQT: tele/tasmota_FA2A95/SENSOR = {"Aktuell Plus1":165} 15:45:05.248 Script: performs "Publish tele/tasmota_FA2A95/SENSOR {"Aktuell Plus1":165}" 15:45:05.254 MQT: tele/tasmota_FA2A95/SENSOR = {"Aktuell Plus1":165} 15:45:06.217 Script: performs "Publish tele/tasmota_FA2A95/SENSOR {"Aktuell Plus1":165}" 15:45:06.224 MQT: tele/tasmota_FA2A95/SENSOR = {"Aktuell Plus1":165} 15:45:07.251 Script: performs "Publish tele/tasmota_FA2A95/SENSOR {"Aktuell Plus1":169}" 15:45:07.257 MQT: tele/tasmota_FA2A95/SENSOR = {"Aktuell Plus1":169} 15:45:08.238 Script: performs "Publish tele/tasmota_FA2A95/SENSOR {"Aktuell Plus1":169}" 15:45:08.244 MQT: tele/tasmota_FA2A95/SENSOR = {"Aktuell Plus1":169} 15:45:09.249 Script: performs "Publish tele/tasmota_FA2A95/SENSOR {"Aktuell Plus1":169}" 15:45:09.256 MQT: tele/tasmota_FA2A95/SENSOR = {"Aktuell Plus1":169} 15:45:10.229 Script: performs "Publish tele/tasmota_FA2A95/SENSOR {"Aktuell Plus1":169}" 15:45:10.235 MQT: tele/tasmota_FA2A95/SENSOR = {"Aktuell Plus1":169} 15:45:10.537 MQT: stat/tasmota_FA2A95/STATUS8 = {"StatusSNS":{"Time":"2023-08-17T15:45:10","SML":{"Power_curr":-169,"Power_Import_W":-169,"Verbrauch":18639.6670,"Einspeise":39284.5179}}} 15:45:10.567 MQT: stat/tasmota_FA2A95/STATUS8 = {"StatusSNS":{"Time":"2023-08-17T15:45:10","SML":{"Power_curr":-169,"Power_Import_W":-169,"Verbrauch":18639.6670,"Einspeise":39284.5180}}} 15:45:11.248 Script: performs "Publish tele/tasmota_FA2A95/SENSOR {"Aktuell Plus1":171}" 15:45:11.254 MQT: tele/tasmota_FA2A95/SENSOR = {"Aktuell Plus1":171} 15:45:12.250 Script: performs "Publish tele/tasmota_FA2A95/SENSOR {"Aktuell Plus1":171}" 15:45:12.256 MQT: tele/tasmota_FA2A95/SENSOR = {"Aktuell Plus1":171} 15:45:13.236 Script: performs "Publish tele/tasmota_FA2A95/SENSOR {"Aktuell Plus1":169}" 15:45:13.242 MQT: tele/tasmota_FA2A95/SENSOR = {"Aktuell Plus1":169} 15:45:14.239 Script: performs "Publish tele/tasmota_FA2A95/SENSOR {"Aktuell Plus1":169}" 15:45:14.244 MQT: tele/tasmota_FA2A95/SENSOR = {"Aktuell Plus1":169} 15:45:15.237 Script: performs "Publish tele/tasmota_FA2A95/SENSOR {"Aktuell Plus1":166}" 15:45:15.243 MQT: tele/tasmota_FA2A95/SENSOR = {"Aktuell Plus1":166} 15:45:16.218 Script: performs "Publish tele/tasmota_FA2A95/SENSOR {"Aktuell Plus1":166}" 15:45:16.224 MQT: tele/tasmota_FA2A95/SENSOR = {"Aktuell Plus1":166} 15:45:17.254 Script: performs "Publish tele/tasmota_FA2A95/SENSOR {"Aktuell Plus1":166}" 15:45:17.261 MQT: tele/tasmota_FA2A95/SENSOR = {"Aktuell Plus1":166} 15:45:18.260 Script: performs "Publish tele/tasmota_FA2A95/SENSOR {"Aktuell Plus1":172}" 15:45:18.266 MQT: tele/tasmota_FA2A95/SENSOR = {"Aktuell Plus1":172} 15:45:19.217 Script: performs "Publish tele/tasmota_FA2A95/SENSOR {"Aktuell Plus1":172}" 15:45:19.224 MQT: tele/tasmota_FA2A95/SENSOR = {"Aktuell Plus1":172} 15:45:20.247 Script: performs "Publish tele/tasmota_FA2A95/SENSOR {"Aktuell Plus1":171}" 15:45:20.253 MQT: tele/tasmota_FA2A95/SENSOR = {"Aktuell Plus1":171} 15:45:20.508 MQT: stat/tasmota_FA2A95/STATUS8 = {"StatusSNS":{"Time":"2023-08-17T15:45:20","SML":{"Power_curr":-171,"Power_Import_W":-171,"Verbrauch":18639.6670,"Einspeise":39284.5184}}} 15:45:20.558 MQT: stat/tasmota_FA2A95/STATUS8 = {"StatusSNS":{"Time":"2023-08-17T15:45:20","SML":{"Power_curr":-171,"Power_Import_W":-171,"Verbrauch":18639.6670,"Einspeise":39284.5184}}} 15:45:21.217 Script: performs "Publish tele/tasmota_FA2A95/SENSOR {"Aktuell Plus1":171}" 15:45:21.223 MQT: tele/tasmota_FA2A95/SENSOR = {"Aktuell Plus1":171} 15:45:22.259 Script: performs "Publish tele/tasmota_FA2A95/SENSOR {"Aktuell Plus1":170}" 15:45:22.265 MQT: tele/tasmota_FA2A95/SENSOR = {"Aktuell Plus1":170} 15:45:23.218 Script: performs "Publish tele/tasmota_FA2A95/SENSOR {"Aktuell Plus1":170}" 15:45:23.224 MQT: tele/tasmota_FA2A95/SENSOR = {"Aktuell Plus1":170} 15:45:24.257 Script: performs "Publish tele/tasmota_FA2A95/SENSOR {"Aktuell Plus1":172}" 15:45:24.263 MQT: tele/tasmota_FA2A95/SENSOR = {"Aktuell Plus1":172} 15:45:25.217 Script: performs "Publish tele/tasmota_FA2A95/SENSOR {"Aktuell Plus1":172}" 15:45:25.223 MQT: tele/tasmota_FA2A95/SENSOR = {"Aktuell Plus1":172} 15:45:26.253 Script: performs "Publish tele/tasmota_FA2A95/SENSOR {"Aktuell Plus1":171}" 15:45:26.259 MQT: tele/tasmota_FA2A95/SENSOR = {"Aktuell Plus1":171} 15:45:27.233 Script: performs "Publish tele/tasmota_FA2A95/SENSOR {"Aktuell Plus1":171}" 15:45:27.239 MQT: tele/tasmota_FA2A95/SENSOR = {"Aktuell Plus1":171} 15:45:28.230 Script: performs "Publish tele/tasmota_FA2A95/SENSOR {"Aktuell Plus1":171}" 15:45:28.236 MQT: tele/tasmota_FA2A95/SENSOR = {"Aktuell Plus1":171} 15:45:29.230 Script: performs "Publish tele/tasmota_FA2A95/SENSOR {"Aktuell Plus1":171}" 15:45:29.236 MQT: tele/tasmota_FA2A95/SENSOR = {"Aktuell Plus1":171} 15:45:51.233 MQT: tele/tasmota_FA2A95/SENSOR = {"Aktuell Plus1":175} 15:45:52.217 Script: performs "Publish tele/tasmota_FA2A95/SENSOR {"Aktuell Plus1":175}" 15:45:52.223 MQT: tele/tasmota_FA2A95/SENSOR = {"Aktuell Plus1":175} 15:45:53.225 Script: performs "Publish tele/tasmota_FA2A95/SENSOR {"Aktuell Plus1":175}" 15:45:53.231 MQT: tele/tasmota_FA2A95/SENSOR = {"Aktuell Plus1":175} 15:45:54.218 Script: performs "Publish tele/tasmota_FA2A95/SENSOR {"Aktuell Plus1":175}" 15:45:54.225 MQT: tele/tasmota_FA2A95/SENSOR = {"Aktuell Plus1":175} 15:45:55.219 Script: performs "Publish tele/tasmota_FA2A95/SENSOR {"Aktuell Plus1":176}" 15:45:55.225 MQT: tele/tasmota_FA2A95/SENSOR = {"Aktuell Plus1":176} 15:45:56.218 Script: performs "Publish tele/tasmota_FA2A95/SENSOR {"Aktuell Plus1":176}" 15:45:56.224 MQT: tele/tasmota_FA2A95/SENSOR = {"Aktuell Plus1":176} 15:45:57.218 Script: performs "Publish tele/tasmota_FA2A95/SENSOR {"Aktuell Plus1":178}" 15:45:57.225 MQT: tele/tasmota_FA2A95/SENSOR = {"Aktuell Plus1":178} 15:45:58.218 Script: performs "Publish tele/tasmota_FA2A95/SENSOR {"Aktuell Plus1":178}" 15:45:58.224 MQT: tele/tasmota_FA2A95/SENSOR = {"Aktuell Plus1":178} 15:45:59.263 Script: performs "Publish tele/tasmota_FA2A95/SENSOR {"Aktuell Plus1":178}" 15:45:59.269 MQT: tele/tasmota_FA2A95/SENSOR = {"Aktuell Plus1":178} 15:46:00.217 Script: performs "Publish tele/tasmota_FA2A95/SENSOR {"Aktuell Plus1":178}" 15:46:00.223 MQT: tele/tasmota_FA2A95/SENSOR = {"Aktuell Plus1":178} 15:46:00.499 MQT: stat/tasmota_FA2A95/STATUS8 = {"StatusSNS":{"Time":"2023-08-17T15:46:00","SML":{"Power_curr":-177,"Power_Import_W":-177,"Verbrauch":18639.6670,"Einspeise":39284.5204}}} 15:46:00.548 MQT: stat/tasmota_FA2A95/STATUS8 = {"StatusSNS":{"Time":"2023-08-17T15:46:00","SML":{"Power_curr":-177,"Power_Import_W":-177,"Verbrauch":18639.6670,"Einspeise":39284.5204}}} 15:46:01.222 Script: performs "Publish tele/tasmota_FA2A95/SENSOR {"Aktuell Plus1":177}" 15:46:01.228 MQT: tele/tasmota_FA2A95/SENSOR = {"Aktuell Plus1":177}
Log aus PV-Zähler :48:23.588 MQT: tele/tasmota_55BF13/SENSOR = {"Aktuell Plus":305.0} 15:48:24.622 Script: performs "Publish tele/tasmota_55BF13/SENSOR {"Aktuell Plus":305.0}" 15:48:24.626 MQT: tele/tasmota_55BF13/SENSOR = {"Aktuell Plus":305.0} 15:48:25.618 Script: performs "Publish tele/tasmota_55BF13/SENSOR {"Aktuell Plus":305.0}" 15:48:25.623 MQT: tele/tasmota_55BF13/SENSOR = {"Aktuell Plus":305.0} 15:48:26.602 Script: performs "Publish tele/tasmota_55BF13/SENSOR {"Aktuell Plus":305.0}" 15:48:26.606 MQT: tele/tasmota_55BF13/SENSOR = {"Aktuell Plus":305.0} 15:48:27.601 Script: performs "Publish tele/tasmota_55BF13/SENSOR {"Aktuell Plus":305.0}" 15:48:27.606 MQT: tele/tasmota_55BF13/SENSOR = {"Aktuell Plus":305.0} 15:48:28.595 Script: performs "Publish tele/tasmota_55BF13/SENSOR {"Aktuell Plus":306.0}" 15:48:28.600 MQT: tele/tasmota_55BF13/SENSOR = {"Aktuell Plus":306.0} 15:48:29.620 Script: performs "Publish tele/tasmota_55BF13/SENSOR {"Aktuell Plus":306.0}" 15:48:29.625 MQT: tele/tasmota_55BF13/SENSOR = {"Aktuell Plus":306.0} 15:48:30.329 MQT: stat/tasmota_55BF13/STATUS8 = {"StatusSNS":{"Time":"2023-08-17T15:48:30","SML":{"Power_curr":306,"Power_Import_W":306,"Ertrag":50168.4385}}} 15:48:30.365 MQT: stat/tasmota_55BF13/STATUS8 = {"StatusSNS":{"Time":"2023-08-17T15:48:30","SML":{"Power_curr":306,"Power_Import_W":306,"Ertrag":50168.4385}}} 15:48:30.583 Script: performs "Publish tele/tasmota_55BF13/SENSOR {"Aktuell Plus":306.0}" 15:48:30.588 MQT: tele/tasmota_55BF13/SENSOR = {"Aktuell Plus":306.0} 15:49:02.604 Script: performs "Publish tele/tasmota_55BF13/SENSOR {"Aktuell Plus":310.0}" 15:49:02.608 MQT: tele/tasmota_55BF13/SENSOR = {"Aktuell Plus":310.0} 15:49:03.598 Script: performs "Publish tele/tasmota_55BF13/SENSOR {"Aktuell Plus":312.0}" 15:49:03.602 MQT: tele/tasmota_55BF13/SENSOR = {"Aktuell Plus":312.0} 15:49:04.602 Script: performs "Publish tele/tasmota_55BF13/SENSOR {"Aktuell Plus":312.0}" 15:49:04.607 MQT: tele/tasmota_55BF13/SENSOR = {"Aktuell Plus":312.0} 15:49:05.606 Script: performs "Publish tele/tasmota_55BF13/SENSOR {"Aktuell Plus":312.0}" 15:49:05.611 MQT: tele/tasmota_55BF13/SENSOR = {"Aktuell Plus":312.0} 15:49:06.608 Script: performs "Publish tele/tasmota_55BF13/SENSOR {"Aktuell Plus":312.0}" 15:49:06.613 MQT: tele/tasmota_55BF13/SENSOR = {"Aktuell Plus":312.0} 15:49:07.583 Script: performs "Publish tele/tasmota_55BF13/SENSOR {"Aktuell Plus":312.0}" 15:49:07.588 MQT: tele/tasmota_55BF13/SENSOR = {"Aktuell Plus":312.0} 15:49:08.628 Script: performs "Publish tele/tasmota_55BF13/SENSOR {"Aktuell Plus":311.0}" 15:49:08.633 MQT: tele/tasmota_55BF13/SENSOR = {"Aktuell Plus":311.0} 15:49:09.584 Script: performs "Publish tele/tasmota_55BF13/SENSOR {"Aktuell Plus":311.0}" 15:49:09.588 MQT: tele/tasmota_55BF13/SENSOR = {"Aktuell Plus":311.0} 15:49:10.332 MQT: stat/tasmota_55BF13/STATUS8 = {"StatusSNS":{"Time":"2023-08-17T15:49:10","SML":{"Power_curr":312,"Power_Import_W":312,"Ertrag":50168.4421}}} 15:49:10.384 MQT: stat/tasmota_55BF13/STATUS8 = {"StatusSNS":{"Time":"2023-08-17T15:49:10","SML":{"Power_curr":312,"Power_Import_W":312,"Ertrag":50168.4421}}} 15:49:10.625 Script: performs "Publish tele/tasmota_55BF13/SENSOR {"Aktuell Plus":312.0}" 15:49:10.629 MQT: tele/tasmota_55BF13/SENSOR = {"Aktuell Plus":312.0} 15:49:11.628 Script: performs "Publish tele/tasmota_55BF13/SENSOR {"Aktuell Plus":312.0}" 15:49:11.633 MQT: tele/tasmota_55BF13/SENSOR = {"Aktuell Plus":312.0} 15:49:12.594 Script: performs "Publish tele/tasmota_55BF13/SENSOR {"Aktuell Plus":314.0}" 15:49:12.598 MQT: tele/tasmota_55BF13/SENSOR = {"Aktuell Plus":314.0} 15:49:13.598 Script: performs "Publish tele/tasmota_55BF13/SENSOR {"Aktuell Plus":314.0}" 15:49:13.602 MQT: tele/tasmota_55BF13/SENSOR = {"Aktuell Plus":314.0} 15:49:14.602 Script: performs "Publish tele/tasmota_55BF13/SENSOR {"Aktuell Plus":314.0}" 15:49:14.606 MQT: tele/tasmota_55BF13/SENSOR = {"Aktuell Plus":314.0} 15:49:15.603 Script: performs "Publish tele/tasmota_55BF13/SENSOR {"Aktuell Plus":322.0}" 15:49:15.607 MQT: tele/tasmota_55BF13/SENSOR = {"Aktuell Plus":322.0} 15:49:16.584 Script: performs "Publish tele/tasmota_55BF13/SENSOR {"Aktuell Plus":322.0}" 15:49:16.589 MQT: tele/tasmota_55BF13/SENSOR = {"Aktuell Plus":322.0} 15:49:17.596 Script: performs "Publish tele/tasmota_55BF13/SENSOR {"Aktuell Plus":320.0}" 15:49:17.601 MQT: tele/tasmota_55BF13/SENSOR = {"Aktuell Plus":320.0} 15:49:18.598 Script: performs "Publish tele/tasmota_55BF13/SENSOR {"Aktuell Plus":320.0}" 15:49:18.602 MQT: tele/tasmota_55BF13/SENSOR = {"Aktuell Plus":320.0} 15:49:19.615 Script: performs "Publish tele/tasmota_55BF13/SENSOR {"Aktuell Plus":316.0}" 15:49:19.619 MQT: tele/tasmota_55BF13/SENSOR = {"Aktuell Plus":316.0} 15:49:20.474 MQT: stat/tasmota_55BF13/STATUS8 = {"StatusSNS":{"Time":"2023-08-17T15:49:20","SML":{"Power_curr":316,"Power_Import_W":316,"Ertrag":50168.4429}}} 15:49:20.523 MQT: stat/tasmota_55BF13/STATUS8 = {"StatusSNS":{"Time":"2023-08-17T15:49:20","SML":{"Power_curr":316,"Power_Import_W":316,"Ertrag":50168.4429}}} 15:49:20.615 Script: performs "Publish tele/tasmota_55BF13/SENSOR {"Aktuell Plus":316.0}"
Steps to reproduce
1.Ist EVCC deaktiviert, habe ich keine Status8 Einträge in den Log. 2. 3. Anmerkung: Ich Glaube, dass in der Vorgängerversion oder Anfangs, den doppelten Eintrag in der PV noch nicht gab. War nur im Stromzähler ...
Configuration details
Log details
What type of operating system are you running?
Linux
Version
evcc version 0.118.11