I would like to start using floorplans/maps with various device actions on them. This means I need locally stored images, that can be seen over the network.
I managed to upload images to HA, but as they need to be accessed with a token, I either need to refresh the token every day (no), or have an image with a long-lived token (also not a good idea).

How have other people done things?
Is it worth spinning up an http image host?
Or maybe throwing files into an nginx folder inside HA?

Thoughts on a postcard :)

    • GreatAlbatross@feddit.ukOPM
      link
      fedilink
      English
      arrow-up
      3
      ·
      edit-2
      1 day ago

      Aha, that was what I was after, big thanks!

      So, after a bit of meddling:

      The location I was placing things in was media>my media (from the HA UI).
      Assets there are stored in /media, and served in 8123/media/local, but require an autoSig.
      Changing permissions doesn’t affect the availability, no sig is a 401 error.

      However, if the file is copied from /media to /config/www/ , it’s then served (as you said) under 8123/local.

      Brill, not too painful a process for a few static images (or indeed if I’m feeling brave, I could just symlink the folders).

      Maybe one day there will be a way to upload background images for picture elements cards from the UI :)

      • James R Kirk@startrek.website
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 day ago

        If you’re using HAOS (ie not running in docker), there is an official add-on called “File Editor” that allows you to edit the config.yaml and upload files from the UI. It’s not perfect but gets the job done.

  • Convict45@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 day ago

    Gotta be contrarian here and say: using floorplans as your graphic frame for controls is very inefficient. And not very good graphical design.

    • GreatAlbatross@feddit.ukOPM
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 day ago

      I can appreciate that!
      I do have standard layouts which are mostly big button to do a thing in the room.
      But I also fancied having by-floor layouts.

      And you’re right: The button I have that sets the kitchen spots on/off/dim as a group is 10x more useable than a scale representation of their location in the ceiling!

  • confusedpuppy@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 day ago

    How do you have HA set up? For example I currently have a Raspberry Pi 4 and installed a HomeAssistant Docker image.

    Since I’m not using HA addons, I’m free to use any Docker image that supports Raspberry Pi’s ARM architecture. I use a simple file server which is more than enough for my needs.

    If you’re using an HA setup where that’s not possible, someone else may be able to suggest an HA addon that would fit your needs.

      • confusedpuppy@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 day ago

        Ah yeah, I’ve heard of Proxmox but have never looked into it. From my experiences, HA is quite flexible so some questions are never that simple. Still worth all the effort though :)

        • GreatAlbatross@feddit.ukOPM
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 day ago

          That was going to be my backup plan, as I didn’t want to use any more resource if I could avoid it 😅

          The good news is, we figured it out, and got the file serving out of /config/www without an auth requirement.

  • BMW_stick@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 day ago

    For many years, I’ve used Weebly to host images, docs, etc, on our website URLs, but they’re just static. When I need to do work on my phone or laptop and need that synch’d elsewhere, I use the Microsoft suite, but those are normally Excel charts or Word docs.

    • GreatAlbatross@feddit.ukOPM
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 day ago

      I’m more interested in what people are doing for internal hosting, not external hosting services. Thanks for the info, however.