diff options
author | makefu <github@syntax-fehler.de> | 2023-07-28 22:24:15 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2023-07-28 22:24:15 +0200 |
commit | 060a8f28fa1fc648bdf66afb31a5d1efac868837 (patch) | |
tree | 2b354eacc7897365ee45244fe7a51720e0d0333f /makefu/2configs/bureautomation/sensor | |
parent | cbfcc890e3b76d942b927809bf981a5fa7289e6a (diff) |
makefu: move out to own repo, add vacation-note
Diffstat (limited to 'makefu/2configs/bureautomation/sensor')
5 files changed, 0 insertions, 103 deletions
diff --git a/makefu/2configs/bureautomation/sensor/airquality.nix b/makefu/2configs/bureautomation/sensor/airquality.nix deleted file mode 100644 index 7d95c3c1..00000000 --- a/makefu/2configs/bureautomation/sensor/airquality.nix +++ /dev/null @@ -1,12 +0,0 @@ -{ - services.home-assistant.config.sensor = - [ - # coming from 2configs/stats/telegraf/ - { platform = "mqtt"; - name = "Air Quality"; - state_topic = "/telegraf/wbob/airquality"; - value_template = "{{ value_json.fields.value }}"; - unit_of_measurement = "VOC"; - } - ]; -} diff --git a/makefu/2configs/bureautomation/sensor/espeasy.nix b/makefu/2configs/bureautomation/sensor/espeasy.nix deleted file mode 100644 index c68f39f1..00000000 --- a/makefu/2configs/bureautomation/sensor/espeasy.nix +++ /dev/null @@ -1,33 +0,0 @@ -let - espeasy_dht22 = name: [ - { platform = "mqtt"; - name = "${name} DHT22 Temperature"; - device_class = "temperature"; - state_topic = "/bam/${name}/dht22/Temperature"; - availability_topic = "/bam/${name}/tele/LWT"; - payload_available = "Online"; - payload_not_available = "Offline"; - } - { platform = "mqtt"; - device_class = "humidity"; - name = "${name} DHT22 Humidity"; - state_topic = "/bam/${name}/dht22/Humidity"; - availability_topic = "/bam/${name}/tele/LWT"; - payload_available = "Online"; - payload_not_available = "Offline"; - }]; - espeasy_ds18 = name: - { platform = "mqtt"; - name = "${name} DS18 Temperature"; - state_topic = "/bam/${name}/ds18/Temperature"; - availability_topic = "/bam/${name}/tele/LWT"; - payload_available = "Online"; - payload_not_available = "Offline"; - }; -in { - services.home-assistant.config.sensor = - (espeasy_dht22 "easy1") ++ - (espeasy_dht22 "easy2") ++ [ - (espeasy_ds18 "easy3" ) - ]; -} diff --git a/makefu/2configs/bureautomation/sensor/outside.nix b/makefu/2configs/bureautomation/sensor/outside.nix deleted file mode 100644 index e7b4d9a7..00000000 --- a/makefu/2configs/bureautomation/sensor/outside.nix +++ /dev/null @@ -1,32 +0,0 @@ -{lib,...}: -{ - services.home-assistant.config.sensor = - [ - { platform = "darksky"; - api_key = lib.removeSuffix "\n" - (builtins.readFile <secrets/hass/darksky.apikey>); - language = "de"; - monitored_conditions = [ - "summary" "icon" - "nearest_storm_distance" "precip_probability" - "precip_intensity" - "temperature" # "temperature_high" "temperature_low" - "apparent_temperature" - "hourly_summary" # next 24 hours text - "humidity" - "pressure" - "uv_index" - ]; - units = "si" ; - scan_interval = "00:30:00"; - } - ]; - services.home-assistant.config.luftdaten = { - sensor_id = "26237"; - show_on_map = true; - sensors.monitored_conditions = [ - "P1" - "P2" - ]; - }; -} diff --git a/makefu/2configs/bureautomation/sensor/pollen.nix b/makefu/2configs/bureautomation/sensor/pollen.nix deleted file mode 100644 index 8ddb49e5..00000000 --- a/makefu/2configs/bureautomation/sensor/pollen.nix +++ /dev/null @@ -1,7 +0,0 @@ -[ { - platform = "dwd_pollen"; - partregion_ids = [ - 112 - ]; -} -] diff --git a/makefu/2configs/bureautomation/sensor/tasmota_firmware.nix b/makefu/2configs/bureautomation/sensor/tasmota_firmware.nix deleted file mode 100644 index f5f063db..00000000 --- a/makefu/2configs/bureautomation/sensor/tasmota_firmware.nix +++ /dev/null @@ -1,19 +0,0 @@ -let - tasmota_firmware = topic: - { platform = "mqtt"; - name = "${topic} Firmware"; - state_topic = "/bam/${topic}/stat/STATUS2"; - availability_topic = "/bam/${topic}/tele/LWT"; - value_template = "v{{value_json.StatusFWR.Version}}"; - payload_available= "Online"; - payload_not_available= "Offline"; - }; -in -{ - services.home-assistant.config.sensor = - map tasmota_firmware [ - "plug" "plug2" "plug3" "plug4" "plug5" - "status1" "status2" "buslicht" - "rfbridge" - ]; -} |