feat(hass): use ha-fallback with custom sentences

This commit is contained in:
matt1432 2024-10-07 15:15:29 -04:00
parent 938a703e92
commit eb5f04096e
13 changed files with 1168 additions and 313 deletions
legacyPackages/hass-components
default.nix
ha-fallback-conversation

View file

@ -4,6 +4,7 @@ pkgs.lib.makeScope pkgs.newScope (hass: let
hass.callPackage file (inputs // extraArgs // {});
in {
extended-ollama-conversation = buildHassComponent ./extended-ollama-conversation {};
ha-fallback-conversation = buildHassComponent ./ha-fallback-conversation {};
netdaemon = buildHassComponent ./netdaemon {};
spotifyplus = import ./spotifyplus ({inherit buildHassComponent;} // inputs);
tuya-local = buildHassComponent ./tuya-local {};

View file

@ -0,0 +1,16 @@
{
ha-fallback-conversation-src,
buildHomeAssistantComponent,
...
}: let
inherit (builtins) fromJSON readFile;
manifest = fromJSON (readFile "${ha-fallback-conversation-src}/custom_components/fallback_conversation/manifest.json");
in
buildHomeAssistantComponent {
owner = "m50";
inherit (manifest) domain version;
src = ha-fallback-conversation-src;
}