I’m planning to build several WiFi connected devices for home automation: an AC remote control and air quality sensors. These devices would send data and be controlled through a local server. I’m considering two approaches: running custom software on a server PC (hardware to be determined) or integrating with Home Assistant’s protocols and purchasing their hardware. Would using Home Assistant be excessive for this use case?

  • AbouBenAdhem@lemmy.world
    link
    fedilink
    English
    arrow-up
    50
    ·
    edit-2
    17 days ago

    In terms of software, yes. But HA can be run on nearly anything—there’s no need to buy their hardware to use it.

    • i_am_not_a_robot@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      17
      ·
      17 days ago

      Just be careful with SD cards if you’re using SBCs. Home Assistant does a lot of writing and if your SD card can’t handle repeated writes you may suddenly lose everything. Keep backups to another device and have a replacement SD card ready if extended downtime is going to be a problem for you.

      • CmdrShepard49@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        1
        ·
        16 days ago

        You can connect an SSD to these boards and boot from that instead of an SD card. Definitely the way to go especially considering SSDs dont really cost more than SD cards.

      • 4am@lemmy.zip
        link
        fedilink
        English
        arrow-up
        1
        ·
        17 days ago

        Always run mine in a VM along with everything else, no need for special hardware.

        Get yourself a PoE Zigbee and/or Z-wave receiver and you are good to go, can even live migrate HA if you are fancy

        • white_nrdy@programming.dev
          link
          fedilink
          English
          arrow-up
          1
          ·
          17 days ago

          I run mine in a VM but have USB passthrough for the Zwave and zigbee sticks. I didn’t know there were POE coordinators. Do you have any you recommend? I use both zwave and zigbee

    • roofuskit@lemmy.world
      link
      fedilink
      English
      arrow-up
      15
      ·
      17 days ago

      Adding to this, I recommend a used mini PC. There’s lots of cheap used office hardware out there on eBay that is more powerful, more serviceable, and more flexible than the hardware they sell or a raspberry pi.

      • Goodlucksil@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        2
        ·
        17 days ago

        While there are some problems with used minipcs (notably drivers), i don’t think they are relevant if it is only going to be used as a Home Assistant

        • Trilogy3452@lemmy.worldOP
          link
          fedilink
          English
          arrow-up
          2
          ·
          17 days ago

          That’s a good point. This can help me with things like adding a DNS server (I’m assuming pi-hole can be run standalone on a mini PC)

          • SeductiveTortoise@piefed.social
            link
            fedilink
            English
            arrow-up
            6
            ·
            17 days ago

            I bought a used mini PC and then set up Proxmox. This little thing is a lot more capable than the Raspberry I used before and it runs my complete home lab, excluding my NAS.

            • 4am@lemmy.zip
              link
              fedilink
              English
              arrow-up
              2
              ·
              17 days ago

              Yep! While I didn’t run mine through HA, I much preferred AdGuardHome over PiHole.

          • roofuskit@lemmy.world
            link
            fedilink
            English
            arrow-up
            2
            ·
            17 days ago

            If you’re going to run Home Assistant OS you’d be able to run anything that can run in docker. Some things are available to install directly inside the Home Assistant apps system, otherwise you can install portainer and run any docker capable software.

  • James R Kirk@startrek.website
    link
    fedilink
    English
    arrow-up
    22
    ·
    17 days ago

    As others have said, you can run Home Assistant on anything if you want to just test it out. Their own hardware is a great choice though.

    But to answer your broader question, yes. Home Assistant is the choice. It works better with literally everything else out there.

  • AA5B@lemmy.world
    link
    fedilink
    English
    arrow-up
    8
    ·
    16 days ago

    I’ll also vote to reconsider WiFi. Home Assistant supports a variety of local mesh networks that by default can’t connect to the cloud and whose devices are cheaper and lower power.

    I use all three of zwave, Zigbee, and thread; ha works with whatever you need.

    • jaxxed@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      16 days ago

      Can you comment further on the three mesh networks rhat you use?

      I only use zigbee, but would consider branching out

      • AA5B@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        15 days ago

        I got into each mesh technology for specific devices. Home Assistant supports them all and they seem to coexist just fine in my use case.

        I have a small to medium setup with only a few simple automations and a focus on voice control and scheduling

        Preference

        • Thread - given Apple, Amazon, and Google support and the standardization work, I expect this to be the future. Eventually. But I’m getting impatient. If I’m buying a device, I prefer Thread but usually it’s not yet
        • z-Wave - my first, and most devices. Basically this was what was most available at local stores when I started. No complaints
        • Zigbee - by far the biggest selection of simple, cheap sensors. I need to more of those
        • all too much is WiFi but I try to avoid

        But it also helps that my approach is generally switches and outlets. Hard-wired, predictable network, tend to be repeaters. I have comparatively fewer leaf nodes.

        This approach also fits in with my biggest challenge. While my house is small, it’s an older one with dense materials that blocks a lot of radio signals. For example I have no cell phone reception inside yet strong signal just out any door. My focus on switches and outlets overcome this with a repeater in every room

        So for example a few years back I got a z-wave IR blaster to control a mini-split AC because at the time I mostly used z-wave. I already had a z-wave light switch in the same room, acting as a repeater, so no worries about connectivity. Now I have both z-wave and Zigbee light switches in that room so expect both meshes to be strong for any future devices in that room

    • Trilogy3452@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      17 days ago

      Thanks. I thought the already thought out protocols and configurations would make it easier to program the micro controllers to plug in with that rather than building something on my own

      • sobchak@programming.dev
        link
        fedilink
        English
        arrow-up
        4
        ·
        17 days ago

        It’s been a while since I messed with home automation, but ESPHome was amazing to program ESP microcontrollers (i.e. you most likely wouldn’t have to write any code). You can use ESPHome devices with both Home Assistant and Openhab (using MQTT, IIRC). The last I checked, it was easier to program your own functionality in OpenHAB than Home Assistant.

  • just_another_person@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    ·
    17 days ago

    HA is definitely the largest adopted. OpenHab is probably more geared for developers, but has a more concise and powerful automation system.

    As for hardware to run it on: get a cheap n100 Minipc and be done with it. Uses 6-12W, and it’s going to miles.kore efficient for this use than a regular PC.

    • Richard@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      arrow-down
      1
      ·
      17 days ago

      There is also OpenHAB, but I think Home Assistant is the more mature one of the two.

  • muusemuuse@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    3
    ·
    edit-2
    16 days ago

    you are Apple-centric:homebridge

    There’s a mix: homebridge

    You are out of mood stabilizers: arduino and an ESP32

  • Canuck@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    5
    ·
    17 days ago

    Before HomeAssistant, OpenHab was the undisputed king. I still like them because they let you remotely access you home without having to subscribe to anything or set up any remote access methods

    • baahb@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      8
      arrow-down
      1
      ·
      17 days ago

      This implies that I am paying to access HA outside my network. I am not. You do not need any kind of subscription to access home assistant externally.

    • AA5B@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      16 days ago

      I choose to pay for remote access, but it’s for convenience and to support the developers. You are free to configure it yourself in a couple ways (and there is decent documentation) or do without remote access

      I don’t know how you set up remote access for OpenHab, but from a quick glance at the web site it looks similar