This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
Official
Comments
Hope to do some custom theming in the future. Mimicking the Homey UI is a great start but I think that way it will differentiate less with the Homey app (once it starts working more smoothly) or the mobile interface.
That looks great and does differentiate with the (current) Homey app and mobile view.
Just a thought, you could even switch to night mode automatically based on time or even lux from the camera or another sensor ... ;-)
Should indeed be easy to integrate. The mock-up is based on solid colors and basic gradients, so it might even be possible to create some color templates in general.
So if anyone has some suggestions
Most widgets in that mock-up are made for specific devices, for instance i don't have my alarm system connected to my homey (and will never do so). At the moment i am only controlling all the lights and a few apliances trough my homey. So such a dashboard will never fill my needs, since its to "detailed".
A dashboard really comes to personal preferences and devices you use at home.
I just hope my code/ideas inspire others to create a dashboard for them self.
For now again a video of my progress. Created the html from the mock-up. Added an RSS feed reader that at this moment gets the latest 60 sec news video from nos.nl. Single tap and it goes fullscreen and plays, tap again and it pauses and goes back. (The video got corrupted when switching to full screen, since the browser itself switches to fullscreen as well.)
Since the dashboard is in the same room as the devices that are controlled, i am adding a way to long press a device icon to make the light go more bright or less bright. Might add a way to see the percentage more clearly. A normal device will be switched with just a single press. The icon will show if the device is on or off in general.
This way just makes the dashboard look more "clean" since i don't need sliders or switches.
Basically http://jquery-plugins.net/jquery-circular-slider-plugin for reference (no idea if you use jquery, but still).
Thought about the same thing, and should be possible. But now it is more like the normal dimmer push button. The bar on the display is more for debugging. Added a smaller one in the current version just below the device itself wich can be enabled/disabled in the config. Might going to test it, but do have a feeling it is less precise.
I'll try Hammer to see if i can make it work to long press an item and on swipe up percentage+ and on swipe down percentage-. Not sure if i am able to control the swipe distance...
@KoenMartens:
Tried the circular ones, even with svg and css. (Was thinking about half round one) Couldn't get it to work nicely, and i think it is to big to use on a 7 inch. (The "handle" needs to be big enough for a drag)
http://codepen.io/anon/pen/PzamRw
Edit: above pen is now working with long pres... Long press the item first and then pan up or down.
Now i should be able to use a single tap as on off for dimmers as well(and restore last known dimming value). Long press activates the panning up and down.
I've created a mockup to show what I mean:
By using an action screen you can customize what you want to control. If you want to control also the color for example, you could simply add it to the action screen. Because it's big and very easy to understand it's fool proof.
Maybe a slider is not even needed. I actually never set my Hue's to 68%. Actually some states like DIMMED / NORMAL / BRIGHT would be perfect for me.
If you have a ceiling fan with 3 modes you can just create an action card with an on/off button and three mode buttons: SLOW / MEDIUM / FAST.
You can also use it to get more information on a specific sensor for example. Press and hold and the card appears with detailed info or history, etc.
But after playing all day with the codepen i posted previously, i do find that way kind of "refreshing". Different then standard, but still logical in its use. I do feel that the dashboard should give some sort of feedback, since that technique wouldn't work on a thermostat for example..
Do note that athom gave us some hints on a dashboard they are creating in the future..
This project is really meant to give other users a quick start to create something in their own ideas. (the angular code is pretty easy to read if you are just a little bit known with js, for me its just a hobby as well )
If others do like to see some aditions, added features etc. Then i really don't mind to keep developing this dashboard in a fork or a 2.0 version. I even don't mind to start from scratch on a new version, and create something the community wants to use/see. But then i might need some help
If there are people who would like to brainstorm on this idea, want to help or need some help on creating a fork they can contact me on slack (same user name)
For now i need 3 api requests (get zones, get devicelist en get devicestate), in the upcoming update it would be possible to get the state in the devicelist request. (this makes this allot easier).
After this it shouldn't take long to get a working dashboard (control on/off and dimmers).
Would make the app faster hopefully.
Did a foreach on the devicelist to get the current state and added this to the device list object. In this way it should be future proof when athom updates their api with the state in the devices request. (as stated before, i have to query every single device to get its current state)
I am not completely satisfied with the current looks. I feel that the devices area is to small, and the sidebars to wide. Going to focus on the api parts first, and how the devices are controlled. Then i'll be working on the UI again.
Very nice and quick work so far on the dashboards!
The 1 second update is to get the current state of the lights. (for example, if you switch it on with the normal switch it gets updated after 1 second in the dashboard) Controlling volume or dimmable lights should be instant. (not implemented yet tho)