just wanted to say thanks, this was my first attempt at using the Smart Hub v3, and it was a great learning experience, the information i am getting is excellent.
Was a few hurdles along the way, but with the help of the posts here and lots of reading and re-reading it all working
This may sound like a total n00b question, but is this supposed to work in the new SmartThings app, or is the display only available in the Classic app? I finally got the code working after struggling with the fact that location never got set when I first installed the hub last week (error on line 473 :-), but consistently see āCanāt connect to device. Check device and try againā when I try to open it in the new SmartThings app.
I downloaded the āClassicā app and it shows the proper displays, graphs and so on. This also seems to extend to not being able to create an automation to runs when, for example, power output is greater than a certain amount.
The device handler is designed for the classic app. I havenāt done any testing with the new app yet (as it doesnāt support most of what I need/use) but I doubt that it works there.
So i got it working in the classic app yesterday, Couple things im seeing that im confused on however is the what looks like should be a graph of some sort has no data in it. Also yesterday has the exact same production as yesterday which i know is no the case. It showed this way for yesterday and today. Did i miss something?
is there DHT for new Envoy version on GitHub?
looks like original DHT is updated since this post and line numbers donāt match.
this error i get with most recent original DHT
4:15:47 PM: error java.util.concurrent.TimeoutException: Execution time exceeded 20 app execution seconds: 189785865433878 @line 519 (dataCallback)
no graph, no start date
everything else looks good and pulling.
That means it times out pulling the historical data. It should still populate over timeā¦
I see that you are on Android ā there historically have been issues with the htmlTile on Android. Does anyone have the graphs working with Android?
Also doesnt show lifetime
Iām on iOS and I just installed this DTH last week and I donāt see the charting either but maybe I did something wrong trying to update the code to show the āSystem live sinceā tile. Everything else seems to work okay though.
Hmmm, not sure. If you switch to the āRecentlyā tab ā do you get updates every 5 minutes (at least during the day when you are producing)?
It doesnāt show lifetime efficiency because it wasnāt able to determine the Installation date. Which kind of Envoy do you have (mine is having its 5th birthday coming up soon so it isnāt exactly recentā¦).
Also, any output in the IDE during live logging?
OK - something doesnāt look right there ā the reading at 13:31 should say (+979W since last reading). It seems to be completely unable to save any state information (which is also the reason why the graph doesnāt display).
Any errors in the API Live Logging?
[75addf84-8b74-4688-9aca-09e57414010e](https://graph.api.smartthings.com/ide/logs#75addf84-8b74-4688-9aca-09e57414010e) 6:45:34 PM: error java.util.concurrent.TimeoutException: Execution time exceeded 20 app execution seconds: 96704413295548 @line 519 (dataCallback)
[75addf84-8b74-4688-9aca-09e57414010e](https://graph.api.smartthings.com/ide/logs#75addf84-8b74-4688-9aca-09e57414010e) 6:45:14 PM: trace Querying DB for yesterday's dataā¦
[75addf84-8b74-4688-9aca-09e57414010e](https://graph.api.smartthings.com/ide/logs#75addf84-8b74-4688-9aca-09e57414010e) 6:45:14 PM: debug Solar Panels - new data: [wattHoursLifetime:92581, wattHoursSevenDays:92214, wattHoursToday:12744, wattsNow:0]
[75addf84-8b74-4688-9aca-09e57414010e](https://graph.api.smartthings.com/ide/logs#75addf84-8b74-4688-9aca-09e57414010e) 6:45:25 PM: error java.util.concurrent.TimeoutException: Execution time exceeded 20 app execution seconds: 98467494050886 @line 519 (dataCallback)
[75addf84-8b74-4688-9aca-09e57414010e](https://graph.api.smartthings.com/ide/logs#75addf84-8b74-4688-9aca-09e57414010e) 6:45:05 PM: trace Querying DB for yesterday's dataā¦
[75addf84-8b74-4688-9aca-09e57414010e](https://graph.api.smartthings.com/ide/logs#75addf84-8b74-4688-9aca-09e57414010e) 6:45:05 PM: debug Solar Panels - new data: [wattHoursLifetime:92581, wattHoursSevenDays:92214, wattHoursToday:12744, wattsNow:0]
[75addf84-8b74-4688-9aca-09e57414010e](https://graph.api.smartthings.com/ide/logs#75addf84-8b74-4688-9aca-09e57414010e) 6:45:14 PM: debug Solar Panels - requesting latest data from Envoy via JSON APIā¦
[75addf84-8b74-4688-9aca-09e57414010e](https://graph.api.smartthings.com/ide/logs#75addf84-8b74-4688-9aca-09e57414010e) 6:45:05 PM: debug Solar Panels - requesting latest data from Envoy via JSON APIā¦
[75addf84-8b74-4688-9aca-09e57414010e](https://graph.api.smartthings.com/ide/logs#75addf84-8b74-4688-9aca-09e57414010e) 6:45:05 PM: debug Solar Panels - requesting latest data from Envoy via JSON APIā¦
Looks like it times out querying the historical values from the DB ā if you change line 510 to
if (false)
it will not try to load historical data and should start populating the graphs from the current reading. After two full days you should then have the history built up.
Not sure whether the access to the historical data got slower than what it used to be or whether the DTH is allowed less time to complete than beforeā¦
it reporting recent value during day.
[75addf84-8b74-4688-9aca-09e57414010e](https://graph.api.smartthings.com/ide/logs#75addf84-8b74-4688-9aca-09e57414010e) 6:13:15 PM: error java.lang.NullPointerException: Cannot invoke method size() on null object @line 565 (dataCallback)
[75addf84-8b74-4688-9aca-09e57414010e](https://graph.api.smartthings.com/ide/logs#75addf84-8b74-4688-9aca-09e57414010e) 6:13:15 PM: debug Solar Panels - new data: [wattHoursLifetime:148161, wattHoursSevenDays:124771, wattHoursToday:17582, wattsNow:0]
[75addf84-8b74-4688-9aca-09e57414010e](https://graph.api.smartthings.com/ide/logs#75addf84-8b74-4688-9aca-09e57414010e) 6:13:15 PM: debug Solar Panels - requesting latest data from Envoy via JSON APIā¦
[75addf84-8b74-4688-9aca-09e57414010e](https://graph.api.smartthings.com/ide/logs#75addf84-8b74-4688-9aca-09e57414010e) 6:12:58 PM: error java.lang.NullPointerException: Cannot invoke method size() on null object @line 565 (dataCallback)
[75addf84-8b74-4688-9aca-09e57414010e](https://graph.api.smartthings.com/ide/logs#75addf84-8b74-4688-9aca-09e57414010e) 6:12:58 PM: debug Solar Panels - new data: [wattHoursLifetime:148161, wattHoursSevenDays:124771, wattHoursToday:17582, wattsNow:0]
[75addf84-8b74-4688-9aca-09e57414010e](https://graph.api.smartthings.com/ide/logs#75addf84-8b74-4688-9aca-09e57414010e) 6:12:58 PM: debug Solar Panels - new data: [wattHoursLifetime:148161, wattHoursSevenDays:124771, wattHoursToday:17582, wattsNow:0]
[75addf84-8b74-4688-9aca-09e57414010e](https://graph.api.smartthings.com/ide/logs#75addf84-8b74-4688-9aca-09e57414010e) 6:12:58 PM: debug Solar Panels - requesting latest data from Envoy via JSON APIā¦
[75addf84-8b74-4688-9aca-09e57414010e](https://graph.api.smartthings.com/ide/logs#75addf84-8b74-4688-9aca-09e57414010e) 6:12:57 PM: error java.lang.NullPointerException: Cannot invoke method size() on null object @line 565 (dataCallback)
[75addf84-8b74-4688-9aca-09e57414010e](https://graph.api.smartthings.com/ide/logs#75addf84-8b74-4688-9aca-09e57414010e) 6:12:57 PM: debug Solar Panels - new data: [wattHoursLifetime:148161, wattHoursSevenDays:124771, wattHoursToday:17582, wattsNow:0]
[75addf84-8b74-4688-9aca-09e57414010e](https://graph.api.smartthings.com/ide/logs#75addf84-8b74-4688-9aca-09e57414010e) 6:12:57 PM: debug Solar Panels - requesting latest data from Envoy via JSON APIā¦
Try updating to the latest release on github. I just made some changes that hopefully will allow things to populate if querying the history fails due to the 20s timeout.
[75addf84-8b74-4688-9aca-09e57414010e](https://graph.api.smartthings.com/ide/logs#75addf84-8b74-4688-9aca-09e57414010e) 8:05:46 AM: error java.util.concurrent.TimeoutException: Execution time exceeded 20 app execution seconds: 56650400168302 @line 520 (dataCallback)
[75addf84-8b74-4688-9aca-09e57414010e](https://graph.api.smartthings.com/ide/logs#75addf84-8b74-4688-9aca-09e57414010e) 8:05:26 AM: trace Querying DB for yesterday's dataā¦
[75addf84-8b74-4688-9aca-09e57414010e](https://graph.api.smartthings.com/ide/logs#75addf84-8b74-4688-9aca-09e57414010e) 8:05:26 AM: debug Solar Panels - new data: [wattHoursLifetime:173739, wattHoursSevenDays:93794, wattHoursToday:147, wattsNow:722]
[75addf84-8b74-4688-9aca-09e57414010e](https://graph.api.smartthings.com/ide/logs#75addf84-8b74-4688-9aca-09e57414010e) 8:05:36 AM: error java.util.concurrent.TimeoutException: Execution time exceeded 20 app execution seconds: 56643595250409 @line 520 (dataCallback)
[75addf84-8b74-4688-9aca-09e57414010e](https://graph.api.smartthings.com/ide/logs#75addf84-8b74-4688-9aca-09e57414010e) 8:05:16 AM: trace Querying DB for yesterday's dataā¦
[75addf84-8b74-4688-9aca-09e57414010e](https://graph.api.smartthings.com/ide/logs#75addf84-8b74-4688-9aca-09e57414010e) 8:05:16 AM: debug Solar Panels - new data: [wattHoursLifetime:173739, wattHoursSevenDays:93794, wattHoursToday:147, wattsNow:722]
[75addf84-8b74-4688-9aca-09e57414010e](https://graph.api.smartthings.com/ide/logs#75addf84-8b74-4688-9aca-09e57414010e) 8:05:26 AM: debug Solar Panels - requesting latest data from Envoy via JSON APIā¦
[75addf84-8b74-4688-9aca-09e57414010e](https://graph.api.smartthings.com/ide/logs#75addf84-8b74-4688-9aca-09e57414010e) 8:05:16 AM: debug Solar Panels - new data: [wattHoursLifetime:173739, wattHoursSevenDays:93794, wattHoursToday:147, wattsNow:722]
[75addf84-8b74-4688-9aca-09e57414010e](https://graph.api.smartthings.com/ide/logs#75addf84-8b74-4688-9aca-09e57414010e) 8:05:15 AM: debug Solar Panels - requesting latest data from Envoy via JSON APIā¦
Iām a little confused as to what the order of those messages is - the timestamps are in seemingly random orderā¦
The changes should have the DTH try once for querying historical data (once each for yesterday and today) - if that fails, it should just start graphing data from the current value instead.