From ff97fa3d394076a5ff35503039bddf00e74f027f Mon Sep 17 00:00:00 2001 From: jontofront <37038426+jontofront@users.noreply.github.com> Date: Thu, 21 Dec 2023 08:03:15 +0000 Subject: [PATCH] add lamda proces for status_wifi and main_server --- custom_components/econet300/const.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/custom_components/econet300/const.py b/custom_components/econet300/const.py index aac1154..b6f64f2 100644 --- a/custom_components/econet300/const.py +++ b/custom_components/econet300/const.py @@ -231,6 +231,9 @@ "lambdaStatus": lambda x: "STOP" if x == 0 else ("START" if x == 1 else ("Working" if x == 2 else "Unknown")), + "status_wifi": lambda x: 'Connected' if x == 1 else 'Disconnected', + "main_server": lambda x: 'Server available' if x == 1 else 'Server not available', + } REG_PARAM_ENTITY_CATEGORY = {