summaryrefslogtreecommitdiffstats
path: root/krebs/2configs/shack/glados/default.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2020-02-20 14:00:17 +0100
committermakefu <github@syntax-fehler.de>2020-02-20 14:00:17 +0100
commit64c224a711a1147b1be562ddd5ce1778ff5a6b1c (patch)
treeb139a475f04278bc5438bddd05baae707d90e891 /krebs/2configs/shack/glados/default.nix
parenta62f71b00bdb4028595d7edae0e2a25942ad1e56 (diff)
shack/glados: add darksky,mate,spaceap,rollos
Diffstat (limited to 'krebs/2configs/shack/glados/default.nix')
-rw-r--r--krebs/2configs/shack/glados/default.nix20
1 files changed, 13 insertions, 7 deletions
diff --git a/krebs/2configs/shack/glados/default.nix b/krebs/2configs/shack/glados/default.nix
index d8ee199cc..3f3b1cac5 100644
--- a/krebs/2configs/shack/glados/default.nix
+++ b/krebs/2configs/shack/glados/default.nix
@@ -39,7 +39,7 @@ in {
'';
})).override {
extraPackages = ps: with ps; [
- python-forecastio jsonrpc-async jsonrpc-websocket mpd2 picotts
+ python-forecastio jsonrpc-async jsonrpc-websocket mpd2 pkgs.picotts
];
};
autoExtraComponents = true;
@@ -76,6 +76,8 @@ in {
client_id = "home-assistant";
keepalive = 60;
protocol = 3.1;
+ discovery = true; #enable esphome discovery
+ discovery_prefix = "homeassistant";
birth_message = {
topic = "glados/hass/status/LWT";
payload = "Online";
@@ -90,7 +92,7 @@ in {
};
};
switch = wasser.switch;
- light = badair.light;
+ light = [];
media_player = [
{ platform = "mpd";
name = "lounge";
@@ -103,13 +105,17 @@ in {
];
sensor =
- (import ./sensors/hass.nix)
- ++ (import ./sensors/power.nix)
+ (import ./sensors/power.nix)
+ ++ (import ./sensors/mate.nix)
+ ++ (import ./sensors/darksky.nix { inherit lib;})
++ shackopen.sensor
- ++ badair.sensor;
- airquality = (import ./sensors/sensemap.nix );
+ ;
+ air_quality = (import ./sensors/sensemap.nix );
- binary_sensor = shackopen.binary_sensor;
+ binary_sensor =
+ shackopen.binary_sensor
+ ++ (import ./sensors/spaceapi.nix)
+ ;
camera = [];