ActiON, aka Web Dashboard 3.0


(Alex) #1

The new version is finally here!
ActiON-Dashboard 4

Please continue discussion in the new thread.
Thank you all for support!!! I appreciate all your contributions!


Continuing the discussion from Web Dashboard 3.0:

Sorry, this took longer than I hoped, but here it is and it has more than I ever planned to do…

New features:

  • Hello, Home! actions
  • Motion sensors
  • Weather
  • Momentary switch
  • Humidity
  • Analog clock
  • Links. Useful to link multiple dashboards.

Improvements

  • UI tweaks (my wife picked the colors)
  • Temperature is rounded off to the nearest integer
  • I thought it needed a name. “Web Dashboard” is not too creative, although very appropriate for a web dashboard.

Installing the ActiON dashboard

  • Open the logs first
  • Install app as usual via mobile device.
  • Don’t forget to enable Oath in the SmartApp setup!
  • Check the logs to see your URL or tap app icon in Mobile App to print the URL to the logs again.

It is possible to install 1 fully functional instance of this app per location in the IDE. If you need a dashboard and you don’t have your mobile device with you, now you have a way to control your home.

You don’t need to install ST mobile app on the device that will be used to run the dashboard. It should work in any modern browser (including IE).

Future plans (in collaboration with @jjhamb )

  • Thermostat support
  • Rearranging tiles
  • Tabs
  • Instant updates
  • Cache js and css to load even faster!

Code and installation instructions are here

Enjoy!


If you would like to make donation, you can use Paypal account alex.smart.things [at] gmail [dot] com.

While I never intended to develop this app for profit, it would help me to buy more hardware without my wife looking at me weird. Any contribution is more than I expected to get for my efforts. I developed the app for myself and I had fun doing it!


SmartThings Web Interface
Home Automation Dashboard (HAD)
Any update on iPad app?
Rule Builder Status? And What does SmartThings think its demographic is and what does it want it to be?
Web Dashboard 2.0
Is a tablet interface planned?
Is there a physical controller that can be used for family use?
Web Dashboard 3.0
Better App to configure SmartThings Hub
(Adam Fishman) #2

Great job. Just sent you $5!


(David Creed) #3

Revised Link : https://github.com/625alex/SmartThings/blob/master/apps/ActiON-3.0.groovy

Thanks Alex, tested and working great.


(Alex) #4

I updated the link. There was a typo that I thought I fixed.


(Matt) #5

Awesome, 3.0! Great Work


(Convinced ST will never be unbroken…) #6

I sent him $7.50.

Do I hear $10?


(Matt) #7

I Sent $10.00

Who’s next?


(Richard) #8

Just sent $20.

Thanks


(Coolcatiger) #9

I am getting error
"{“error”:true,“type”:“java.lang.NumberFormatException”,“message”:“An unexpected error occurred.”}"

12:47:28 PM: error java.lang.NumberFormatException @ line 287

I am doing something wrong ?


(Alex) #10

Are you using a humidity sensor that is somehow unusual?


(Linda Thomas-Fowler) #11

Did you remember to enable oauth when you created the new smartapp?


(Coolcatiger) #12

Yes I am using humidity sensor of UBI.
https://github.com/pstuart/smartthings/blob/master/Get%20Ubi%20Sensors

I removed it and now it is working.

Thanks.


(Alex) #13

I updated the code, so the app will not break at least. I’m not sure how UBI’s humidity is different. Let me know what value you actually see on the tile.


(Coolcatiger) #14

Same error.

Is there way to see value in debugger ?
may be for debugging treat it as string instead of number ?


(Coolcatiger) #15

I am guessing it adds % sign to humidity number like 56% and that is why it is throwing exception.


(Alex) #16

Hm… Not according to the code. And it’s strange that the exception is not handled with my update…

Try to replace the function at line 285 with this and let me know what you get in the logs.

BTW, don’t forget to click “Publish” after you update the app in the IDE. I think you forgot to publish…

def roundNumber(num) {
    log.debug "rounding number $num"
    if (num == null || num == "") return "n/a"
    if (!"$num".isNumber()) return num
    else {
        try {
            def n = Math.round(num)
            return n
        } catch (e) {
            log.debug "error rounding number $num"
            return num
        }
    }
}

(Coolcatiger) #17

Thanks, I dd publish.

Here is log

b1568efb-9d1b-47f5-8bd3-96f55fc1cac4 2:11:01 PM: error java.lang.NumberFormatException @ line 287
b1568efb-9d1b-47f5-8bd3-96f55fc1cac4 2:11:01 PM: debug rounding number 71
b1568efb-9d1b-47f5-8bd3-96f55fc1cac4 2:11:01 PM: debug rounding number 66
b1568efb-9d1b-47f5-8bd3-96f55fc1cac4 2:11:01 PM: debug rounding number 73.58000000000001
b1568efb-9d1b-47f5-8bd3-96f55fc1cac4 2:11:01 PM: debug rounding number 69
b1568efb-9d1b-47f5-8bd3-96f55fc1cac4 2:11:01 PM: debug rounding number 71
b1568efb-9d1b-47f5-8bd3-96f55fc1cac4 2:11:01 PM: debug rounding number 70
b1568efb-9d1b-47f5-8bd3-96f55fc1cac4 2:11:00 PM: debug rounding number 70
b1568efb-9d1b-47f5-8bd3-96f55fc1cac4 2:11:00 PM: debug rounding number 68
b1568efb-9d1b-47f5-8bd3-96f55fc1cac4 2:11:00 PM: debug rounding number 68
b1568efb-9d1b-47f5-8bd3-96f55fc1cac4 2:10:59 PM: debug weather [Outdoor Weather]


(Alex) #18

No errors then? What did you get in the tile?


(Coolcatiger) #19

I still get error on web page.

{“error”:true,“type”:“java.lang.NumberFormatException”,“message”:“An unexpected error occurred.”}


(Patrick Stuart [@pstuart]) #20

Yes, the tile label adds the % not the actual value. Not sure how you are grabbing the values, but the raw number is stored in the value, but the tilevalue will show the % in humidity. Now only if there was some sort of standard way to do this, instead of having to code around it…