Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

52 lines
1.3 KiB
Nix

{
lib,
buildHomeAssistantComponent,
fetchFromGitHub,
construct,
micloud,
python-miio,
nix-update-script,
}:
buildHomeAssistantComponent rec {
owner = "al-one";
domain = "xiaomi_miot";
version = "1.1.0";
src = fetchFromGitHub {
owner = "al-one";
repo = "hass-xiaomi-miot";
rev = "v${version}";
hash = "sha256-nTxi8bKelHbhs1ivmr+LGHLMrnlRUQYfy+ARHdeVM0Q=";
};
dependencies = [
construct
micloud
python-miio
];
passthru.updateScript = nix-update-script { extraArgs = [ "--version-regex=^v([0-9.]+)$" ]; };
meta = {
changelog = "https://github.com/al-one/hass-xiaomi-miot/releases/tag/v${version}";
description = "Automatic integrate all Xiaomi devices to HomeAssistant via miot-spec, support Wi-Fi, BLE, ZigBee devices";
longDescription = ''
Xiaomi Miot For HomeAssistant depends on `ffmpeg` and `homekit`, example how to setup in NixOS `configuration.nix`:
```
{ config, lib, pkgs, ... }:
{
services.home-assistant = {
customComponents = [ pkgs.home-assistant-custom-components.xiaomi_miot ];
extraComponents = [ "ffmpeg" "homekit" ];
};
}
```
'';
homepage = "https://github.com/al-one/hass-xiaomi-miot";
maintainers = with lib.maintainers; [ azuwis ];
license = lib.licenses.asl20;
};
}