Quick backstory. At home, HA is great. The moment I leave the wifi it gets annoying.

I had Tailscale for remote access and it works fine, until it doesn’t. Pull into the driveway, phone’s still on LTE, Tailscale is up, or maybe not, who knows. Open the HA app, spinner. Wifi kicks in, the app still hangs on to the old connection. Kill it, reopen, spinner again. And there I am in the car in front of a closed garage door, poking at my phone like it’s 2009. Pretty much the opposite of what I set up home automation for.

Port forwarding on my router? Nope. Nabu Casa just so I can toggle one cover? Didn’t feel right either. And I really didn’t want another VPN that needs to be “up” before anything works.

So I built ha-iroh. Small Android app + a HACS integration, talking over iroh, a peer-to-peer QUIC thing. The phone and your HA each get a keypair, everything is end-to-end encrypted, iroh punches through NAT when it can and goes via a relay when it can’t. The relay only sees ciphertext.

The part that actually fixed my problem: there’s nothing to “connect” first. Open the power menu, tap the garage cover, it opens. The app dials HA on demand over whatever network the phone currently has (wifi, LTE, crappy hotel wifi), and drops the connection when you’re done. Switching networks is a non-issue because there’s no long-lived tunnel to lose in the first place.

What you get

  • Device Controls in the Android power menu / quick settings: lights, switches, fans, climate, covers, locks, scenes, scripts, buttons, with live state
  • Assist from a quick settings tile or launcher shortcut (text for now, voice is on the list)
  • your normal HA dashboard inside the app, log in once, works with any auth provider incl. MFA
  • multiple HA instances in one app
  • nothing exposed on your router. Pair by scanning a QR code in HA, delete the device in HA to kick the phone out again

What it’s not

Not a replacement for the official app, and not trying to be. No sensors, no location, no notifications, no widgets, no Wear OS, no iOS. I run both: official app for all of that, ha-iroh for the “I’m standing outside and want the thing to happen now” moments.

Where it’s at, honestly

  • v0.2.x. I use it daily, so the tester count is roughly one. Expect rough edges.
  • Android 12+, arm64 APK via GitHub Releases / Obtainium. Not on Play.
  • HA side: HACS custom repo, HA 2026.3 or newer. The integration runs a small Rust bridge as a subprocess, bundled for x86_64 and aarch64, so HA OS / Container / Supervised all work.
  • Want lower latency from outside? You can forward one UDP port and iroh goes direct. Totally optional, the relay path works everywhere.
  • Two HA settings that can bite you, both in the README: ip_ban_enabled (the bridge talks to HA from localhost, so a few wrong passwords from any phone lock out 127.0.0.1 = every phone), and never put loopback into trusted_networks.

Links

Bug reports very welcome, especially from people behind CGNAT, on Fritz!Box / MikroTik, or with unusual HA setups. If it saves you one minute in front of a garage door, mission accomplished.

  • Midnight Wolf@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    21 days ago

    Physical button: 1 action, no logic

    Software button: infinite actions, complete logic over everything in HA

    It’s like ‘why should I use HA, the light switch is right there’ yes technically but you’re missing the whole point. Why should you go on trips and see the sights of other places, Google Street View is right there.

    E: real world example, though my network reaches far beyond my driveway so no button required:

    Automation
    alias: Midnight - Travel, Arriving Home
    description: ''
    triggers:
      - trigger: zone
        entity_id: person.midnight
        zone: zone.home
        event: enter
    conditions:
      - condition: state
        entity_id: input_boolean.midnight_awake
        state:
          - 'on'
      - condition: time
        after: '10:00:00'
    actions:
      - if:
          - condition: not
            conditions:
              - alias: Connected to home wifi network
                condition: state
                entity_id: sensor.midnights_phone_wi_fi_connection
                state:
                  - input_text.home_network
        then:
          - wait_for_trigger:
              - trigger: state
                entity_id:
                  - sensor.midnights_phone_wi_fi_connection
                to:
                  - input_text.home_network
            timeout:
              hours: 0
              minutes: 1
              seconds: 0
              milliseconds: 0
            continue_on_timeout: true
      - if:
          - condition: state
            entity_id: light.midnight_s_bedroom
            state:
              - 'off'
        then:
          - action: light.turn_on
            metadata: {}
            target:
              entity_id: light.midnight_s_bedroom
            data:
              brightness_pct: 35
          - action: input_boolean.turn_on
            target:
              entity_id: input_boolean.midnight_s_light_override
            data: {}
          - if:
              - condition: numeric_state
                entity_id: light.midnight_s_bedroom
                attribute: brightness
                below: 35
            then:
              - action: light.turn_on
                metadata: {}
                target:
                  entity_id: light.midnight_s_bedroom
                data:
                  brightness_pct: 35
      - delay:
          hours: 0
          minutes: 0
          seconds: 15
          milliseconds: 0
        enabled: true
      - action: automation.trigger
        metadata: {}
        target:
          entity_id:
            - automation.battery_low
            - automation.midnight_s_bedroom_midnight_s_thermostat_outside_is_cooler
            - automation.midnight_s_bedroom_midnight_s_thermostat_outside_is_warmer
        data:
          skip_condition: false
      - action: tts.speak
        metadata: {}
        target:
          entity_id: tts.piper
        data:
          cache: false
          media_player_entity_id: media_player.midnight_s_bedroom_home_assistant_voice_media_player
          message: Welcome home, Midnight!
    mode: single
    
    • mnemonicmonkeys@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      0
      ·
      21 days ago

      Why should you go on trips and see the sights of other places, Google Street View is right there.

      This is a terrible argument because it’s the exact opposite of what you’re trying to push. OP’s spending all this time trying to optimize a garage door opener and it’s not working, while they could have just gotten a basic button set up in 5 minutes and be done with it, giving them more time to do something they actually enjoy.

      Home automation is supposed to save you time and make your life easier. Spending a bunch of time programming your house to greet you so you can cosplay as Tony Stark isn’t that.

      Maybe you don’t care and you find enjoyment in the tinkering on it’s own. That’s valid, but don’t get all defensive when other people don’t value the same things.

      OP is getting frustrated about an issue they’re having with home automation that’s easily bypassed with less tech. If they want to keep tinkering that’s their right. But maybe they were considering cutting their losses already and wanted validation. Maybe they got caught up with automating everything that they never considered not automating everything. I don’t know, I’m not psychic. But they can step back and make a conscious decision as to whether they keep going

      • Midnight Wolf@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        21 days ago

        …it’s supposed to be a bad (sarcastic) argument, for the reader to see that it is bad and reflect on the rest of the argument, followed by a light-bulb moment.

        crickets

        But I digress. I stopped reading after you called me defensive - you asked a question, I gave you an answer. That you don’t like the answer is your problem. Lead a horse to water but can’t make it drink…

        • mnemonicmonkeys@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          0
          ·
          21 days ago

          …it’s supposed to be a bad (sarcastic) argument

          Sure it is. It’s totally not a Schrödinger’s Asshole /s

          Also, I asked OP a question, not you.