ma ham/esphome: rip, replaced with autodiscovery

This commit is contained in:
makefu 2020-02-24 16:56:42 +01:00
parent 910686f656
commit bcbc9ad903
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225
2 changed files with 3 additions and 52 deletions

View File

@ -12,7 +12,6 @@ let
zigbee = import ./multi/zigbee2mqtt.nix;
flurlicht = import ./multi/flurlicht.nix;
kurzzeitwecker = import ./multi/kurzzeitwecker.nix;
esphome = import ./multi/esphome.nix;
# switch
# automation
# binary_sensor
@ -34,7 +33,7 @@ in {
longitude = "9.2478";
elevation = 247;
};
#discovery = {};
discovery = {};
conversation = {};
history = {};
logbook = {};
@ -110,7 +109,6 @@ in {
};
binary_sensor =
zigbee.binary_sensor
++ esphome.binary_sensor
++ flurlicht.binary_sensor;
sensor = [
{ platform = "speedtest";
@ -119,10 +117,9 @@ in {
# https://www.home-assistant.io/cookbook/automation_for_rainy_days/
]
++ ((import ./sensor/outside.nix) {inherit lib;})
++ esphome.sensor
++ zigbee.sensor ;
frontend = { };
light = flurlicht.light ++ esphome.light;
light = flurlicht.light;
group =
{ default_view =
{ view = "yes";
@ -166,8 +163,7 @@ in {
};
http = { };
switch =
esphome.switch
++ zigbee.switch;
zigbee.switch;
automation =
flurlicht.automation
++ kurzzeitwecker.automation

View File

@ -1,45 +0,0 @@
# provides:
# switch
# automation
# binary_sensor
# sensor
# input_select
# timer
let
inherit (import ../lib) esphome;
sonoff_s20 = host: {
sensor = [
(esphome.ip { inherit host;})
(esphome.wifi { inherit host;})
(esphome.temp { inherit host;})
(esphome.hum { inherit host;})
];
binary_sensor = [
(esphome.btn { inherit host;})
];
light = [
(esphome.monoled { inherit host;})
];
switch = [
(esphome.relay { inherit host;})
(esphome.restart { inherit host;})
];
};
dusche = sonoff_s20 "dusche_plug";
schlafzimmer = sonoff_s20 "schlafzimmer_plug";
in {
sensor = [
(esphome.pressure {host = "dusche_plug";})
]
++ dusche.sensor
++ schlafzimmer.sensor;
binary_sensor =
dusche.binary_sensor
++ schlafzimmer.binary_sensor;
light =
dusche.light
++ schlafzimmer.light;
switch =
dusche.switch
++ schlafzimmer.switch;
}