small changes
This commit is contained in:
parent
de38d82bf7
commit
f7a930c429
3 changed files with 13 additions and 3 deletions
|
@ -17,6 +17,9 @@ in {
|
|||
./home-assistant/zigbee2mqtt.nix
|
||||
];
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 8123 ];
|
||||
networking.firewall.allowedUDPPorts = [ 8123 ];
|
||||
|
||||
services.homeAssistantConfig = {
|
||||
|
||||
# turn on to edit GUI
|
||||
|
@ -37,6 +40,7 @@ in {
|
|||
config.module.cluster.services.tinc."private".networkSubnet
|
||||
# lan network
|
||||
"10.1.0.0/24"
|
||||
"192.168.178.0/24"
|
||||
];
|
||||
}];
|
||||
|
||||
|
|
|
@ -115,10 +115,12 @@
|
|||
system.permown."/home/syncthing" = {
|
||||
owner = "syncthing";
|
||||
group = "syncthing";
|
||||
umask = "0022";
|
||||
};
|
||||
system.permown."/media/syncthing" = {
|
||||
owner = "syncthing";
|
||||
group = "syncthing";
|
||||
umask = "0022";
|
||||
};
|
||||
systemd.services."permown._media_syncthing" = {
|
||||
bindsTo = [ "media.mount" ];
|
||||
|
|
|
@ -86,6 +86,7 @@ watcher = Watcher({
|
|||
"office1": Heater(topic="zigbee2mqtt/office_heater_1"),
|
||||
"office2": Heater(topic="zigbee2mqtt/office_heater_2"),
|
||||
"bedroom": Heater(topic="zigbee2mqtt/bedroom_heater_1"),
|
||||
"storage": Heater(topic="zigbee2mqtt/storage_heater_1"),
|
||||
})
|
||||
|
||||
|
||||
|
@ -127,14 +128,17 @@ def update_scene(client):
|
|||
watcher.update("office1", 14)
|
||||
watcher.update("office2", 14)
|
||||
watcher.update("bedroom", 14)
|
||||
watcher.update("storage", 14)
|
||||
elif scene in ["default", "up-bright", "up-dark", "half", "down"]:
|
||||
watcher.update("office1", 28)
|
||||
watcher.update("office2", 28)
|
||||
watcher.update("bedroom", 20)
|
||||
watcher.update("office1", 25)
|
||||
watcher.update("office2", 25)
|
||||
watcher.update("bedroom", 18)
|
||||
watcher.update("storage", 18)
|
||||
else:
|
||||
watcher.update("office1", 14)
|
||||
watcher.update("office2", 14)
|
||||
watcher.update("bedroom", 14)
|
||||
watcher.update("storage", 14)
|
||||
|
||||
watcher.publish(client)
|
||||
|
||||
|
|
Loading…
Reference in a new issue