aboutsummaryrefslogtreecommitdiff
path: root/nixos/modules/home-assistant/sensors.nix
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2022-12-30 21:13:56 +0100
committerKarel Kočí <cynerd@email.cz>2022-12-30 21:13:56 +0100
commitef25d69c4d273765afd2ef86783e42bc98ca4b3d (patch)
tree13882154c7bdb305473aa7e9191917d31ec1c9f6 /nixos/modules/home-assistant/sensors.nix
parente09a2f8a23161e52859754e5cf874ec4099a2008 (diff)
downloadnixos-personal-ef25d69c4d273765afd2ef86783e42bc98ca4b3d.tar.gz
nixos-personal-ef25d69c4d273765afd2ef86783e42bc98ca4b3d.tar.bz2
nixos-personal-ef25d69c4d273765afd2ef86783e42bc98ca4b3d.zip
nixos: move home assistant around
Diffstat (limited to 'nixos/modules/home-assistant/sensors.nix')
-rw-r--r--nixos/modules/home-assistant/sensors.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/nixos/modules/home-assistant/sensors.nix b/nixos/modules/home-assistant/sensors.nix
new file mode 100644
index 0000000..fadd4eb
--- /dev/null
+++ b/nixos/modules/home-assistant/sensors.nix
@@ -0,0 +1,19 @@
+[
+ {
+ name = "Teplota";
+ state_class = "measurement";
+ state_topic = "bigclown/node/climate-monitor:0/thermometer/0:0/temperature";
+ unit_of_measurement = "°C";
+ }
+ {
+ name = "Vlhkost";
+ state_class = "measurement";
+ state_topic = "bigclown/node/climate-monitor:0/hygrometer/0:4/relative-humidity";
+ unit_of_measurement = "%";
+ }
+ {
+ name = "Osvětlení";
+ state_class = "measurement";
+ state_topic = "bigclown/node/climate-monitor:0/lux-meter/0:0/illuminance";
+ }
+]