You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If you set services.home-assistant.port = 4000 but you don't set services.home-assistant.config to anything, then nothing changes. You still have to access it on port 8123
To Reproduce
Steps to reproduce the behavior:
set
services.home-assistant = {
enable = true;
port = 4000;
};
sudo nixos-rebuild switch
check localhost:4000 and localhost:8123
Expected behavior
I will see the landing page on localhost:4000, and not on localhost:8123
Metadata
system: "x86_64-linux"
host os: Linux 5.4.23, NixOS, 20.09pre215947.82b54d49066 (Nightingale)
I can reproduce this issue with the following test. The test hangs while waiting for the port. I see the issue, which is caused primarily by the configuration.yaml file only being overwritten when cfg.config != null.
# nixos/tests/home-assistant-bug.nix
# run with: nix-build nixos/tests/home-assistant-bug.nix
import ./make-test-python.nix ({ pkgs, ... }:
{
name = "home-assistant";
nodes = {
hass =
{ pkgs, ... }:
{
services.home-assistant = {
enable = true;
port = 4000;
};
};
};
testScript = ''
start_all()
hass.wait_for_unit("home-assistant.service")
with subtest("Check that Home Assistant's web interface and API can be reached"):
hass.wait_for_open_port(4000)
hass.succeed("curl --fail http://localhost:4000")
'';
})
…viour
If the `config` option is not set, the `port` option has no effect. This
is caused by the condition `cfg.config != null` not passing, resulting
in the default `configuration.yaml` file not being overwritten.
If `time.timeZone` isn't set, it also appears to cause home-assistant to
error out.
Another issue is that the `defaultConfig` doesn't currently set `frontend`
which means in the minimal setup with just `port` set, we still won't be able
to reach the frontend.
Describe the bug
If you set
services.home-assistant.port = 4000
but you don't setservices.home-assistant.config
to anything, then nothing changes. You still have to access it on port 8123To Reproduce
Steps to reproduce the behavior:
sudo nixos-rebuild switch
Expected behavior
I will see the landing page on localhost:4000, and not on localhost:8123
Metadata
"x86_64-linux"
Linux 5.4.23, NixOS, 20.09pre215947.82b54d49066 (Nightingale)
yes
yes
nix-env (Nix) 2.3.3
"nixos-20.09pre215947.82b54d49066"
"home-manager, nixos-20.09pre215947.82b54d49066"
/nix/var/nix/profiles/per-user/root/channels/nixos
Maintainer information:
The text was updated successfully, but these errors were encountered: