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 52 additions and 0 deletions
|
@ -57,6 +57,7 @@ inputs @ {
|
||||||
inherit (pkgs.dig) dnsutils;
|
inherit (pkgs.dig) dnsutils;
|
||||||
inherit
|
inherit
|
||||||
(pkgs)
|
(pkgs)
|
||||||
|
arp-scan
|
||||||
openssh
|
openssh
|
||||||
rsync
|
rsync
|
||||||
wget
|
wget
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
inherit
|
inherit
|
||||||
(self.legacyPackages.${pkgs.system}.hass-components)
|
(self.legacyPackages.${pkgs.system}.hass-components)
|
||||||
extended-ollama-conversation
|
extended-ollama-conversation
|
||||||
|
tuya-local
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
17
flake.lock
17
flake.lock
|
@ -1587,6 +1587,7 @@
|
||||||
"trash-d-src": "trash-d-src",
|
"trash-d-src": "trash-d-src",
|
||||||
"treefmt-nix": "treefmt-nix_2",
|
"treefmt-nix": "treefmt-nix_2",
|
||||||
"ts-for-gir-src": "ts-for-gir-src",
|
"ts-for-gir-src": "ts-for-gir-src",
|
||||||
|
"tuya-local-src": "tuya-local-src",
|
||||||
"vimplugin-easytables-src": "vimplugin-easytables-src",
|
"vimplugin-easytables-src": "vimplugin-easytables-src",
|
||||||
"vimplugin-ts-error-translator-src": "vimplugin-ts-error-translator-src",
|
"vimplugin-ts-error-translator-src": "vimplugin-ts-error-translator-src",
|
||||||
"wakewords-src": "wakewords-src"
|
"wakewords-src": "wakewords-src"
|
||||||
|
@ -1845,6 +1846,22 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"tuya-local-src": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1727703516,
|
||||||
|
"narHash": "sha256-M1dDkY3ev0wVMHT/klHH33SezGuP2wek9pS0YnyRxxw=",
|
||||||
|
"owner": "make-all",
|
||||||
|
"repo": "tuya-local",
|
||||||
|
"rev": "f6245ff4d5a9888c8313c1adef4411057d1754e4",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "make-all",
|
||||||
|
"repo": "tuya-local",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"umu": {
|
"umu": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
|
|
@ -416,6 +416,12 @@
|
||||||
repo = "ts-for-gir";
|
repo = "ts-for-gir";
|
||||||
type = "github";
|
type = "github";
|
||||||
};
|
};
|
||||||
|
tuya-local-src = {
|
||||||
|
flake = false;
|
||||||
|
owner = "make-all";
|
||||||
|
repo = "tuya-local";
|
||||||
|
type = "github";
|
||||||
|
};
|
||||||
vimplugin-easytables-src = {
|
vimplugin-easytables-src = {
|
||||||
flake = false;
|
flake = false;
|
||||||
owner = "Myzel394";
|
owner = "Myzel394";
|
||||||
|
|
|
@ -192,6 +192,10 @@ let
|
||||||
owner = "TheNimaj";
|
owner = "TheNimaj";
|
||||||
repo = "extended_ollama_conversation";
|
repo = "extended_ollama_conversation";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
owner = "make-all";
|
||||||
|
repo = "tuya-local";
|
||||||
|
}
|
||||||
{
|
{
|
||||||
name = "spotifyplus-src";
|
name = "spotifyplus-src";
|
||||||
owner = "thlucas1";
|
owner = "thlucas1";
|
||||||
|
|
|
@ -19,5 +19,6 @@ pkgs.lib.makeScope pkgs.newScope (hass: let
|
||||||
hass.callPackage file (inputs // extraArgs // {});
|
hass.callPackage file (inputs // extraArgs // {});
|
||||||
in {
|
in {
|
||||||
extended-ollama-conversation = buildHassComponent ./extended-ollama-conversation {};
|
extended-ollama-conversation = buildHassComponent ./extended-ollama-conversation {};
|
||||||
|
tuya-local = buildHassComponent ./tuya-local {};
|
||||||
spotifyplus = buildHassComponent ./spotifyplus {python3Packages = spotPython3Packages;};
|
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