Files
WLED/usermods/Internal_Temperature_v2
Adam Matthews f825cab54a Usermod Updated: Internal Temperature V2
# Added high temperature indicator/action...

- A configurable preset is activated when the internal temperature raises above a configurable threshold temperature.

- When the internal temperature falls back below the threshold, the previously active preset is re-activated.

- To prevent frequent toggling between states when the temperature is close to the threshold, the reset threshold is slightly lower than the activation threshold to provide a small buffer.

- Reset threshold is automatically calculated to be two degrees lower than whatever the activation threshold is set to.

- To prevent the user setting the loop interval too low, a minimum allowable interval has been added.
2024-06-26 20:27:53 +01:00
..

Internal Temperature Usermod

Features

  •  🌡️  Adds the internal temperature readout of the chip to the Info tab
  • 🥵 High temperature indicator/action. (Configurable threshold and preset)
  • 📣 Publishes the internal temperature over the MQTT topic: mcutemp

Use Examples

  • Warn of excessive/damaging temperatures by the triggering of a 'warning' preset
  • Activate a cooling fan (when used with the multi-relay usermod)

Compatibility

  • A shown temp of 53,33°C might indicate that the internal temp is not supported
  • ESP8266 does not have a internal temp sensor -> Disabled (Indicated with a readout of '-1')
  • ESP32S2 seems to crash on reading the sensor -> Disabled (Indicated with a readout of '-1')

Installation

  • Add a build flag -D USERMOD_INTERNAL_TEMPERATURE to your platformio.ini (or platformio_override.ini).

📝 Change Log

2024-06-26

  • Added "high-temperature-indication" feature
  • Documentation updated

2023-09-01

  • "Internal Temperature" usermod created

Authors