commit ae1e6095a64d10c1bf3668881484f6a871185e6f
parent b381bb726cef00b9941d2139433f6967bbec7a60
Author: Leah (ctucx) <git@ctu.cx>
Date: Wed, 22 May 2024 16:32:47 +0200
parent b381bb726cef00b9941d2139433f6967bbec7a60
Author: Leah (ctucx) <git@ctu.cx>
Date: Wed, 22 May 2024 16:32:47 +0200
machines/briefkasten/smarthome: disable `sdm2mqtt`, powermeter section in mqtt-webui
2 files changed, 48 insertions(+), 48 deletions(-)
M
|
92
++++++++++++++++++++++++++++++++++++++++----------------------------------------
diff --git a/machines/briefkasten/smarthome/default.nix b/machines/briefkasten/smarthome/default.nix @@ -4,10 +4,10 @@ imports = [ ./mosquitto.nix - ./mbusd.nix +# ./mbusd.nix ./zigbee2mqtt.nix - ./sdm2mqtt.nix +# ./sdm2mqtt.nix # ./departures2mqtt.nix ./influxdb2.nix
diff --git a/machines/briefkasten/smarthome/mqtt-webui/config.nix b/machines/briefkasten/smarthome/mqtt-webui/config.nix @@ -108,52 +108,52 @@ in { (ColorSpectrumLamp "RGB Lamp" "zigbee2mqtt/ikea_lamp_rgb") - { - title = "Power-Meter"; - items = [ - { - title = "Voltage"; - type = "text"; - topic = "sdm2mqtt/leah"; - icon = "icons/power.png"; - transform = "return Math.round((message.voltage + Number.EPSILON) * 100) / 100 + ' V'"; - } - { - title = "Power"; - type = "text"; - topic = "sdm2mqtt/leah"; - icon = "icons/power.png"; - transform = "return Math.round((message.power + Number.EPSILON) * 100) / 100 + ' W'"; - } - { - title = "Frequency"; - type = "text"; - topic = "sdm2mqtt/leah"; - icon = "icons/power.png"; - transform = "return message.frequency + ' Hz'"; - } - { - title = "cos φ"; - type = "text"; - topic = "sdm2mqtt/leah"; - icon = "icons/power.png"; - transform = "return Math.round((message.cosphi + Number.EPSILON) * 100) / 100"; - } - { - title = "Total Import"; - type = "text"; - topic = "sdm2mqtt/leah"; - icon = "icons/power.png"; - transform = "return Math.round((message.import + Number.EPSILON) * 100) / 100 + ' kWh'"; - } - { - title = "Archive"; - type = "text"; - icon = "icons/sun.png"; - link = "#powermeterarchive"; - } - ]; - } + # { + # title = "Power-Meter"; + # items = [ + # { + # title = "Voltage"; + # type = "text"; + # topic = "sdm2mqtt/leah"; + # icon = "icons/power.png"; + # transform = "return Math.round((message.voltage + Number.EPSILON) * 100) / 100 + ' V'"; + # } + # { + # title = "Power"; + # type = "text"; + # topic = "sdm2mqtt/leah"; + # icon = "icons/power.png"; + # transform = "return Math.round((message.power + Number.EPSILON) * 100) / 100 + ' W'"; + # } + # { + # title = "Frequency"; + # type = "text"; + # topic = "sdm2mqtt/leah"; + # icon = "icons/power.png"; + # transform = "return message.frequency + ' Hz'"; + # } + # { + # title = "cos φ"; + # type = "text"; + # topic = "sdm2mqtt/leah"; + # icon = "icons/power.png"; + # transform = "return Math.round((message.cosphi + Number.EPSILON) * 100) / 100"; + # } + # { + # title = "Total Import"; + # type = "text"; + # topic = "sdm2mqtt/leah"; + # icon = "icons/power.png"; + # transform = "return Math.round((message.import + Number.EPSILON) * 100) / 100 + ' kWh'"; + # } + # { + # title = "Archive"; + # type = "text"; + # icon = "icons/sun.png"; + # link = "#powermeterarchive"; + # } + # ]; + # } {