diff --git a/config/rzl/index.js b/config/rzl/index.js index c823d6c..79e7523 100644 --- a/config/rzl/index.js +++ b/config/rzl/index.js @@ -211,9 +211,9 @@ const config: Config = { } }, //Tasmota-Dosen - tasmota.topics(2, "olymp_printer"), - tasmota.topics(6, "snackbar"), - tasmota.topics(7, "infoscreen"), + tasmota.topics("2", "olymp_printer"), + tasmota.topics("6", "snackbar"), + tasmota.topics("7", "infoscreen"), //Kuechen-Floalts floalt.topics("65537"), diff --git a/config/rzl/utils.js b/config/rzl/utils.js index ad27129..64eadc6 100644 --- a/config/rzl/utils.js +++ b/config/rzl/utils.js @@ -64,7 +64,7 @@ export const tasmota = { defaultValue: "offline" }, }), - icon_color: (name: string, on_color: Color = hex("#00FF00")) => (state) => state[`${name}_online`] == "offline" ? hex("#888888") : (state[name] == "on" ? on_color : hex("#000000")) + icon_color: (name: string, on_color: Color = hex("#00FF00")) => (state: State) => state[`${name}_online`] == "offline" ? hex("#888888") : (state[name] == "on" ? on_color : hex("#000000")) } export const floalt = { color: (light_id: string) => `floalt_${light_id}_color`,