Allow initial value for text_sensor #3377
Unanswered
ViToni
asked this question in
Component enhancements
Replies: 2 comments 1 reply
-
|
🏷️ I've automatically added the |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
If this is intended to be used in LVGL to update a label, I suggest to set the label initially in LVGL to |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Component name
text_sensor
Link to component documentation on our website
https://esphome.io/components/text_sensor/
Describe the enhancement
DISCLAIMER: Maybe I'm misusing some components as this is my first time contact with ESPHome.
I'd like the text_sensor to allow an initial value.
My current workaround doesn't look like the right way to do it:
Use cases
When state of a text_sensor is updated by other sensors it might miss an initial value while the other sensor has no initial value change.
My use case is a text_sensor holding a wifi signal strength indicator as icon:
The code works expect in the initial case where there is no
wifi_signal_dbyet. To cover this initial period a way to provide an initial value would be useful.Anything else?
No response
Beta Was this translation helpful? Give feedback.
All reactions