134
obia
6y

#thread
Any Home Assistant fans out there? Got myself a RPi3 a few months ago and got hooked on HA, because of the huge product support and great community. Didn't find any dashboards that I liked so created my own, written in JS, fully customisable and support for most if not all kinds of gadgets. The purpose was to have something easy to use for the whole family, on a wall-mounted tablet. What do you guys think?

Anyways, has anyone done some cool home automations/scripting? Would love to hear about it!

Comments
  • 23
    Vacuum control
  • 34
    It looks like the future
  • 10
    That’s so cool!
  • 6
    @trickory thanks! Tell that to my wife 😁
  • 3
    Looks awesome!
  • 5
    I'm enlightened. Ppl like u keep the hacker spirit alive.
  • 12
    Looks great!

    Put it on github or similar please, would love to integrate it with my openhab setup
  • 4
    @Kimmax that has been the purpose from the start, but you know how it is. Just need to fix a few things, make some proper documentation etc.. 😁
  • 1
    I now know where you live!

    Why is the UI language in Swedish lol? Because you want the other people in your household to use it? 😁
  • 2
    Snygg layout, blir nog att ta lite inspiration av!👍
  • 1
    @olltard tack! Tyckte jag fick till det mer eller mindre som jag föreställt mig 😁👍
  • 4
    Now *THAT* is what I call an awesome project! Nicely done! Can't wait to see it up on GitHub/Lab!
  • 2
    @BigBoo yes 😁 but all strings are available in the config and can be translated as you wish.
  • 2
    @obia Mycket bra! 4/5 toasters.
  • 1
    @obia Its time for divorce my friend
  • 1
  • 2
    That looks SO good!
    Great work.
    Can't wait for source.
  • 1
    @rstular Hope to publicly in the near future! Good question though, GitHub or GitLab? 😁
  • 1
    @trickory lol, I haven't given up yet😁
  • 1
    Coolt, hur många pengar var det?
  • 2
    @obia I don't care about docs and whats up behind your setup, I'll probably rip it apart and build it on top of my shit anyway :D

    I'm mostly interested in the design, I suck at that stuff
  • 1
    @obia Am I right that the background is probably hand sketched on gridded paper and scanned? Looks cool
  • 1
    Wow wow wow
  • 1
    📌
    Wow, this looks cool
  • 1
  • 1
    📌
  • 1
  • 4
    Fuck git repositories! Upload that shit to gdrive!
  • 2
    Looks awesome! Do you use any JS library (functionality wise)?
  • 2
    @obia I would suggest that you do that after you put it on gitlab/github most people don't get it, most github projects weren't that clean at the start, you can put it up and create issues for cleaning up and documenting and people who is interested can help you up
  • 0
    @obia I would suggest that you do that after you put it on gitlab/github most people don't get it, most github projects weren't that clean at the start, you can put it up and create issues for cleaning up and documenting and people who is interested can help you up
  • 1
  • 4
    And this is what css looks like when someone doesnt suck...
  • 2
    📌 Just wow.
  • 2
    @gitworktree Just a couple of smalle ones to handle specific functionality, like long-press.js for brining up a context menu on long press. Otherwise vanilla js and jquery. Bootstrap for styling.
  • 2
    @Kimmax It's an actual floor plan that I snapped with my phone and edited in Photoshop. The layout consists of three layers. Layer 1 (optional) can show any repeated image, I chose a grid. Layer 2 (also optional) can show any image as an overlay, I chose a floor plan (and vacuum). Layer 3 contains all HA entities
  • 3
    @Floydian thanks! So, Home Assistant is an open source project with the aim of controlling smart things in your home. The dashboard I built is connected using a websocket and can get/set properties within HA. Basically I wanted to have a wall mounted control panel for controlling my home. Right now I control lights, switches and the vacuum robot. I also pull info from inside temp sensors, wheather info from internet sources as well as getting news from any wished RSS feed that rolls in the bottom of the screen. I've also integrated support for cameras with clickable thumbnails that updates at any given interval but I don't own any cameras. Yet 😁
  • 1
    @Floydian well, you host everything yourself and no internet is required, unless you want external access when you're not at home and in that case you need to take some security measures.
  • 2
    @Floydian for HA not really, although it helps. It's mostly about configuration so you do need to understand the YAML format. For my dashboard no, but you need to understand json structure as that how you configure it. I actually built another tool where you can build the dashboard in a nice drag and drop gui and then generate the json from there, for my non-techie friends 😁 that's not completely finished yet though
  • 2
    📌 #metoo
  • 0
    What's the repo? ( Or is it not live yet?)
  • 1
  • 1
    @chabad360 not yet, need to clean it up a bit first
  • 1
  • 1
    Smoke and fire detection, and movement detection using pir sensor
  • 0
  • 2
    @gunslinger cool! Custom fire and smoke detection? I have it integrated in my Verisure alarm, that also can be controlled from HA. I use alarm state to trigger the vacuum and lights differently depending on if we are home or not. Another cool thing that I've done is to add an USB IR transmitter to the Pi that can control my old Denon receiver. HA detects if the Chromecast audio changes to Playing and then turns the receiver on. 5 min idle and it turns off again. That paired with a Google Home is working really well. Next up is to control the sun blinds depending on the weather forcast for the coming hours 😁🌞
  • 1
    @gunslinger and thanks for reminding me that I need a motion detector paired to the garage lights 😁👍
  • 1
    For light detection use photoresistor dude. It'll cheap as hell.
  • 0
    Weather status connected to online service api. And upcoming weather prediction
  • 2
    @gunslinger yup, already have that setup. Left is to control the motor of the sun blinds from the newly purchased rfxtrx433e. Apparently I need a Windows computer to make that configuration. Fuck.
  • 0
    Thats cool man @obia
  • 0
    @obia can you list all your tech stack (e.g. integratd gadgets) used in this project if possible??
  • 1
    @CozyPlanes I'm gonna guess when the repo goes up, the stack will too.
  • 0
    @CozyPlanes The dashboard has a quite simple stack:

    - Web server of any kind
    - JS/Jquery for logic
    - HTML
    - bootstrap theme + some custom CSS for styling

    Of course the dashboard requires a running HA installation where you set up all your devices and automations (I have both HA and the dashboard running on the same RPi)
  • 0
    @obia what HA system are you using?
  • 0
    @chabad360 Hassbian
  • 0
    📌
  • 1
  • 0
    Another .
  • 0
    @obia any updates?
  • 1
    @chabad360 honestly I haven't touched it in a few months but since I'm still on vacation next week I'll try to find some time to make the last tweaks. If the weather allows it 😉
  • 1
    @obia since there are a lot of people intrested in it here, how about just dumping it to github/lab and have the community work on it? :P
  • 1
    @Wack I know, I know but there are two things I need to fix. First of all as it's loosely built on a commercial template I need to remove/change some of the CSS. Secondly I really need to document the json structure for the config file or it won't make sense to anyone. Speaking of that, what is the best way of documenting json?
  • 1
    @obia probably to have an example json file showing all possible options, with some quantors like `+` and `*` as we know from regex?

    But never actually thought about it.
  • 1
    Fucking awesome. I've been wanting to do this for so long. I'm currently using a combination of Amazon echos, Logitech Harmony Hub, and a Google home device to control the lights, thermostat and living room entertainment center. I need a house so I can do something like this.
  • 1
    @sylar182 you get a long way with only voice control! But as my family is reluctant to use that and don't want to fiddle with the phone to turn on the lights I thought I'd make a wall-mounted control panel instead. So far so good 😉
  • 0
    @obia dude I'm getting so impatient, when will it be OS?

    Also, how does the menu builder work with hassbian? ( I.e. how do get all connected devices, or do you not and rely on the human to put in the correct device names)
  • 0
    @obia Also for documenting the JSON, I would suggest either what you would do for xml schemas or examples with comments, aside for listing all available children for a given property.
  • 3
    @chabad360 sorry if it seems like I'm stalling, I'm doing the best I can with the limited time between family and work. Code-wise I'm now finished tweaking so I just have some documentation to write up, stay tuned!

    As for devices I hope I was clear on that you need a running Home Assistant server where you have your devices already added. In my dashboard you simply refer to the entity id's (i.e switch.hallway) in the configuration. You can as well specify friendly names, size, color, position etc. All available entities can be listed from the HA web gui. Basically I'm only fronting/controlling whatever already is setup in HA.
  • 0
    @obia 1. Don't mean to rush you, it's just I haven't heard from you in a while.
    2. That's exactly what I wanted to know, thanks!

    Can't wait to try it out.
  • 3
    Ok, the moment has finally come, the git repository is now live!!

    https://github.com/obia75/hadash

    Please, be gentle, this is my first public project :)
  • 2
    @obia nice! I'll have one more exam but right after I'll probably try to set it up (we do have some hue lights and a roomba, so why the fuck not?)
  • 1
    Awesome! Gonna see what cpu n mem my pi hole setup uses to see if I can dual host that or buy another one just for this project! 👍
  • 0
    And feel free to contribute, we could make it a truly awesome product!
  • 0
    Yay, I don't have HA, but this might be the excuse to get it.
  • 0
    @desirous tack!!
Add Comment