From 13e59a2615e35497f7e2ef1b4289bd0a2d4976bc Mon Sep 17 00:00:00 2001 From: Gilles Grandou Date: Wed, 7 Sep 2022 09:09:52 +0200 Subject: [PATCH] update_temp at startup from restored temp_today --- pool.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pool.js b/pool.js index 9c2aa42..574109b 100644 --- a/pool.js +++ b/pool.js @@ -297,6 +297,8 @@ Shelly.call ( if (result) { status.temp_today = result.value; print("[POOL] Restore from KVS: temp_today:", status.temp_today); + if (status.temp_today !== null) + update_temp(status.temp_today); } } )