[NEEDS UPDATING] Home Automation Dashboard (HAD)

Are the widgets supposed to update automatically in the dashboard if they are changed from the ST app or manually turned on?

When ST sees the state change the dashboard widgets update. I have noticed sometimes if the dashboard is inactive for awhile, then they stop updating till you refresh.

I’m pretty sure this has to do with the browser losing connection to herokuapp so the herokuapp thinks the session is no longer active.

My switches are not updating unless I reload the page. Where should I start for trouble shooting this? I have tested it on my laptop in chrome and safari, and on my tablet in firefox. If I change the switch state in the hadashboard it updates fine, but if i change it in the ST mobile app I have to reload the page.
Thanks

Did you do any code outside of main.erb? If you did I’d say something got broke but I don’t know enough about dashing to tell you where to look. If you didn’t then I’d say check to be sure nothing is weird in main.erb, like extra or open < > " " etc etc.

@mattjfrank I’ve fixed two or three bugs related to that. The connection is working super reliably for me, now - even using Chrome for Android works fine. It’s all in the master branch, so once you pull the latest from git, you should get all the goodness.

@4caulders the config variables DASHING_AUTH_TOKEN and DASHING_URI are relevant for the communication from ST to the Heroku app. Having said that, if DASHING_URI was set incorrectly, you would have had issues with authorizing with the SmartApp. Maybe there is a problem with your DASHING_AUTH_TOKEN? I also noticed that the SmartApp outage from a few days ago dramatically affected the communication (obviously). You can check the status page for any current outages - there aren’t any as far as I can see.
I’ll have to think about your problem for a bit. I don’t have any other good ideas. Could be a bug in the code, but then other people (including myself) would be seeing this problem… Hmm.

Thanks, I’m planning to pull all the updates, just have been holding off because as you know I made lots of manual changes and the way things go for me, it will break something so I’m waiting till I have some free time for possible fixing.

Aaaaaand DONE!

Thanks to all you guys who’ve helped out. Wizards!

@florianz, when I pull the latest GIT branch ā€œ$ git pull -Xoursā€ and then re-push, will it overwrite any changes to widgets, etc. I’ve made?

Looks nice @seanvree and no you’re not done, it will never be ā€œdoneā€. What kinda tablet and mount are you using?

@mattjfrank, I know, who am I kidding!

Using a Nexus 7, wall mount:

It’s double stick tape, but I drilled through the back with simple dry-wall screws to make it more secure. Also had to cut a little bit of plastic on the left side so the charger would fit. I like this setup, because it slides in and out really easy.

I couldn’t see anything wrong with the main.erb so I just rebuilt it from the generic included and it is working as it should now. Thanks for the help.

1 Like

I"m also have a bit of trouble with widgets refreshing automatically. Some do, and some don’t. Contact sensors work, however a couple of my switches don’t update such as my lock and the current mode.

Where should I check to look for this bug?

Could be issues with your hardware. There is a well known bug with pretty much all GE devices having really unreliable polling. I am unsure whether SmartThings has fixed this, yet. I also have an Aeon In-Wall Micro Switch, which doesn’t reports state changes until many seconds after they have occurred. My Schlage deadbolt has also always been unreliable with reporting state changes. I fixed a bug with the current mode widget not updating, but I am not ready to push down all the changes from the development branch, just yet.

No, the contrary: It will leave all your changes intact. But this is most likely not what you want. You should not have to change the code of any widgets, and if you did, then chances are the changes will collide with anything that goes into the remote git repository (like bug fixes, new features, etc).
Unless you know exactly what you’re doing, you should only make changes to the dashboard files, like main.erb. In your case, what I would suggest is back up your .erb files (like main.erb) by copying those files to a different directory outside of hadashboard, then reset your working directory to the remote, overwriting ALL your changes:

$ git reset --hard origin/master

After that, copy your .erb files back into hadashboard/dashboard in order to restore your personal dashboard(s). Does that make sense? Let me know if you have questions.

I’ve been getting an error on the herokuapp.com website in the PM around the same time, (8PM PST) the past couple of days. Anyone else?

"An error occurred in the application and your page could not be served. Please try again in a few moments.

If you are the application owner, check your logs for details."

None of the new widgets seem to work for me (Stcontact, Stpresence, Stmotion, or Stlock). They appear in my dash, but show incorrect data and do not do anything.

This works fine:

<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
    <div data-id="ustemp" data-view="Sttemp" data-title="Upstairs" data-device="Upstairs Slider"></div>
</li>

But this does not (notice how the actual device is the same thing. It’s a ST multi-sensor):

<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
    <div data-id="uscontact" data-view="Stcontact" data-title="Upstairs Slider" data-device="Upstairs Slider"></div>
</li>

Any ideas what’s gone wrong here?

Did you forget to update the SmartApp, by any chance? Log on to the SmartThings IDE and update the Dashing Access SmartApp with the new code found at hadashboard/DashingAccess.groovy. Then, make sure to Save, Publish and Authorize (at http://your-app-name.herokuapp.com/smartthings/authorize) to pick up the changes.

Let us know if that helps.

That was it, thanks!

Does anyone have any experience running this on devices with different resolutions (and different aspect ratios)? I’m trying to run this on my Kindle Fire, which google tells me has a resolution of 1024x600. There is enough room for 6.5 columns and 3.5 rows as-is.

If I could figure out how to shrink everything by n%, I could make it fit the screen perfectly. However, when I started tinkering with sizes in application.coffee, the layout broke horribly. :smile:

I’m running on a hisense sero 7 lt, which is also 1024X600. I managed to get it all to fit by doing the following:

/asses/javascripts/application.coffee Change this line:

Dashing.widget_base_dimensions ||= [145, 145]

to this:

Dashing.widget_base_dimensions ||= [135, 135]

That resized the widgets. All seemed to fit except the weather widget. if you have the weather widget you need to change /widgets/stweather/stweather.scss

Change:

 .primary-climacon {
font-family: "Climacons-Font";
font-size: 90px;
}

to this:

.primary-climacon {
  	font-family: "Climacons-Font";
  	font-size: 70px;
  }

Also note that by resizing the widgets, you have to ensure your labels are a bit shorter. If the widget lablels take up two lines is messes with the alignment.