mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-12-26 17:27:47 +01:00
parent
3d6bfec6dd
commit
923db447a1
@ -648,7 +648,7 @@ advanced stuff (see the full API Reference for more info).
|
||||
// For example, create a custom log message when a value is received:
|
||||
ESP_LOGI("main", "Value of my sensor: %f", id(my_sensor).state);
|
||||
|
||||
- ``raw_state``: Retrieve the current value of the sensor that has not passed through any filters
|
||||
- ``raw_state``: Retrieve the current value of the sensor that has not passed through any filters.
|
||||
Is ``NAN`` if no value has been pushed by the sensor itself yet.
|
||||
|
||||
.. code-block:: cpp
|
||||
|
Loading…
Reference in New Issue
Block a user