UniPi Control Panel does not look for lost value
-
The control panel does not look at "lost" value in message. If the temperature sensor signal is not being received on the 1-wire bus (ex. gets disconnected), the value of "lost:" is set to true and value of "value:" is set to the last known temperature. So if you unplug the sensor or it gets damaged the temperature on the control panel doesn't change. Adding the check for msg.lost on line 3 below will correct:
else if (dev_type == 'temp') { name = "Temperature Sensor " + msg.typ + " - " + circuit; if ((msg.value == null) | (msg.lost)) { value = "Not connected"; } else { value = (msg.value * (9.0 / 5.0) + 32).toFixed(1); // value = msg.value.toFixed(1); unit = "°F"; } -
Thansk a lot. Could you create a pull request or a bug report on github?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login