ModBus Sensor marked unknown if getting NaN (#38235)

This commit is contained in:
Claudio Ruggeri - CR-Tech 2025-05-26 21:32:46 +02:00 committed by GitHub
parent 8ddf4baee1
commit d98263cd99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1434,7 +1434,7 @@ sensors:
required: false required: false
type: float type: float
nan_value: nan_value:
description: If a Modbus sensor has a defined NaN value, this value can be set as a hex string starting with `0x` containing one or more bytes (for example, `0xFFFF` or `0x80000000`) or provided as an integer directly. If triggered, the sensor becomes `unavailable`. Please note that the hex to int conversion for `nan_value` does currently not obey home-assistants Modbus encoding using the `data_type`, `structure`, or `swap` arguments. description: If a Modbus sensor has a defined NaN value, this value can be set as a hex string starting with `0x` containing one or more bytes (for example, `0xFFFF` or `0x80000000`) or provided as an integer directly. If triggered, the sensor becomes `unknown`. Please note that the hex to int conversion for `nan_value` does currently not obey home-assistants Modbus encoding using the `data_type`, `structure`, or `swap` arguments.
required: false required: false
type: string type: string
zero_suppress: zero_suppress: