dawidchyrzynski / arduino-home-assistant

ArduinoHA allows to integrate an Arduino/ESP based device with Home Assistant using MQTT.
https://dawidchyrzynski.github.io/arduino-home-assistant/
GNU Affero General Public License v3.0
480 stars 116 forks source link

Option to set value as not available/invalid/null/NaN #175

Closed najdanovicivan closed 7 months ago

najdanovicivan commented 1 year ago

I need to be able to pass null like value to HA when for example the sensor gets disconnected so the value cannot be obtained.

Sensors should be able to handle NAN values as missing/invalid values.

dawidchyrzynski commented 7 months ago

This feature will be available in the upcoming version of the library. Please refer to the linked Pull Request for more information.