!QhvgabMQzwEQeWehhZ:lossy.network

NixOS Home Automation

476 Members
Declarative Home Automation and other Sidequests | https://wiki.nixos.org/wiki/Home_Assistant137 Servers

Load older messages


SenderMessageTime
29 Mar 2025
@hexa:lossy.networkhexayep23:11:15
@continous:matrix.orgcontinousI'm gonna go try and fail horrible until I succeed by sheer luck.23:12:22
@hexa:lossy.networkhexaenjoy πŸ˜„ 23:31:01
@leo:gaspard.ninjaEkleog Hmm how do y'all configure multiple dashboards? I've been trying to add mine in environment.etc and refer to them from my hass config, but they… seem to always be exactly type: original-states, so I guess it's not actually reading them? 23:53:21
@hexa:lossy.networkhexajust services.home-assistant.lovelaceConfig23:55:35
@hexa:lossy.networkhexa * just services.home-assistant.lovelaceConfig 23:55:40
@hexa:lossy.networkhexaI have both declarative setups as well as imperative ones23:56:00
@hexa:lossy.networkhexa * I have both declarative setups as well as imperative ones (where lovelaceConfig = null) 23:56:12
30 Mar 2025
@leo:gaspard.ninjaEkleog hmm so how do you do multiple dashboards with a single lovelaceConfig? 00:01:18
@leo:gaspard.ninjaEkleog

My understanding was you're supposed to do something like this to get multiple dashboards:

      lovelace.dashboards = {
        lovelace-volets = {
          mode = "yaml";
          title = "Volets";
          icon = "mdi:window-shutter-open";
          filename = "/etc/home-assistant/volets.yml";
        };
      };
00:01:53
@leo:gaspard.ninjaEkleogunless there's some way to have multiple dashboards with a single big yaml file? but I've been unable to figure any such way out :/00:02:48
@leo:gaspard.ninjaEkleogoh fu i'm so stupid00:15:26
@leo:gaspard.ninjaEkleogmy file is named volets.yaml not volets.yml00:15:33
@leo:gaspard.ninjaEkleogbut wth home-assistant not even logging that the file does not exist ._.00:15:43
@leo:gaspard.ninjaEkleog * but also wth home-assistant not even logging that the file does not exist ._. 00:15:50
@continous:matrix.orgcontinousI'm done, it's working, how should I submit the package pull request? I've literally never submitted a package lol00:19:23
@continous:matrix.orgcontinousActually I'll just go look at the github maybe they'll have a guide00:20:04
@hexa:lossy.networkhexastart here https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md#quick-start-to-adding-a-package00:24:53
@hexa:lossy.networkhexaand feel free to link the PR here00:25:04
@hexa:lossy.networkhexa
  services.home-assistant.lovelaceConfig = {
    title = "hub.cccda.de";
    views = [
      space

      lounge
      kitchen
      workshop
    ];
  };
00:25:59
@hexa:lossy.networkhexa *
  services.home-assistant.lovelaceConfig = {
    title = "hub.cccda.de";
    views = [
      space

      lounge
      kitchen
      workshop
    ];
  };
00:26:04
@hexa:lossy.networkhexa *
  services.home-assistant.lovelaceConfig = {
    title = "hub.cccda.de";
    views = [
      space
      lounge
      kitchen
      workshop
    ];
  };
00:26:07
@hexa:lossy.networkhexabasically a list of views πŸ˜„ 00:26:17
@hexa:lossy.networkhexa cc Ekleog 00:26:20
@hexa:lossy.networkhexa

and a view is basically

  workshop = {
    title = "Workshop";
    cards = [ {
      type = "vertical-stack";
      cards = [ {
        type = "area";
        area = "workshop";
      }
        (mkRoomSensor "c02a8b")
      {
        type = "media-control";
        entity = "media_player.workshop";
      } {
        type = "entities";
        entities = [
          "button.wake_workshop"
          { type = "divider"; }
          "climate.workshop_wandthermostat"
          (mkShellyPlugS "workshop_powerstrip_left" "Powerstrip Links" "mdi:power-socket-eu")
          (mkShellyPlugS "workshop_powerstrip_right" "Powerstrip Rechts" "mdi:power-socket-eu")
          (mkShellyPlugS "workshop_amp" "Amp" "mdi:speaker")
        ];
      } ];
    } ];
  };
00:26:45
@hexa:lossy.networkhexa *

and a view is basically

  workshop = {
    title = "Workshop";
    cards = [ ... ];
  };
00:27:07
@hexa:lossy.networkhexaI do reference them, because otherwise the nesting drives me crazy00:27:27
@leo:gaspard.ninjaEkleog hexa: oh ok yea so you only get views, not actual dashboards β€” I got a few views already but I want more than my phone's UI can reasonably display, so I'm testing out multiple dashboards with fewer views on each dashboard now πŸ˜„ 00:36:41
@leo:gaspard.ninjaEkleogthank you for the details!00:36:49
@hexa:lossy.networkhexaah, ok00:40:07

Show newer messages


Back to Room ListRoom Version: 6