ctucx.git: smartied

[nimlang] smarthome server

commit 03c8bf4a6af1a1574dd4976bbdc6f44ddeb22c39
parent 07e96a64e31a91f8b15b3748c987b32b4572f1ee
Author: Leah (ctucx) <leah@ctu.cx>
Date: Sun, 14 Feb 2021 19:08:26 +0100

update config
1 file changed, 28 insertions(+), 23 deletions(-)
M
config.json
|
51
++++++++++++++++++++++++++++-----------------------
diff --git a/config.json b/config.json
@@ -3,9 +3,15 @@
 		"modbus-10": {
 			"type": "RelayBoard",
 			"firstRegister": 0,
-			"count": 8,
+			"count": 4,
 			"address": 10
 		},
+		"modbus-20": {
+			"type": "RelayBoard",
+			"firstRegister": 0,
+			"count": 4,
+			"address": 20
+		},
 		"modbus-50": {
 			"type": "PowerMeter",
 			"model": "SDM120",

@@ -18,18 +24,23 @@
 		},
 		"lacrosse-raum": {
 			"type": "LacrosseTempSensor",
-			"id": "5",
-			"address": 5
+			"id": "21",
+			"address": 21
 		},
-		"lacrosse-draussen": {
+		"lacrosse-kuehlschrank": {
 			"type": "LacrosseTempSensor",
-			"id": "31",
+			"id": "3a",
 			"address": 31
 		},
+		"lacrosse-draussen": {
+			"type": "LacrosseTempSensor",
+			"id": "26",
+			"address": 26
+		},
 		"lacrosse-bad": {
 			"type": "LacrosseTempSensor",
 			"id": "3f",
-			"address": 42
+			"address": 3
 		}
 	},
 	"clientConfigs": {

@@ -55,11 +66,11 @@
 					"icon": "lightbulb",
 					"type": "switches",
 					"switches": [
-						{ "name": "Decke", "device": "modbus-10", "relay": 0 },
-						{ "name": "Bett", "device": "modbus-10", "relay": 1 },
-						{ "name": "Küche", "device": "modbus-10", "relay": 2 },
-						{ "name": "Regal", "device": "modbus-10", "relay": 7 },
-						{ "name": "Bad", "device": "modbus-10", "relay": 3 }
+						{ "name": "Decke (agedunkelt)", "device": "modbus-10", "relay": 0 },
+						{ "name": "Decke", "device": "modbus-10", "relay": 2 },
+						{ "name": "Küche", "device": "modbus-10", "relay": 1 },
+						{ "name": "Bett", "device": "modbus-10", "relay": 3 },
+						{ "name": "Bad", "device": "modbus-20", "relay": 0 }
 					]
 				},
 				{

@@ -68,8 +79,8 @@
 					"icon": "power_settings_new",
 					"type": "switches",
 					"switches": [
-                                                { "name": "Bett-Monitor", "device": "modbus-10", "relay": 5 },
-						{ "name": "Verstärker", "device": "modbus-10", "relay": 6 }
+                        { "name": "Lüfter", "device": "modbus-20", "relay": 3 },
+						{ "name": "Lüfter (leise)", "device": "modbus-20", "relay": 2 }
 					]
 				},
 				{

@@ -88,6 +99,7 @@
 					"icon": "brightness_7",
 					"type": "temperature",
 					"sensors": [
+						{ "name": "Kühlschrank", "device": "lacrosse-kuehlschrank" },
 						{ "name": "Raum", "device": "lacrosse-raum" },
 						{ "name": "Bad", "device": "lacrosse-bad" },
 						{ "name": "Draussen", "device": "lacrosse-draussen" }

@@ -98,28 +110,21 @@
 					"name": "Departures",
 					"icon": "departure_board",
 					"type": "departures",
-					"source": "https://utils.ctu.cx/departures.php"
-				},
-				{
-					"url": "netdata",
-					"name": "netdata",
-					"icon": "show_chart",
-					"type": "redirect",
-					"destination": "http://192.168.1.1/netdata/"
+					"source": "https://f2k1.de/haltestellen.php"
 				},
 				{
 					"url": "fritzbox",
 					"name": "Fritz!Box",
 					"icon": "router",
 					"type": "redirect",
-					"destination": "http://10.0.0.1/"
+					"destination": "http://192.168.178.1/"
 				},
 				{
 					"url": "settings",
 					"name": "Settings",
 					"icon": "settings",
 					"type": "settings",
-					"sourceLink": "https://git.pbb.lc/petabyteboy/smarthome-pwa"
+					"sourceLink": "https://cgit.ctu.cx/smarthome-pwa"
 				}
 			]
 		}