-
Notifications
You must be signed in to change notification settings - Fork 26
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
DLI Midnight reset? #171
Comments
This is a limitation on how the statistics sensors in HA works, I believe. |
Plant DLI requirements are given as the cumulative amount of light for the day, or the plant's photoperiod, not the previous 24 hrs, thus the "daily" in the variable name daily light integral, and the "d" in the unit mol/d⋅m². |
@TheWarped a day is 24hrs. If you have a continuous flow of water coming from a tap and want to measure its flow in gallons per day, it doesn't reset to zero at midnight. As currently coded, the DLI of this integration is not giving mol/d⋅m², it is giving mol/hr⋅m² at 1AM, mol/(2hr)⋅m² at 2AM, mol/(12hr)⋅m² at noon, and so on. It is only an accurate measure of how much light a plant is getting each day and therefore a useful, actionable statistic at 11:59 PM. Not to mention, according to Wikipedia: "Daily light integral (DLI) describes the number of photosynthetically active photons (individual particles of light in the 400-700 nm range) that are delivered to a specific area over a 24-hour period" According to growlightmeter.com: "The DLI combines light intensity (PPFD) with the lighting duration (photoperiod) over a 24 hour window and is measured in the unit of mol/m²/d" |
@Kagey-cmd The standardized DLI that horticulturists communicate to each other and in scientific literature is an integral from 00:00:00 to 23:59:59. Rolling summaries would miss the mark as plants have a circadian rhythm. This is especially important in the case of obligate photoperiodic plants whose flowering response is dependent on the conversion of phytochrome Pfr(active) to phytochrome Pr(inactive), which occurs in uninterrupted dark of sufficient enough length in time. The conversion of phytochrome from an active state to an inactive state can be interrupted and reset during a dark period in some species with very little PPFD. Poinsettias are an example of an obligate short-day plant. Another example of DLI being standardized is in this publication they quantify DLI across Northern America by season. DLI is very important, but as caretakers of plants, in regard to light, we also need to pay attention to intensity / PPFD, and photoperiod. Spectrum can be important too, but not nearly as much as those three metrics - Mind you this is all research done, it's not infallible or code. Credentials - |
The DLI standardization study you linked appears to calculate DLI using a 24 hour period. DLI is a physical phenomenon. Sure, it's useful for plants, but by mathematical definition (based soley on it having a /d in its units) it has to be over a 24 hour period. I respect your horticulture credentials, but I think the math isn't mathing here. |
DLI is a man-made unit based off observations of nature and its intent / usefulness is as a production metric. Consider the functional output of the following cases of equal DLI, both having 12 hours of light and dark: Poinsettia grower A - uninterrupted dark
Poinsettia grower B - interrupted dark
Regardless of if we calculate DLI based off a rolling 24hrs or resetting the counter at midnight, at the literal end of the day, both methods would yield the same DLI (provided the light schedule is fixed). However, a poinsettia grower would be pretty panicked to see a DLI of 5 in the middle of the night, which would render the unit unreliable and useless to them. I have my greenhouse DLI thresholds based off my PPFD thresholds and the elapsed apparent photoperiod. Even yield isn't the bottom line when quality is considered. |
Guys! Thank you for a very insightful debate. However, the main point for me here is that the DLI sensor in this component uses the standard UtilitimeterSensors functionality in HA, and this is a kind of sensor that resets periodically. |
I don't expect to win over a disagreeing stranger on the internet, so I will conclude by saying that I just think you're a little out of your depth with the math and physics. Also, would like to mention that every source I've been able to encounter on the internet, including the ones linked by @TheWarped and the studies referenced by those studies ALL calculate DLI over a 24-hour period. This is in addition to the simple mathematical definition of a daily integral. @Olen, I'm not sure how this would be implemented in your very lovely integration, but I've been able to make rolling 24-hour integrals using the HA native Statistics integration of things like, for example, accumulated rainfall over the previous 24 hours. |
We may disagree, but I came here to help. To get a running total, make an integration sensor with the source being the "Ppfd (mol)" sensor found in the diagnostics section of the plant device info.
Hopefully that helps. |
Perhaps I am misunderstanding, but it seems to me that DLI should be a continuously recalculated definite integral over the previous 24 hours and shouldn't reset at midnight. For example, at 1AM on Saturday, the DLI should the integral from 1AM Friday to 1AM Saturday, not the integral from 12AM to 1AM. At the very least, it would be a lot more useful that way.
The text was updated successfully, but these errors were encountered: