I'm also seeing this error in the logs. I'm not using a reference device. I just need to average several devices. I'm not seeing the "please select a reference device to use this option" in the app. It's only in the log. I'm not sure what high/low setpoints are being referred to in the post above.
app:3572022-03-03 23:35:46.166 errorjava.lang.ArithmeticException: Division undefined on line 448 (method averageHandler)
app:3572022-03-03 23:35:46.107 infoIn getTimeDiff - vAVE - Lumin - Night - Greenhouse - dur: 15 minutes, 0.047 seconds - days: 0 - hours: 0 - totalHours: 0
app:3572022-03-03 23:35:46.044 debugIn getTimeDiff (1.2.4) - working on vAVE - Lumin - Night - Greenhouse
app:3572022-03-03 23:35:46.036 debugIn averageHandler - Attribute: illuminance
app:3572022-03-03 23:35:46.034 debug - - - - - Start (Averaging) - - - - -
app:3572022-03-03 23:35:46.030 debugIn averageHandler (1.2.4)
app:3572022-03-03 23:20:46.149 errorjava.lang.NullPointerException: Cannot invoke method minus() on null object on line 538 (method averageHandler)
app:3572022-03-03 23:20:46.100 debugIn averageHandler - percentage 3 - newValue VS average - newValue: null - theAverage: null
app:3572022-03-03 23:20:46.098 debugPlease select a Reference Device to use this option
app:3572022-03-03 23:20:46.096 debug------------------------------------------------
app:3572022-03-03 23:20:46.072 infoIn getTimeDiff - vAVE - Lumin - Night - Greenhouse - Hasn't reported in 1. Tossing value.
app:3572022-03-03 23:20:46.069 infoIn getTimeDiff - vAVE - Lumin - Night - Greenhouse - dur: 1 hours, 8 minutes, 46.055 seconds - days: 0 - hours: 1 - totalHours: 1
app:3572022-03-03 23:20:46.044 debugIn getTimeDiff (1.2.4) - working on vAVE - Lumin - Night - Greenhouse
app:3572022-03-03 23:20:46.037 debugIn averageHandler - Attribute: illuminance
app:3572022-03-03 23:20:46.036 debug - - - - - Start (Averaging) - - - - -
app:3572022-03-03 23:20:46.034 debugIn averageHandler (1.2.4)
app:3572022-03-03 23:05:46.083 errorjava.lang.ArithmeticException: Division undefined on line 448 (method averageHandler)
app:3572022-03-03 23:05:46.050 infoIn getTimeDiff - vAVE - Lumin - Night - Greenhouse - dur: 53 minutes, 46.036 seconds - days: 0 - hours: 0 - totalHours: 0
app:3572022-03-03 23:05:46.033 debugIn getTimeDiff (1.2.4) - working on vAVE - Lumin - Night - Greenhouse
app:3572022-03-03 23:05:46.031 debugIn averageHandler - Attribute: illuminance
app:3572022-03-03 23:05:46.030 debug - - - - - Start (Averaging) - - - - -
app:3572022-03-03 23:05:46.028 debugIn averageHandler (1.2.4)
app:3572022-03-03 22:50:46.094 errorjava.lang.ArithmeticException: Division undefined on line 448 (method averageHandler)
app:3572022-03-03 22:50:46.059 infoIn getTimeDiff - vAVE - Lumin - Night - Greenhouse - dur: 38 minutes, 46.044 seconds - days: 0 - hours: 0 - totalHours: 0
app:3572022-03-03 22:50:46.041 debugIn getTimeDiff (1.2.4) - working on vAVE - Lumin - Night - Greenhouse
app:3572022-03-03 22:50:46.035 debugIn averageHandler - Attribute: illuminance
app:3572022-03-03 22:50:46.033 debug - - - - - Start (Averaging) - - - - -
app:3572022-03-03 22:50:46.028 debugIn averageHandler (1.2.4)
app:3572022-03-03 22:35:46.435 errorjava.lang.ArithmeticException: Division undefined on line 448 (method averageHandler)
app:3572022-03-03 22:35:46.340 infoIn getTimeDiff - vAVE - Lumin - Night - Greenhouse - dur: 23 minutes, 46.324 seconds - days: 0 - hours: 0 - totalHours: 0
app:3572022-03-03 22:35:46.314 debugIn getTimeDiff (1.2.4) - working on vAVE - Lumin - Night - Greenhouse
app:3572022-03-03 22:35:46.304 debugIn averageHandler - Attribute: illuminance
app:3572022-03-03 22:35:46.300 debug - - - - - Start (Averaging) - - - - -
app:3572022-03-03 22:35:46.294 debugIn averageHandler (1.2.4)
app:3572022-03-03 22:20:46.166 errorjava.lang.ArithmeticException: Division undefined on line 448 (method averageHandler)
app:3572022-03-03 22:20:46.073 infoIn getTimeDiff - vAVE - Lumin - Night - Greenhouse - dur: 8 minutes, 46.057 seconds - days: 0 - hours: 0 - totalHours: 0
app:3572022-03-03 22:20:46.043 debugIn getTimeDiff (1.2.4) - working on vAVE - Lumin - Night - Greenhouse
app:3572022-03-03 22:20:46.036 debugIn averageHandler - Attribute: illuminance
app:3572022-03-03 22:20:46.034 debug - - - - - Start (Averaging) - - - - -
app:3572022-03-03 22:20:46.032 debugIn averageHandler (1.2.4)
app:3572022-03-03 22:15:00.028 debugIn startTimeBetween (1.2.4) - Start
app:3572022-03-03 22:12:00.122 debugIn dayOfTheWeekHandler - daysMatch: false
app:3572022-03-03 22:12:00.120 debugIn dayOfTheWeekHandler - Days of the Week Check Failed
app:3572022-03-03 22:12:00.091 debugIn dayOfTheWeek (1.2.4)
app:3572022-03-03 22:12:00.058 debugIn resetHandler (1.2.4)
app:3572022-03-03 22:05:46.165 debugIn averageHandler - betweenTime: false - Time is outside of range, no average taken.
New version available...
1.2.5 - 02/28/22 - Lots of little changes, More logging
Also, just a little reminder... all debug logs need to be screenshots. Waaaay too hard to read otherwise.
Thanks
The night's not over but this looks to be working as expected now. It will build and maintain a relevant baseline to compare night time anomalies to.
In hindsight I realized I want to do the comparison as often as the device itself pushes lux level updates (7-14 seconds), not on the less frequent basis I set (which is adequate to build the average).
At this higher frequency it probably makes more sense to pick up the regularly updated average and comparing it for/in a Trigger in a Rule. Picking up the virtual device as bolded seems to pluck just the simple average out of all the data you store.
Illuminance of Lumin - Greenhouse(0) reports > vAVE - Lumin - Night - Greenhouse(0.0) +200
Thanks for your help.
I'm really perplexed. I went to make a new averaging child, and the option to use follow me isn't showing up:
From that last post, that screenshot is after I select "Notification Options".
That section in the child code (line 219) seems to open actionsConfig instead of notificationOptions. I did try to see if switching that href would fix it, but found it was giving me "Unexpected Error" if I clicked on the button in the child app's setup screen.
I clearly know just enough to be dangerous...
Me Too!
New version available...
1.2.7 - 03/19/22 - Added speech
Thank you!
Such a WONDERUL app!!! I have been using it for a couple of weeks and it works GREAT!
I don't have a problem with using it but wanted to know if I am using it correctly.
I have 4 children that take different combinations of temp sensors, average them, and update a virtual device that I use for my stat control.
The children are enabled at different times with their own virtual switches turned off to enable (a little confusing but it works).
I have all 4 children set to average at 1 minute intervals.
My question is that when the children are disabled, the apps are still logging that they are disabled or paused, and I cannot turn that log off.
here is a screenshot of one of the disabled children with debug turned on:
IS this the correct method to use to stop the children from updating the virtual temperature device?
here are some screenshots of one of my 4 children:
I just wanted to stop the log entries so my log doesn't fill up.
Other than this, it is working great!
Nothing to worry about, but I updated the app to get rid of all logging.
New version available...
1.2.8 - 03/21/22 - Updated logging
Thank you so much!
Trying the new version 1.2.8 and the log is still updating with the disabled children.
I did open each child and clicked done, just to refresh the app, but it still is logging.
Is there something else I need to do?
Yup, show me. Need a new log.
version 1.2.8
New version available...
1.2.9 - 03/22/22 - More logging
After updating, please turn the 'debug logging' on and then off. You shouldn't see anything in the log. If you do, post the log (not a debug log, because we don't want to see that stuff!).
Thank you! Looks great!
My Average Plus is having problems - I did updates on HPM over the last day or so due to a number of apps/drivers getting updates.
I opened the Child and got:
Required Field Missing ...
There is a comparison field that is set to required - but my previously create child had no such value. I have no reference device, so I have no comparison necessary. If I just randomly choose something, I get the wrong average on my tile.
@bptworld Can you take a look please? I think changing this to be required only if a reference device is there is all that might be needed....
Logs, screenshots available upon request...
You're going to have to show me something. (I shouldn't have to ask)