ma ham: add influxdb
This commit is contained in:
parent
67425ef501
commit
78a81a0b84
@ -39,6 +39,15 @@ in {
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
config = {
|
config = {
|
||||||
|
influxdb = {
|
||||||
|
database = "ham";
|
||||||
|
host = "localhost:8086";
|
||||||
|
tags = {
|
||||||
|
instance = "omo";
|
||||||
|
source = "hass";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
config = {};
|
config = {};
|
||||||
input_select = zigbee.input_select; # dict
|
input_select = zigbee.input_select; # dict
|
||||||
timer = zigbee.timer // kurzzeitwecker.timer; # dict
|
timer = zigbee.timer // kurzzeitwecker.timer; # dict
|
||||||
@ -91,6 +100,7 @@ in {
|
|||||||
];
|
];
|
||||||
sun.elevation = 247;
|
sun.elevation = 247;
|
||||||
recorder = {};
|
recorder = {};
|
||||||
|
device_tracker = (import ./device_tracker/openwrt.nix);
|
||||||
media_player = [
|
media_player = [
|
||||||
{ platform = "FireTV Stick kodi";
|
{ platform = "FireTV Stick kodi";
|
||||||
host = firetv_stick;
|
host = firetv_stick;
|
||||||
@ -128,7 +138,7 @@ in {
|
|||||||
};
|
};
|
||||||
luftdaten = {
|
luftdaten = {
|
||||||
show_on_map = true;
|
show_on_map = true;
|
||||||
sensor_id = 679;
|
sensor_id = 10529;
|
||||||
sensors.monitored_conditions = [ "P1" "P2" ];
|
sensors.monitored_conditions = [ "P1" "P2" ];
|
||||||
};
|
};
|
||||||
#binary_sensor =
|
#binary_sensor =
|
||||||
@ -162,4 +172,5 @@ in {
|
|||||||
configDir = hassdir;
|
configDir = hassdir;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
state = [ "/var/lib/hass/known_devices.yaml" ];
|
||||||
}
|
}
|
||||||
|
10
makefu/2configs/ham/device_tracker/openwrt.nix
Normal file
10
makefu/2configs/ham/device_tracker/openwrt.nix
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[
|
||||||
|
{ platform = "luci";
|
||||||
|
host = "192.168.1.5";
|
||||||
|
username = "root";
|
||||||
|
password = import <secrets/hass/router.nix>;
|
||||||
|
interval_seconds = 30; # instead of 12seconds
|
||||||
|
consider_home = 300; # 5 minutes timeout
|
||||||
|
new_device_defaults.track_new_devices = true;
|
||||||
|
}
|
||||||
|
]
|
Loading…
Reference in New Issue
Block a user