git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #54541 from dotlambda/home-assistant-0.86

home-assistant: 0.85.1 -> 0.86.4

commit7003a2891648b9e4c4002434e24f2ec37dd385a6 authorPeter Hoeg <peter@hoeg.com> dateWed 6 Feb 2019, 09:02 (8 years ago) parente73718ef85453f
5 files changed+152−62
nixos/modules/services/misc/home-assistant.nix+71−8 nixos/tests/home-assistant.nix+16−2 pkgs/servers/home-assistant/component-packages.nix+55−42 pkgs/servers/home-assistant/default.nix+8−8 pkgs/servers/home-assistant/frontend.nix+2−2
nixos/modules/services/misc/home-assistant.nix+71−8
@@ -6,9 +6,18 @@ let
66 cfg = config.services.home-assistant;
77
88 # cfg.config != null can be assumed here
9− configFile = pkgs.writeText "configuration.json"
9+ configJSON = pkgs.writeText "configuration.json"
1010 (builtins.toJSON (if cfg.applyDefaultConfig then
11− (lib.recursiveUpdate defaultConfig cfg.config) else cfg.config));
11+ (recursiveUpdate defaultConfig cfg.config) else cfg.config));
12+ configFile = pkgs.runCommand "configuration.yaml" { } ''
13+ ${pkgs.remarshal}/bin/json2yaml -i ${configJSON} -o $out
14+ '';
15+
16+ lovelaceConfigJSON = pkgs.writeText "ui-lovelace.json"
17+ (builtins.toJSON cfg.lovelaceConfig);
18+ lovelaceConfigFile = pkgs.runCommand "ui-lovelace.yaml" { } ''
19+ ${pkgs.remarshal}/bin/json2yaml -i ${lovelaceConfigJSON} -o $out
20+ '';
1221
1322 availableComponents = pkgs.home-assistant.availableComponents;
1423
@@ -45,6 +54,8 @@ let
4554 defaultConfig = {
4655 homeassistant.time_zone = config.time.timeZone;
4756 http.server_port = (toString cfg.port);
57+ } // optionalAttrs (cfg.lovelaceConfig != null) {
58+ lovelace.mode = "yaml";
4859 };
4960
5061in {
@@ -99,6 +110,53 @@ in {
99110 '';
100111 };
101112
113+ configWritable = mkOption {
114+ default = false;
115+ type = types.bool;
116+ description = ''
117+ Whether to make <filename>configuration.yaml</filename> writable.
118+ This only has an effect if <option>config</option> is set.
119+ This will allow you to edit it from Home Assistant's web interface.
120+ However, bear in mind that it will be overwritten at every start of the service.
121+ '';
122+ };
123+
124+ lovelaceConfig = mkOption {
125+ default = null;
126+ type = with types; nullOr attrs;
127+ # from https://www.home-assistant.io/lovelace/yaml-mode/
128+ example = literalExample ''
129+ {
130+ title = "My Awesome Home";
131+ views = [ {
132+ title = "Example";
133+ cards = [ {
134+ type = "markdown";
135+ title = "Lovelace";
136+ content = "Welcome to your **Lovelace UI**.";
137+ } ];
138+ } ];
139+ }
140+ '';
141+ description = ''
142+ Your <filename>ui-lovelace.yaml</filename> as a Nix attribute set.
143+ Setting this option will automatically add
144+ <literal>lovelace.mode = "yaml";</literal> to your <option>config</option>.
145+ Beware that setting this option will delete your previous <filename>ui-lovelace.yaml</filename>
146+ '';
147+ };
148+
149+ lovelaceConfigWritable = mkOption {
150+ default = false;
151+ type = types.bool;
152+ description = ''
153+ Whether to make <filename>ui-lovelace.yaml</filename> writable.
154+ This only has an effect if <option>lovelaceConfig</option> is set.
155+ This will allow you to edit it from Home Assistant's web interface.
156+ However, bear in mind that it will be overwritten at every start of the service.
157+ '';
158+ };
159+
102160 package = mkOption {
103161 default = pkgs.home-assistant;
104162 defaultText = "pkgs.home-assistant";
@@ -144,12 +202,17 @@ in {
144202 systemd.services.home-assistant = {
145203 description = "Home Assistant";
146204 after = [ "network.target" ];
147− preStart = lib.optionalString (cfg.config != null) ''
148− config=${cfg.configDir}/configuration.yaml
149− rm -f $config
150− ${pkgs.remarshal}/bin/json2yaml -i ${configFile} -o $config
151− chmod 444 $config
152− '';
205+ preStart = optionalString (cfg.config != null) (if cfg.configWritable then ''
206+ cp --no-preserve=mode ${configFile} "${cfg.configDir}/configuration.yaml"
207+ '' else ''
208+ rm -f "${cfg.configDir}/configuration.yaml"
209+ ln -s ${configFile} "${cfg.configDir}/configuration.yaml"
210+ '') + optionalString (cfg.lovelaceConfig != null) (if cfg.lovelaceConfigWritable then ''
211+ cp --no-preserve=mode ${lovelaceConfigFile} "${cfg.configDir}/ui-lovelace.yaml"
212+ '' else ''
213+ rm -f "${cfg.configDir}/ui-lovelace.yaml"
214+ ln -s ${lovelaceConfigFile} "${cfg.configDir}/ui-lovelace.yaml"
215+ '');
153216 serviceConfig = {
154217 ExecStart = "${package}/bin/hass --config '${cfg.configDir}'";
155218 User = "hass";
nixos/tests/home-assistant.nix+16−2
@@ -50,6 +50,18 @@ in {
5050 }
5151 ];
5252 };
53+ lovelaceConfig = {
54+ title = "My Awesome Home";
55+ views = [ {
56+ title = "Example";
57+ cards = [ {
58+ type = "markdown";
59+ title = "Lovelace";
60+ content = "Welcome to your **Lovelace UI**.";
61+ } ];
62+ } ];
63+ };
64+ lovelaceConfigWritable = true;
5365 };
5466 };
5567 };
@@ -59,8 +71,10 @@ in {
5971 $hass->waitForUnit("home-assistant.service");
6072
6173 # The config is specified using a Nix attribute set,
62− # but then converted from JSON to YAML
63− $hass->succeed("test -f ${configDir}/configuration.yaml");
74+ # converted from JSON to YAML, and linked to the config dir
75+ $hass->succeed("test -L ${configDir}/configuration.yaml");
76+ # The lovelace config is copied because lovelaceConfigWritable = true
77+ $hass->succeed("test -f ${configDir}/ui-lovelace.yaml");
6478
6579 # Check that Home Assistant's web interface and API can be reached
6680 $hass->waitForOpenPort(8123);
pkgs/servers/home-assistant/component-packages.nix+55−42
@@ -2,7 +2,7 @@
22# Do not edit!
33
44{
5− version = "0.85.1";
5+ version = "0.86.4";
66 components = {
77 "abode" = ps: with ps; [ ];
88 "ads" = ps: with ps; [ ];
@@ -21,17 +21,16 @@
2121 "alarm_control_panel.egardia" = ps: with ps; [ ];
2222 "alarm_control_panel.elkm1" = ps: with ps; [ ];
2323 "alarm_control_panel.envisalink" = ps: with ps; [ ];
24+ "alarm_control_panel.homekit_controller" = ps: with ps; [ ];
2425 "alarm_control_panel.homematicip_cloud" = ps: with ps; [ ];
2526 "alarm_control_panel.ialarm" = ps: with ps; [ ];
2627 "alarm_control_panel.ifttt" = ps: with ps; [ aiohttp-cors pyfttt ];
2728 "alarm_control_panel.lupusec" = ps: with ps; [ ];
2829 "alarm_control_panel.manual" = ps: with ps; [ ];
2930 "alarm_control_panel.manual_mqtt" = ps: with ps; [ paho-mqtt ];
30− "alarm_control_panel.mqtt" = ps: with ps; [ paho-mqtt ];
3131 "alarm_control_panel.ness_alarm" = ps: with ps; [ ];
3232 "alarm_control_panel.nx584" = ps: with ps; [ ];
3333 "alarm_control_panel.satel_integra" = ps: with ps; [ ];
34− "alarm_control_panel.simplisafe" = ps: with ps; [ ];
3534 "alarm_control_panel.spc" = ps: with ps; [ ];
3635 "alarm_control_panel.totalconnect" = ps: with ps; [ ];
3736 "alarm_control_panel.verisure" = ps: with ps; [ ];
@@ -71,6 +70,7 @@
7170 "automation.sun" = ps: with ps; [ ];
7271 "automation.template" = ps: with ps; [ ];
7372 "automation.time" = ps: with ps; [ ];
73+ "automation.time_pattern" = ps: with ps; [ ];
7474 "automation.webhook" = ps: with ps; [ aiohttp-cors ];
7575 "automation.zone" = ps: with ps; [ ];
7676 "axis" = ps: with ps; [ ];
@@ -92,7 +92,6 @@
9292 "binary_sensor.bmw_connected_drive" = ps: with ps; [ ];
9393 "binary_sensor.command_line" = ps: with ps; [ ];
9494 "binary_sensor.concord232" = ps: with ps; [ ];
95− "binary_sensor.deconz" = ps: with ps; [ ];
9695 "binary_sensor.demo" = ps: with ps; [ ];
9796 "binary_sensor.digital_ocean" = ps: with ps; [ digital-ocean ];
9897 "binary_sensor.ecobee" = ps: with ps; [ ];
@@ -100,7 +99,6 @@
10099 "binary_sensor.eight_sleep" = ps: with ps; [ ];
101100 "binary_sensor.enocean" = ps: with ps; [ ];
102101 "binary_sensor.envisalink" = ps: with ps; [ ];
103− "binary_sensor.esphome" = ps: with ps; [ ];
104102 "binary_sensor.ffmpeg_motion" = ps: with ps; [ ha-ffmpeg ];
105103 "binary_sensor.ffmpeg_noise" = ps: with ps; [ ha-ffmpeg ];
106104 "binary_sensor.fibaro" = ps: with ps; [ ];
@@ -117,12 +115,11 @@
117115 "binary_sensor.iss" = ps: with ps; [ ];
118116 "binary_sensor.isy994" = ps: with ps; [ ];
119117 "binary_sensor.knx" = ps: with ps; [ ];
120− "binary_sensor.konnected" = ps: with ps; [ aiohttp-cors netdisco ];
118+ "binary_sensor.konnected" = ps: with ps; [ aiohttp-cors ];
121119 "binary_sensor.linode" = ps: with ps; [ linode-api ];
122120 "binary_sensor.lupusec" = ps: with ps; [ ];
123121 "binary_sensor.maxcube" = ps: with ps; [ ];
124122 "binary_sensor.modbus" = ps: with ps; [ ];
125− "binary_sensor.mqtt" = ps: with ps; [ paho-mqtt ];
126123 "binary_sensor.mychevy" = ps: with ps; [ ];
127124 "binary_sensor.mysensors" = ps: with ps; [ ];
128125 "binary_sensor.mystrom" = ps: with ps; [ aiohttp-cors ];
@@ -132,14 +129,12 @@
132129 "binary_sensor.nx584" = ps: with ps; [ ];
133130 "binary_sensor.octoprint" = ps: with ps; [ ];
134131 "binary_sensor.opentherm_gw" = ps: with ps; [ ];
135− "binary_sensor.openuv" = ps: with ps; [ ];
136132 "binary_sensor.pilight" = ps: with ps; [ ];
137133 "binary_sensor.ping" = ps: with ps; [ ];
138134 "binary_sensor.point" = ps: with ps; [ ];
139135 "binary_sensor.qwikswitch" = ps: with ps; [ ];
140136 "binary_sensor.rachio" = ps: with ps; [ ];
141137 "binary_sensor.raincloud" = ps: with ps; [ ];
142− "binary_sensor.rainmachine" = ps: with ps; [ ];
143138 "binary_sensor.random" = ps: with ps; [ ];
144139 "binary_sensor.raspihats" = ps: with ps; [ ];
145140 "binary_sensor.rest" = ps: with ps; [ ];
@@ -174,7 +169,6 @@
174169 "binary_sensor.wirelesstag" = ps: with ps; [ ];
175170 "binary_sensor.workday" = ps: with ps; [ ];
176171 "binary_sensor.xiaomi_aqara" = ps: with ps; [ ];
177− "binary_sensor.zha" = ps: with ps; [ ];
178172 "binary_sensor.zigbee" = ps: with ps; [ ];
179173 "binary_sensor.zwave" = ps: with ps; [ ];
180174 "blink" = ps: with ps; [ ];
@@ -204,7 +198,6 @@
204198 "camera.local_file" = ps: with ps; [ ];
205199 "camera.logi_circle" = ps: with ps; [ ];
206200 "camera.mjpeg" = ps: with ps; [ ];
207− "camera.mqtt" = ps: with ps; [ paho-mqtt ];
208201 "camera.neato" = ps: with ps; [ pybotvac ];
209202 "camera.nest" = ps: with ps; [ ];
210203 "camera.netatmo" = ps: with ps; [ ];
@@ -247,7 +240,6 @@
247240 "climate.melissa" = ps: with ps; [ ];
248241 "climate.mill" = ps: with ps; [ ];
249242 "climate.modbus" = ps: with ps; [ ];
250− "climate.mqtt" = ps: with ps; [ paho-mqtt ];
251243 "climate.mysensors" = ps: with ps; [ ];
252244 "climate.nest" = ps: with ps; [ ];
253245 "climate.netatmo" = ps: with ps; [ ];
@@ -301,20 +293,18 @@
301293 "cover.aladdin_connect" = ps: with ps; [ ];
302294 "cover.brunt" = ps: with ps; [ ];
303295 "cover.command_line" = ps: with ps; [ ];
304− "cover.deconz" = ps: with ps; [ ];
305296 "cover.demo" = ps: with ps; [ ];
306− "cover.esphome" = ps: with ps; [ ];
307297 "cover.fibaro" = ps: with ps; [ ];
308298 "cover.garadget" = ps: with ps; [ ];
309299 "cover.gogogate2" = ps: with ps; [ ];
310300 "cover.group" = ps: with ps; [ ];
301+ "cover.homekit_controller" = ps: with ps; [ ];
311302 "cover.homematic" = ps: with ps; [ pyhomematic ];
312303 "cover.insteon" = ps: with ps; [ ];
313304 "cover.isy994" = ps: with ps; [ ];
314305 "cover.knx" = ps: with ps; [ ];
315306 "cover.lutron" = ps: with ps; [ ];
316307 "cover.lutron_caseta" = ps: with ps; [ ];
317− "cover.mqtt" = ps: with ps; [ paho-mqtt ];
318308 "cover.myq" = ps: with ps; [ ];
319309 "cover.mysensors" = ps: with ps; [ ];
320310 "cover.opengarage" = ps: with ps; [ ];
@@ -337,9 +327,16 @@
337327 "daikin.const" = ps: with ps; [ ];
338328 "datadog" = ps: with ps; [ datadog ];
339329 "deconz" = ps: with ps; [ ];
330+ "deconz.binary_sensor" = ps: with ps; [ ];
340331 "deconz.config_flow" = ps: with ps; [ ];
341332 "deconz.const" = ps: with ps; [ ];
333+ "deconz.cover" = ps: with ps; [ ];
334+ "deconz.deconz_device" = ps: with ps; [ ];
342335 "deconz.gateway" = ps: with ps; [ ];
336+ "deconz.light" = ps: with ps; [ ];
337+ "deconz.scene" = ps: with ps; [ ];
338+ "deconz.sensor" = ps: with ps; [ ];
339+ "deconz.switch" = ps: with ps; [ ];
343340 "demo" = ps: with ps; [ aiohttp-cors ];
344341 "device_sun_light_trigger" = ps: with ps; [ ];
345342 "device_tracker" = ps: with ps; [ ];
@@ -358,7 +355,6 @@
358355 "device_tracker.demo" = ps: with ps; [ ];
359356 "device_tracker.freebox" = ps: with ps; [ ];
360357 "device_tracker.fritz" = ps: with ps; [ fritzconnection ];
361− "device_tracker.geofency" = ps: with ps; [ aiohttp-cors ];
362358 "device_tracker.google_maps" = ps: with ps; [ ];
363359 "device_tracker.googlehome" = ps: with ps; [ ];
364360 "device_tracker.gpslogger" = ps: with ps; [ aiohttp-cors ];
@@ -419,26 +415,33 @@
419415 "emulated_hue" = ps: with ps; [ aiohttp-cors ];
420416 "emulated_hue.hue_api" = ps: with ps; [ ];
421417 "emulated_hue.upnp" = ps: with ps; [ ];
418+ "emulated_roku" = ps: with ps; [ ];
419+ "emulated_roku.binding" = ps: with ps; [ ];
420+ "emulated_roku.config_flow" = ps: with ps; [ ];
421+ "emulated_roku.const" = ps: with ps; [ ];
422422 "enocean" = ps: with ps; [ ];
423423 "envisalink" = ps: with ps; [ ];
424424 "esphome" = ps: with ps; [ ];
425+ "esphome.binary_sensor" = ps: with ps; [ ];
425426 "esphome.config_flow" = ps: with ps; [ ];
427+ "esphome.cover" = ps: with ps; [ ];
428+ "esphome.fan" = ps: with ps; [ ];
429+ "esphome.light" = ps: with ps; [ ];
430+ "esphome.sensor" = ps: with ps; [ ];
431+ "esphome.switch" = ps: with ps; [ ];
426432 "eufy" = ps: with ps; [ ];
427433 "evohome" = ps: with ps; [ ];
428434 "fan" = ps: with ps; [ ];
429435 "fan.comfoconnect" = ps: with ps; [ ];
430436 "fan.demo" = ps: with ps; [ ];
431437 "fan.dyson" = ps: with ps; [ ];
432− "fan.esphome" = ps: with ps; [ ];
433438 "fan.insteon" = ps: with ps; [ ];
434439 "fan.isy994" = ps: with ps; [ ];
435− "fan.mqtt" = ps: with ps; [ paho-mqtt ];
436440 "fan.template" = ps: with ps; [ ];
437441 "fan.tuya" = ps: with ps; [ ];
438442 "fan.wemo" = ps: with ps; [ ];
439443 "fan.wink" = ps: with ps; [ ];
440444 "fan.xiaomi_miio" = ps: with ps; [ construct ];
441− "fan.zha" = ps: with ps; [ ];
442445 "fan.zwave" = ps: with ps; [ ];
443446 "feedreader" = ps: with ps; [ feedparser ];
444447 "ffmpeg" = ps: with ps; [ ha-ffmpeg ];
@@ -456,6 +459,7 @@
456459 "geo_location.nsw_rural_fire_service_feed" = ps: with ps; [ ];
457460 "geo_location.usgs_earthquakes_feed" = ps: with ps; [ ];
458461 "geofency" = ps: with ps; [ aiohttp-cors ];
462+ "geofency.device_tracker" = ps: with ps; [ aiohttp-cors ];
459463 "goalfeed" = ps: with ps; [ ];
460464 "google" = ps: with ps; [ google_api_python_client httplib2 oauth2client ];
461465 "google_assistant" = ps: with ps; [ aiohttp-cors ];
@@ -465,6 +469,7 @@
465469 "google_assistant.smart_home" = ps: with ps; [ ];
466470 "google_assistant.trait" = ps: with ps; [ ];
467471 "google_domains" = ps: with ps; [ ];
472+ "gpslogger" = ps: with ps; [ aiohttp-cors ];
468473 "graphite" = ps: with ps; [ ];
469474 "greeneye_monitor" = ps: with ps; [ ];
470475 "group" = ps: with ps; [ ];
@@ -512,6 +517,7 @@
512517 "hue.config_flow" = ps: with ps; [ ];
513518 "hue.const" = ps: with ps; [ ];
514519 "hue.errors" = ps: with ps; [ ];
520+ "hue.light" = ps: with ps; [ aiohue ];
515521 "hydrawise" = ps: with ps; [ ];
516522 "idteck_prox" = ps: with ps; [ ];
517523 "ifttt" = ps: with ps; [ aiohttp-cors pyfttt ];
@@ -550,7 +556,7 @@
550556 "keyboard_remote" = ps: with ps; [ evdev ];
551557 "kira" = ps: with ps; [ ];
552558 "knx" = ps: with ps; [ ];
553− "konnected" = ps: with ps; [ aiohttp-cors netdisco ];
559+ "konnected" = ps: with ps; [ aiohttp-cors ];
554560 "lametric" = ps: with ps; [ ];
555561 "lcn" = ps: with ps; [ ];
556562 "lifx" = ps: with ps; [ ];
@@ -560,13 +566,11 @@
560566 "light.avion" = ps: with ps; [ ];
561567 "light.blinksticklight" = ps: with ps; [ BlinkStick ];
562568 "light.blinkt" = ps: with ps; [ ];
563− "light.deconz" = ps: with ps; [ ];
564569 "light.decora" = ps: with ps; [ ];
565570 "light.decora_wifi" = ps: with ps; [ ];
566571 "light.demo" = ps: with ps; [ ];
567572 "light.elkm1" = ps: with ps; [ ];
568573 "light.enocean" = ps: with ps; [ ];
569− "light.esphome" = ps: with ps; [ ];
570574 "light.eufy" = ps: with ps; [ ];
571575 "light.fibaro" = ps: with ps; [ ];
572576 "light.flux_led" = ps: with ps; [ ];
@@ -578,7 +582,6 @@
578582 "light.homematic" = ps: with ps; [ pyhomematic ];
579583 "light.homematicip_cloud" = ps: with ps; [ ];
580584 "light.homeworks" = ps: with ps; [ ];
581− "light.hue" = ps: with ps; [ aiohue ];
582585 "light.hyperion" = ps: with ps; [ ];
583586 "light.iglo" = ps: with ps; [ ];
584587 "light.ihc" = ps: with ps; [ defusedxml ];
@@ -595,7 +598,6 @@
595598 "light.lutron_caseta" = ps: with ps; [ ];
596599 "light.lw12wifi" = ps: with ps; [ ];
597600 "light.mochad" = ps: with ps; [ ];
598− "light.mqtt" = ps: with ps; [ paho-mqtt ];
599601 "light.mysensors" = ps: with ps; [ ];
600602 "light.mystrom" = ps: with ps; [ ];
601603 "light.nanoleaf_aurora" = ps: with ps; [ nanoleaf ];
@@ -629,23 +631,23 @@
629631 "light.yeelight" = ps: with ps; [ ];
630632 "light.yeelightsunflower" = ps: with ps; [ ];
631633 "light.zengge" = ps: with ps; [ ];
632− "light.zha" = ps: with ps; [ ];
633634 "light.zigbee" = ps: with ps; [ ];
634635 "light.zwave" = ps: with ps; [ ];
635636 "lightwave" = ps: with ps; [ ];
636637 "linode" = ps: with ps; [ linode-api ];
637638 "lirc" = ps: with ps; [ ];
638639 "litejet" = ps: with ps; [ ];
640+ "locative" = ps: with ps; [ aiohttp-cors ];
639641 "lock" = ps: with ps; [ ];
640642 "lock.abode" = ps: with ps; [ ];
641643 "lock.august" = ps: with ps; [ ];
642644 "lock.bmw_connected_drive" = ps: with ps; [ ];
643645 "lock.demo" = ps: with ps; [ ];
646+ "lock.homekit_controller" = ps: with ps; [ ];
644647 "lock.homematic" = ps: with ps; [ pyhomematic ];
645648 "lock.isy994" = ps: with ps; [ ];
646649 "lock.kiwi" = ps: with ps; [ ];
647650 "lock.lockitron" = ps: with ps; [ ];
648− "lock.mqtt" = ps: with ps; [ paho-mqtt ];
649651 "lock.nello" = ps: with ps; [ ];
650652 "lock.nuki" = ps: with ps; [ ];
651653 "lock.sesame" = ps: with ps; [ ];
@@ -673,6 +675,7 @@
673675 "mailbox.asterisk_mbox" = ps: with ps; [ ];
674676 "mailbox.demo" = ps: with ps; [ ];
675677 "mailgun" = ps: with ps; [ aiohttp-cors ];
678+ "mailgun.notify" = ps: with ps; [ aiohttp-cors ];
676679 "map" = ps: with ps; [ ];
677680 "matrix" = ps: with ps; [ matrix-client ];
678681 "maxcube" = ps: with ps; [ ];
@@ -713,7 +716,6 @@
713716 "media_player.mpchc" = ps: with ps; [ ];
714717 "media_player.mpd" = ps: with ps; [ mpd2 ];
715718 "media_player.nad" = ps: with ps; [ ];
716− "media_player.nadtcp" = ps: with ps; [ ];
717719 "media_player.onkyo" = ps: with ps; [ onkyo-eiscp ];
718720 "media_player.openhome" = ps: with ps; [ ];
719721 "media_player.panasonic_bluray" = ps: with ps; [ ];
@@ -749,11 +751,22 @@
749751 "mochad" = ps: with ps; [ ];
750752 "modbus" = ps: with ps; [ ];
751753 "mqtt" = ps: with ps; [ paho-mqtt ];
754+ "mqtt.alarm_control_panel" = ps: with ps; [ paho-mqtt ];
755+ "mqtt.binary_sensor" = ps: with ps; [ paho-mqtt ];
756+ "mqtt.camera" = ps: with ps; [ paho-mqtt ];
757+ "mqtt.climate" = ps: with ps; [ paho-mqtt ];
752758 "mqtt.config_flow" = ps: with ps; [ ];
753759 "mqtt.const" = ps: with ps; [ ];
760+ "mqtt.cover" = ps: with ps; [ paho-mqtt ];
754761 "mqtt.discovery" = ps: with ps; [ ];
762+ "mqtt.fan" = ps: with ps; [ paho-mqtt ];
763+ "mqtt.light" = ps: with ps; [ paho-mqtt ];
764+ "mqtt.lock" = ps: with ps; [ paho-mqtt ];
765+ "mqtt.sensor" = ps: with ps; [ paho-mqtt ];
755766 "mqtt.server" = ps: with ps; [ aiohttp-cors hbmqtt ];
756767 "mqtt.subscription" = ps: with ps; [ ];
768+ "mqtt.switch" = ps: with ps; [ paho-mqtt ];
769+ "mqtt.vacuum" = ps: with ps; [ paho-mqtt ];
757770 "mqtt_eventstream" = ps: with ps; [ paho-mqtt ];
758771 "mqtt_statestream" = ps: with ps; [ paho-mqtt ];
759772 "mychevy" = ps: with ps; [ ];
@@ -805,7 +818,6 @@
805818 "notify.lametric" = ps: with ps; [ ];
806819 "notify.lannouncer" = ps: with ps; [ ];
807820 "notify.llamalab_automate" = ps: with ps; [ ];
808− "notify.mailgun" = ps: with ps; [ aiohttp-cors ];
809821 "notify.mastodon" = ps: with ps; [ ];
810822 "notify.matrix" = ps: with ps; [ matrix-client ];
811823 "notify.message_bird" = ps: with ps; [ ];
@@ -844,8 +856,10 @@
844856 "onboarding.views" = ps: with ps; [ ];
845857 "opentherm_gw" = ps: with ps; [ ];
846858 "openuv" = ps: with ps; [ ];
859+ "openuv.binary_sensor" = ps: with ps; [ ];
847860 "openuv.config_flow" = ps: with ps; [ ];
848861 "openuv.const" = ps: with ps; [ ];
862+ "openuv.sensor" = ps: with ps; [ ];
849863 "owntracks" = ps: with ps; [ aiohttp-cors libnacl ];
850864 "owntracks.config_flow" = ps: with ps; [ ];
851865 "panel_custom" = ps: with ps; [ aiohttp-cors ];
@@ -865,8 +879,11 @@
865879 "rainbird" = ps: with ps; [ ];
866880 "raincloud" = ps: with ps; [ ];
867881 "rainmachine" = ps: with ps; [ ];
882+ "rainmachine.binary_sensor" = ps: with ps; [ ];
868883 "rainmachine.config_flow" = ps: with ps; [ ];
869884 "rainmachine.const" = ps: with ps; [ ];
885+ "rainmachine.sensor" = ps: with ps; [ ];
886+ "rainmachine.switch" = ps: with ps; [ ];
870887 "raspihats" = ps: with ps; [ ];
871888 "recorder" = ps: with ps; [ sqlalchemy ];
872889 "recorder.const" = ps: with ps; [ ];
@@ -880,11 +897,13 @@
880897 "remote.harmony" = ps: with ps; [ ];
881898 "remote.itach" = ps: with ps; [ ];
882899 "remote.kira" = ps: with ps; [ ];
900+ "remote.roku" = ps: with ps; [ ];
883901 "remote.xiaomi_miio" = ps: with ps; [ construct ];
884902 "rest_command" = ps: with ps; [ ];
885903 "rflink" = ps: with ps; [ ];
886904 "rfxtrx" = ps: with ps; [ ];
887905 "ring" = ps: with ps; [ ];
906+ "roku" = ps: with ps; [ ];
888907 "route53" = ps: with ps; [ boto3 ];
889908 "rpi_gpio" = ps: with ps; [ ];
890909 "rpi_pfio" = ps: with ps; [ ];
@@ -892,7 +911,6 @@
892911 "sabnzbd" = ps: with ps; [ ];
893912 "satel_integra" = ps: with ps; [ ];
894913 "scene" = ps: with ps; [ ];
895− "scene.deconz" = ps: with ps; [ ];
896914 "scene.elkm1" = ps: with ps; [ ];
897915 "scene.fibaro" = ps: with ps; [ ];
898916 "scene.homeassistant" = ps: with ps; [ ];
@@ -956,7 +974,6 @@
956974 "sensor.currencylayer" = ps: with ps; [ ];
957975 "sensor.daikin" = ps: with ps; [ ];
958976 "sensor.darksky" = ps: with ps; [ python-forecastio ];
959− "sensor.deconz" = ps: with ps; [ ];
960977 "sensor.deluge" = ps: with ps; [ deluge-client ];
961978 "sensor.demo" = ps: with ps; [ ];
962979 "sensor.deutsche_bahn" = ps: with ps; [ ];
@@ -985,7 +1002,6 @@
9851002 "sensor.entur_public_transport" = ps: with ps; [ ];
9861003 "sensor.envirophat" = ps: with ps; [ ];
9871004 "sensor.envisalink" = ps: with ps; [ ];
988− "sensor.esphome" = ps: with ps; [ ];
9891005 "sensor.etherscan" = ps: with ps; [ ];
9901006 "sensor.fail2ban" = ps: with ps; [ ];
9911007 "sensor.fastdotcom" = ps: with ps; [ ];
@@ -1068,7 +1084,6 @@
10681084 "sensor.mold_indicator" = ps: with ps; [ ];
10691085 "sensor.moon" = ps: with ps; [ ];
10701086 "sensor.mopar" = ps: with ps; [ ];
1071− "sensor.mqtt" = ps: with ps; [ paho-mqtt ];
10721087 "sensor.mqtt_room" = ps: with ps; [ paho-mqtt ];
10731088 "sensor.mvglive" = ps: with ps; [ PyMVGLive ];
10741089 "sensor.mychevy" = ps: with ps; [ ];
@@ -1093,7 +1108,6 @@
10931108 "sensor.openhardwaremonitor" = ps: with ps; [ ];
10941109 "sensor.opensky" = ps: with ps; [ ];
10951110 "sensor.opentherm_gw" = ps: with ps; [ ];
1096− "sensor.openuv" = ps: with ps; [ ];
10971111 "sensor.openweathermap" = ps: with ps; [ pyowm ];
10981112 "sensor.otp" = ps: with ps; [ pyotp ];
10991113 "sensor.pi_hole" = ps: with ps; [ ];
@@ -1113,7 +1127,6 @@
11131127 "sensor.radarr" = ps: with ps; [ ];
11141128 "sensor.rainbird" = ps: with ps; [ ];
11151129 "sensor.raincloud" = ps: with ps; [ ];
1116− "sensor.rainmachine" = ps: with ps; [ ];
11171130 "sensor.random" = ps: with ps; [ ];
11181131 "sensor.rest" = ps: with ps; [ ];
11191132 "sensor.rflink" = ps: with ps; [ ];
@@ -1220,7 +1233,6 @@
12201233 "sensor.zabbix" = ps: with ps; [ ];
12211234 "sensor.zamg" = ps: with ps; [ ];
12221235 "sensor.zestimate" = ps: with ps; [ xmltodict ];
1223− "sensor.zha" = ps: with ps; [ ];
12241236 "sensor.zigbee" = ps: with ps; [ ];
12251237 "sensor.zoneminder" = ps: with ps; [ zm-py ];
12261238 "sensor.zwave" = ps: with ps; [ ];
@@ -1228,6 +1240,7 @@
12281240 "shiftr" = ps: with ps; [ paho-mqtt ];
12291241 "shopping_list" = ps: with ps; [ aiohttp-cors ];
12301242 "simplisafe" = ps: with ps; [ ];
1243+ "simplisafe.alarm_control_panel" = ps: with ps; [ ];
12311244 "simplisafe.config_flow" = ps: with ps; [ ];
12321245 "simplisafe.const" = ps: with ps; [ ];
12331246 "sisyphus" = ps: with ps; [ ];
@@ -1258,7 +1271,6 @@
12581271 "switch.bbb_gpio" = ps: with ps; [ ];
12591272 "switch.broadlink" = ps: with ps; [ broadlink ];
12601273 "switch.command_line" = ps: with ps; [ ];
1261− "switch.deconz" = ps: with ps; [ ];
12621274 "switch.deluge" = ps: with ps; [ deluge-client ];
12631275 "switch.demo" = ps: with ps; [ ];
12641276 "switch.digital_ocean" = ps: with ps; [ digital-ocean ];
@@ -1269,7 +1281,6 @@
12691281 "switch.edp_redy" = ps: with ps; [ ];
12701282 "switch.elkm1" = ps: with ps; [ ];
12711283 "switch.enocean" = ps: with ps; [ ];
1272− "switch.esphome" = ps: with ps; [ ];
12731284 "switch.eufy" = ps: with ps; [ ];
12741285 "switch.fibaro" = ps: with ps; [ ];
12751286 "switch.flux" = ps: with ps; [ ];
@@ -1290,7 +1301,7 @@
12901301 "switch.isy994" = ps: with ps; [ ];
12911302 "switch.kankun" = ps: with ps; [ ];
12921303 "switch.knx" = ps: with ps; [ ];
1293− "switch.konnected" = ps: with ps; [ aiohttp-cors netdisco ];
1304+ "switch.konnected" = ps: with ps; [ aiohttp-cors ];
12941305 "switch.lightwave" = ps: with ps; [ ];
12951306 "switch.linode" = ps: with ps; [ linode-api ];
12961307 "switch.litejet" = ps: with ps; [ ];
@@ -1300,7 +1311,6 @@
13001311 "switch.mfi" = ps: with ps; [ ];
13011312 "switch.mochad" = ps: with ps; [ ];
13021313 "switch.modbus" = ps: with ps; [ ];
1303− "switch.mqtt" = ps: with ps; [ paho-mqtt ];
13041314 "switch.mysensors" = ps: with ps; [ ];
13051315 "switch.mystrom" = ps: with ps; [ ];
13061316 "switch.neato" = ps: with ps; [ pybotvac ];
@@ -1313,7 +1323,6 @@
13131323 "switch.rachio" = ps: with ps; [ ];
13141324 "switch.rainbird" = ps: with ps; [ ];
13151325 "switch.raincloud" = ps: with ps; [ ];
1316− "switch.rainmachine" = ps: with ps; [ ];
13171326 "switch.raspihats" = ps: with ps; [ ];
13181327 "switch.raspyrfm" = ps: with ps; [ ];
13191328 "switch.recswitch" = ps: with ps; [ ];
@@ -1356,7 +1365,6 @@
13561365 "switch.wirelesstag" = ps: with ps; [ ];
13571366 "switch.xiaomi_aqara" = ps: with ps; [ ];
13581367 "switch.xiaomi_miio" = ps: with ps; [ construct ];
1359− "switch.zha" = ps: with ps; [ ];
13601368 "switch.zigbee" = ps: with ps; [ ];
13611369 "switch.zoneminder" = ps: with ps; [ zm-py ];
13621370 "switch.zwave" = ps: with ps; [ ];
@@ -1408,7 +1416,6 @@
14081416 "vacuum.demo" = ps: with ps; [ ];
14091417 "vacuum.dyson" = ps: with ps; [ ];
14101418 "vacuum.ecovacs" = ps: with ps; [ ];
1411− "vacuum.mqtt" = ps: with ps; [ paho-mqtt ];
14121419 "vacuum.neato" = ps: with ps; [ pybotvac ];
14131420 "vacuum.roomba" = ps: with ps; [ ];
14141421 "vacuum.xiaomi_miio" = ps: with ps; [ construct ];
@@ -1458,11 +1465,17 @@
14581465 "zabbix" = ps: with ps; [ ];
14591466 "zeroconf" = ps: with ps; [ aiohttp-cors zeroconf ];
14601467 "zha" = ps: with ps; [ ];
1468+ "zha.api" = ps: with ps; [ ];
1469+ "zha.binary_sensor" = ps: with ps; [ ];
14611470 "zha.config_flow" = ps: with ps; [ ];
14621471 "zha.const" = ps: with ps; [ ];
14631472 "zha.entities" = ps: with ps; [ ];
14641473 "zha.event" = ps: with ps; [ ];
1474+ "zha.fan" = ps: with ps; [ ];
14651475 "zha.helpers" = ps: with ps; [ ];
1476+ "zha.light" = ps: with ps; [ ];
1477+ "zha.sensor" = ps: with ps; [ ];
1478+ "zha.switch" = ps: with ps; [ ];
14661479 "zigbee" = ps: with ps; [ ];
14671480 "zone" = ps: with ps; [ ];
14681481 "zone.config_flow" = ps: with ps; [ ];
pkgs/servers/home-assistant/default.nix+8−8
@@ -18,16 +18,16 @@ let
1818
1919 defaultOverrides = [
2020 # Override the version of some packages pinned in Home Assistant's setup.py
21− (mkOverride "aiohttp" "3.5.1"
22− "c115744b2a0bf666fd8cde52a6d3e9319ffeb486009579743f5adfdcf0bf0773")
21+ (mkOverride "aiohttp" "3.5.4"
22+ "9c4c83f4fa1938377da32bc2d59379025ceeee8e24b89f72fcbccd8ca22dc9bf")
2323 (mkOverride "astral" "1.7.1"
2424 "88086fd2006c946567285286464b2da3294a3b0cbba4410b7008ec2458f82a07")
2525 (mkOverride "async-timeout" "3.0.1"
2626 "0c3c816a028d47f659d6ff5c745cb2acf1f966da1fe5c19c77a70282b25f4c5f")
2727 (mkOverride "attrs" "18.2.0"
2828 "10cbf6e27dbce8c30807caf056c8eb50917e0eaafe86347671b57254006c3e69")
29− (mkOverride "bcrypt" "3.1.4"
30− "67ed1a374c9155ec0840214ce804616de49c3df9c5bc66740687c1c9b1cd9e8d")
29+ (mkOverride "bcrypt" "3.1.5"
30+ "136243dc44e5bab9b61206bd46fff3018bd80980b1a1dfbab64a22ff5745957f")
3131 (mkOverride "pyjwt" "1.6.4"
3232 "4ee413b357d53fd3fb44704577afac88e72e878716116270d722723d65b42176")
3333 (mkOverride "cryptography" "2.3.1"
@@ -38,8 +38,8 @@ let
3838 "7723daf30996db26573176bddcdf5fcb98f66dc70df05c9cb29f2c79b8193245")
3939 (mkOverride "requests" "2.21.0"
4040 "502a824f31acdacb3a35b6690b5fbf0bc41d63a24a45c4004352b0242707598e")
41− (mkOverride "ruamel_yaml" "0.15.81"
42− "6cbe7273a2e7667cd2ca7b12bec1c715a8259ad80f09c6f12c378f664d29fa5e")
41+ (mkOverride "ruamel_yaml" "0.15.85"
42+ "34af6e2f9787acd3937b55c0279f46adff43124c5d72dced84aab6c89d1a960f")
4343 (mkOverride "voluptuous" "0.11.5"
4444 "567a56286ef82a9d7ae0628c5842f65f516abcb496e74f3f59f1d7b28df314ef")
4545 (mkOverride "voluptuous-serialize" "2.0.0"
@@ -87,7 +87,7 @@ let
8787 extraBuildInputs = extraPackages py.pkgs;
8888
8989 # Don't forget to run parse-requirements.py after updating
90− hassVersion = "0.85.1";
90+ hassVersion = "0.86.4";
9191
9292in with py.pkgs; buildPythonApplication rec {
9393 pname = "homeassistant";
@@ -102,7 +102,7 @@ in with py.pkgs; buildPythonApplication rec {
102102 owner = "home-assistant";
103103 repo = "home-assistant";
104104 rev = version;
105− sha256 = "0i9s0mgzfs3s6k4vw2zvwgqziz77fghpijrjrxx5nbrmm592h01a";
105+ sha256 = "13yyzcwz44gz6j0fh1awws83p6fmpib9ribm1453qr172knanhjy";
106106 };
107107
108108 propagatedBuildInputs = [
pkgs/servers/home-assistant/frontend.nix+2−2
@@ -2,11 +2,11 @@
22
33buildPythonPackage rec {
44 pname = "home-assistant-frontend";
5− version = "20190109.1";
5+ version = "20190121.1";
66
77 src = fetchPypi {
88 inherit pname version;
9− sha256 = "2ca035461c06591dc793c7651ed3f7c17ab3addf5859e89d2f956215433140ba";
9+ sha256 = "7d1e127249dbefd0c8e101d8b178eeae6bf76a0296d8b22ed33759e23ef07856";
1010 };
1111
1212 propagatedBuildInputs = [ user-agents ];