feat(hass): add tuya-local integration
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
c68a826a5f
commit
b47ba67e64
7 changed files with 29 additions and 0 deletions
|
@ -57,6 +57,7 @@ inputs @ {
|
|||
inherit (pkgs.dig) dnsutils;
|
||||
inherit
|
||||
(pkgs)
|
||||
arp-scan
|
||||
openssh
|
||||
rsync
|
||||
wget
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
inherit
|
||||
(self.legacyPackages.${pkgs.system}.hass-components)
|
||||
extended-ollama-conversation
|
||||
tuya-local
|
||||
;
|
||||
};
|
||||
|
||||
|
|
BIN
flake.lock
BIN
flake.lock
Binary file not shown.
BIN
flake.nix
BIN
flake.nix
Binary file not shown.
|
@ -192,6 +192,10 @@ let
|
|||
owner = "TheNimaj";
|
||||
repo = "extended_ollama_conversation";
|
||||
}
|
||||
{
|
||||
owner = "make-all";
|
||||
repo = "tuya-local";
|
||||
}
|
||||
{
|
||||
name = "spotifyplus-src";
|
||||
owner = "thlucas1";
|
||||
|
|
|
@ -19,5 +19,6 @@ pkgs.lib.makeScope pkgs.newScope (hass: let
|
|||
hass.callPackage file (inputs // extraArgs // {});
|
||||
in {
|
||||
extended-ollama-conversation = buildHassComponent ./extended-ollama-conversation {};
|
||||
tuya-local = buildHassComponent ./tuya-local {};
|
||||
spotifyplus = buildHassComponent ./spotifyplus {python3Packages = spotPython3Packages;};
|
||||
})
|
||||
|
|
22
legacyPackages/hass-components/tuya-local/default.nix
Normal file
22
legacyPackages/hass-components/tuya-local/default.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
tuya-local-src,
|
||||
buildHomeAssistantComponent,
|
||||
python3Packages,
|
||||
...
|
||||
}: let
|
||||
inherit (builtins) fromJSON readFile;
|
||||
|
||||
manifest = fromJSON (readFile "${tuya-local-src}/custom_components/tuya_local/manifest.json");
|
||||
in
|
||||
buildHomeAssistantComponent {
|
||||
owner = "make-all";
|
||||
|
||||
inherit (manifest) domain version;
|
||||
|
||||
src = tuya-local-src;
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
tinytuya
|
||||
tuya-device-sharing-sdk
|
||||
];
|
||||
}
|
Loading…
Reference in a new issue