hswaw/sound: refactor home-assistant

Change-Id: I80442defc97fc7aaf4422f8e2fe6b956b1e130cf
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1444
Reviewed-by: informatic <informatic@hackerspace.pl>
diff --git a/hswaw/machines/sound.waw.hackerspace.pl/configuration.nix b/hswaw/machines/sound.waw.hackerspace.pl/configuration.nix
index fccd656..fabd01a 100644
--- a/hswaw/machines/sound.waw.hackerspace.pl/configuration.nix
+++ b/hswaw/machines/sound.waw.hackerspace.pl/configuration.nix
@@ -99,6 +99,12 @@
         ps.hass-nabucasa
         ps.pymetno
         ps.radios
+        ps.pyipp
+        ps.brother
+        ps.wled
+        ps.securetar
+        ps.numpy
+        ps.pyatv
     ];
   };
 
diff --git a/hswaw/machines/sound.waw.hackerspace.pl/home-assistant.nix b/hswaw/machines/sound.waw.hackerspace.pl/home-assistant.nix
index 468f5e5..7cff7a1 100644
--- a/hswaw/machines/sound.waw.hackerspace.pl/home-assistant.nix
+++ b/hswaw/machines/sound.waw.hackerspace.pl/home-assistant.nix
@@ -144,7 +144,9 @@
     }
   ];
 
-  cast = {media_player = [{host = "10.8.1.44";}];};
+  # cast has been removed
+  # TODO check how this needs to be replaced
+  #cast = {media_player = [{host = "10.8.1.44";}];};
 
   # TODO fix and enable
   #frontend = {
@@ -160,15 +162,15 @@
     };
     heater = {
       control = "hidden";
-      entities = ["switch.space_heater" "input_number.heater_fan_speed"];
-      name = "Heater";
+      entities = ["switch.space_heater" "input_number.heater_fan_speed" "fan.exhaust"];
+      name = "HVAC";
     };
   };
   input_number = {
     heater_fan_speed = {
       max = 100;
       min = 0;
-      name = "Fan Speed";
+      name = "Heater airflow";
       step = 1;
     };
     polycom_aux1_gain = {
@@ -203,6 +205,7 @@
       {
         command_topic = "iot/077521/relay/on/set";
         name = "Main room";
+        object_id = "main_room";
         payload_off = "false";
         payload_on = "true";
         retain = true;
@@ -212,7 +215,8 @@
     fan = [
       {
         command_topic = "iot/c0dbe7/relay/on/set";
-        name = "Wyciąg";
+        name = "Exhaust";
+        object_id = "exhaust";
         payload_off = "false";
         payload_on = "true";
         retain = true;
@@ -259,7 +263,8 @@
       }
       {
         command_topic = "iot/ab20d2/heater/on/set";
-        name = "Space Heater";
+        name = "Heater power";
+        object_id = "space_heater";
         payload_off = "false";
         payload_on = "true";
         retain = true;