l hass: make lovelace configurable
This commit is contained in:
parent
0cee1b9302
commit
d450eb6c37
@ -23,6 +23,7 @@ with import ./lib.nix { inherit lib; };
|
|||||||
# extraComponents = [ "hue" ];
|
# extraComponents = [ "hue" ];
|
||||||
};
|
};
|
||||||
configWritable = true;
|
configWritable = true;
|
||||||
|
lovelaceConfigWritable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
lass.hass.config = let
|
lass.hass.config = let
|
||||||
|
@ -5,4 +5,35 @@ with import ../lib.nix { inherit lib; };
|
|||||||
lass.hass.config = lib.mkMerge [
|
lass.hass.config = lib.mkMerge [
|
||||||
(lightswitch switches.dimmer.bett lights.bett)
|
(lightswitch switches.dimmer.bett lights.bett)
|
||||||
];
|
];
|
||||||
|
|
||||||
|
lass.hass.love = {
|
||||||
|
resources = [{
|
||||||
|
url = "https://raw.githubusercontent.com/ljmerza/light-entity-card/master/dist/light-entity-card.js.map";
|
||||||
|
type = "js";
|
||||||
|
}];
|
||||||
|
views = [{
|
||||||
|
title = "bett";
|
||||||
|
cards = [
|
||||||
|
{
|
||||||
|
type = "markdown";
|
||||||
|
title = "hello world";
|
||||||
|
content = "This is just a test";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "light";
|
||||||
|
entity = "light.${lights.bett}";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "custom:light-entity-card";
|
||||||
|
entity = "light.${lights.bett}";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "history-graph";
|
||||||
|
entities = [
|
||||||
|
"light.${lights.bett}"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user