Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Reset Yield Day Werte um Mitternacht #539

Closed
5 of 21 tasks
ArminArmout opened this issue Jan 1, 2023 · 6 comments
Closed
5 of 21 tasks

Feature Request: Reset Yield Day Werte um Mitternacht #539

ArminArmout opened this issue Jan 1, 2023 · 6 comments
Assignees
Labels
enhancement New feature or request fixed dev fixed

Comments

@ArminArmout
Copy link

ArminArmout commented Jan 1, 2023

Hardware

  • ESP8266
  • ESP32
  • Raspberry Pi

Modelname: ______
Retailer URL: ______

nRF24L01+ Module

  • nRF24L01+ you verified this is a Plus model capable of the required 256kBit/s mode
  • square dot indicates original Nordic Semicon chip
  • round dot indicates copy-cat / counterfeit SI labs chip

Antenna:

  • circuit board
  • external antenna

Power Stabilization:

  • 100uF Electrolytic Capacitor
    connected between +3.3V and GND (Pin 1 & 2) of the NRF Module
  • Voltage stabilizing motherboard

Connection diagram:

  • Image of the your wiring attached

Connection diagram I used:

nRF24L01+ Pin ESP8266 GPIO
Pin 1 GND [*] GND
Pin 2 +3.3V +3.3V
Pin 3 CE GPIO2 CE D4
Pin 4 CSN GPIO15 CS D8
Pin 5 SCK GPIO14 SCLK D5
Pin 6 MOSI GPIO13 MOSI D7
Pin 7 MISO GPIO12 MISO D6
Pin 8 IRQ GPIO0 IRQ D3
nRF24L01+ Pin ESP32 GPIO
Pin 1 GND [*] GND
Pin 2 +3.3V +3.3V
Pin 3 CE GPIO4 CE D4
Pin 4 CSN GPIO5 CS D5
Pin 5 SCK GPIO18 SCLK D18
Pin 6 MOSI GPIO23 MOSI D23
Pin 7 MISO GPIO19 MISO D19
Pin 8 IRQ GPIO0 IRQ D0

Note: [*] GND Pin 1 has a square mark on the nRF24L01+ module

Software

  • AhoyDTU
  • OpenDTU

Version / Git SHA:

https://github.com/lumapu/ahoy/commits/dec333f

Build & Flash Method:

  • Arduino
  • ESP Tools
  • Platform IO

Desktop OS:

  • Linux
  • Windows
  • Mac OS

Debugging:

  • USB Serial Log (attached)
  • Setup settings (use our templates ... to be added)

Issue:

Guten Morgen,

ich werte für eine Statistik den Gesamtertrag je Tag aus. Dabei ist mir aufgefallen das dieser Wert erst wieder zurückgesetzte wird wenn am neuen Tag neue Werte empfangen werden.
Dies ist leider negativ wenn man den max Wert für einen Tag in einer Datenbank sucht.
gibt es eine Möglichkeit diesen Werte um Mitternacht auf 0 zurückzusetzen?

Grüße und Danke im Voraus.

PS:
Frohes neues Jahr euch noch allen

@DukeWolle
Copy link

@ArminArmout

Das ist leider so ... Wurde auch schon viel darüber Diskutiert. Gerade hier gibt es ein paar Issues dazu. Einige die mit Datenbanken arbeiten erledigen das einfach Automatisch .. Ich zum Beispiel werte den Wert 'available' aus. Bei '0' setze ich erst mal ch1 und ch2 des Hoymiles auf 0 .. YieldDay wird dann um Mitternacht genullt.

Ich arbeite allerdings mit Homeassistant und dem Mosquitto Broker

Gutes Neues !

@knickohr
Copy link

knickohr commented Jan 1, 2023

Und täglich grüßt das Murmeltier „Werte nullen“ 😉 Endless story, endless discussion. Summa Summarum, es selbst machen wie DukeWolle schon geschrieben hat.

@stefan123t
Copy link
Collaborator

Ähnlich der Sunrise / Sunset Communication Stop Funktion sollte es auch eine Dayend / Midnight YieldDay auf 0 setzen Option geben. Einfach einen Trigger etwa kurz vor Mitternacht der das YieldDay Topic einmal auf 0 setzt und gut ist es ?
Wenn man die Disable Night Communication aktiv hat sollte das doch m.W. bereits nach Sunset gemacht werden.
Aber für die Nutzer ohne diese Option aktiv wird es m.E. noch nicht aktiv zurückgesetzt und da das Feld retained ist wird es bis zum Kommunikationsbeginn am nächsten Morgen gehalten.

lumapu added a commit that referenced this issue Jan 8, 2023
fix Prometheus and JSON endpoints (`config_override.h`) #561
publish MQTT with fixed interval even if inverter is not available #542
added JSON settings upload. NOTE: settings JSON download changed, so only settings should be uploaded starting from version `0.5.70` #551
MQTT topic and inverter name have more allowed characters: `[A-Za-z0-9./#$%&=+_-]+`, thx: @mo Demman
improved potential issue with `checkTicker`, thx @cbscpe
MQTT option for reset values on midnight / not avail / communication stop #539
small fix in `tickIVCommunication` #534
add `YieldTotal` correction, eg. to have the option to zero at year start #512
@lumapu lumapu self-assigned this Jan 8, 2023
@lumapu lumapu added the fixed dev fixed label Jan 8, 2023
@knickohr
Copy link

knickohr commented Jan 10, 2023

@lumapu

Abschließende Frage : Welche Werte werden jetzt (außer Yield Day) noch zurück gesetzt bei „comm stop“ und „not available“ ?

@lumapu
Copy link
Owner

lumapu commented Jan 11, 2023

@knickohr

alle, außer die hier

                    switch(fld) { 
                         case FLD_YD: 
                         case FLD_YT: 
                         case FLD_FW_VERSION: 
                         case FLD_FW_BUILD_YEAR: 
                         case FLD_FW_BUILD_MONTH_DAY: 
                         case FLD_FW_BUILD_HOUR_MINUTE: 
                         case FLD_HW_ID: 
                         case FLD_ACT_ACTIVE_PWR_LIMIT: 
                             continue; 
                             break; 
                     }

@stefan123t stefan123t changed the title Reste Yield Day Werte um Mitternacht Reset Yield Day Werte um Mitternacht Jan 12, 2023
@stefan123t stefan123t changed the title Reset Yield Day Werte um Mitternacht Feature Request: Reset Yield Day Werte um Mitternacht Jan 12, 2023
@stefan123t stefan123t added the enhancement New feature or request label Jan 12, 2023
modem-man-gmx pushed a commit to modem-man-gmx/ahoy that referenced this issue Jan 15, 2023
fix Prometheus and JSON endpoints (`config_override.h`) lumapu#561
publish MQTT with fixed interval even if inverter is not available lumapu#542
added JSON settings upload. NOTE: settings JSON download changed, so only settings should be uploaded starting from version `0.5.70` lumapu#551
MQTT topic and inverter name have more allowed characters: `[A-Za-z0-9./#$%&=+_-]+`, thx: @mo Demman
improved potential issue with `checkTicker`, thx @cbscpe
MQTT option for reset values on midnight / not avail / communication stop lumapu#539
small fix in `tickIVCommunication` lumapu#534
add `YieldTotal` correction, eg. to have the option to zero at year start lumapu#512
@lumapu lumapu closed this as completed Mar 27, 2023
@ottelo9
Copy link

ottelo9 commented Apr 15, 2023

Es gibt nun die Option: Reset values and YieldDay at midnight

Welche Werte werden bei dieser Option noch zurück gesetzt? Das was @lumapu zuletzt gepostet hat ist doch was anderes oder?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fixed dev fixed
Projects
None yet
Development

No branches or pull requests

6 participants