SmartThings Community

[RELEASE] HousePanel Dashboard for SmartThings and Hubitat

project_dashboard

(Brad) #1404

So I think I have found a bug in the GUI that is messing with my configuration. I duplicated the folder to create one of my kid’s HP layouts. I removed several tabs and it seems to have messed up one of the rooms as a result. All the items on the last tab were removed. When I opened the Options, the matrix of tabs/devices looks like this:

Looks like there is a mismatch between the tabs and number of columns allowed for the devices for those tabs. Any ideas?


(Brad) #1405

FWIW, I manually added a component back to the tab that got zeroed out, then looked at the hmoptions.cfg file. The section for that tab looked like this, which was the very end of the file:

“Sophie”:[[1,0,0,1,
“”],[115,0,0,1,
“”]]}}

The tab looks like this, until I go into options (and Save) or switch to kiosk mode, then it zeros everything out again (except for the clock):

I should add that I double checked the permissions and they were okay.


(HousePanel Author) #1406

Ugh… clearly a bug in here somewhere.

Let me investigate- stay tuned.


(HousePanel Author) #1407

First - thanks so much for flagging this bug and documenting how it shows up so clearly. I got home today and took a look and quickly found and fixed the problem. In the process I did a few other cleanup tasks. Updated version is posted in the usual place. Three files modified are:

  • housepanel.php
  • customize.js
  • tileeditor.js

So just update these three on your rPI and reload and you’ll be good to go. Thanks again for finding this bug and documenting it.


(HousePanel Author) #1408

By the way… for you “coder types” I thought I would share what the bug was. In the GetOptionsPage function I looped through the rooms. For the header row I did it properly using:

foreach ($roomoptions as $roomname => $k) {

But for the content of the table I was using older legacy code that assumed linear room numbers:

for ($k=0; $k < count($roomoptions); $k++) {

When you remove rooms that assumption breaks. The fix was replacing that line with the correct line above. To make matters worse, I didn’t notice this before because at various times depending on conditions, I was automatically renumbering and sorting the room numbers. This was all cleaned up.


(Jensen18) #1409

Ken - first let me say thank you for all the great work on this. I’m new to Housepanel and this is exactly what I was looking for to improve the WAF of my setup. I used your easy install script on my rPi and was up and running in a matter of minutes. I’m on Jessie and the php7 install option didn’t work but php5 did w/o issue. As I’ve been setting up my tabs I’ve run into a few things I was hoping you might be able to help me with:

  1. I’ve read that smart things deprecated “lights”. Is there a reason you are still using that type?
  2. all my dimmer switches work great using switchlevel but I have found a good number of my devices that are implemented as switches (toggle switches, outlets, etc) are very inconsistent and don’t work more than they do. I click the tile and nothing happens. Is there a log file or way I can try to determine what is happening?
  3. I tried to use the material skin for the simple design but couldn’t get to the configuration because clicking the settings button didn’t do anything. I don’t know if this is related to the issue in #2 item (nothing happens on click) so again looking for how to diagnose.

Thanks for any help you can provide.

Dj


(HousePanel Author) #1410

I just never removed them. You can ignore and use switches.

Logging is in the standard browser console where other JavaScript notices are made. Logs in the groovy api are also there if you enable them in your phone. Dimmers should be added as switchlevel but either should work.

This skin needs work to be compatible with the current version. Sorry about that. I didn’t write that skin so editing it isn’t on my todo list. Maybe @vervallsweg is still around to help.


(HousePanel Author) #1411

Folks … I’m working on a version that adds usernames that have unique hmoptions files tied to them so you can deploy different behavior per tablet. Should be ready for testing tomorrow.


(HousePanel Author) #1412

[RELEASE] HousePanel V 1.960 with username feature

Several people have requested that multiple users be able to have different configurations. Well that feature is now available. You access it from the revamped re-auth page. On that page, enter your username and select a password. Then click the Done button at the bottom. This will take you to a login page where you log in as that user. Then you can alter the room configurations however you want and it applies only to that user. When done, switch back to “admin” or create another user. You can have as many users as you like. Each user shares the things from your hubs, but each user has a unique set of rooms that contain those things. The username is used to make a subset of the hmoptions file named hm_xxx.cfg where xxx is the username. I haven’t put any error checking in yet for the usernames so please take care to only use sensible names - start with letters and avoid spaces and other special characters to avoid breaking this file naming convention. The name will be case sensitive too. Here is what the new auth page looks like:


(HousePanel Author) #1413

Hi all faithful HousePanel users. Today I have an apology and an important bugfix to report. The apology is somewhere along the way over the last month or so I managed to break the proper operation of switch tiles and locks. I didn’t notice because most of my lights are dimmers and those were not broken. And I don’t use my panel to operate my locks often. Anyway, long story short… what was broken was the GUI used to use the “toggle” command. I removed this in the main code but didn’t adjust the groovy ST smartapp accordingly. Tonight I fixed this so you probably should upgrade to this latest release. If all your lights are either dimmers, bulbs, or light types then you would not have seen this bug.

[EDIT - made Hubitat fixes too]
A similar fix was done on the Hubitat side and a few minor bugs fixed in the process. Anyway, please update your files with this latest release if you are experiencing funny behavior with switches or valves or locks.

NOTE This update will require you to upload the updated HousePanel.groovy code to your SmartThings account.


(HousePanel Author) #1414

Thanks @jensen18 for reporting this… the bug noted above is what you were experiencing with your switches. Your report clued me into the fact that something was wrong here. After you update per above, the erroneous behavior you noticed will go away. Thanks again.


(Jensen18) #1415

@kewashi no need to apologize, all your great work is why we are here. Thanks for looking into the switch implementation, as I wasn’t sure what to do next. I just updated the smart app based on your fix and now everything is working perfectly. Now I can work on finishing my tab config and figuring out how I am going to mount my tablets.


(HousePanel Author) #1416

[RELEASE] HousePanel Version 1.964

Documentation for HousePanel updated to reflect all recent updates.

I also secured the housepanel.net web domain and will be placing all documentation and other information about HousePanel there in the future. For now it just has a copy of the bundled documentation page, but it is easier to remember than the old doc URL.

Check it out:
http://www.housepanel.net