Open tricoveri opened 1 year ago
A sensor:
is always a float. If you want a string, then you need to use a text_sensor:
instead.
Github issues are not for support requests. Use the discord server or one of the forums.
hey thanks for the message, I didn't get the difference, will use discord right away
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
The problem
Hello, I am trying to access the weather entity state and attributes in a lambda call in order to publish them to a nextion display with poor results. They seem to be returned as floats but even trying with .c_str() I can't convert the to char
I am using met.no integration
Other sensors like temperature sensors and time are correctly displayed
Thanks in advance for any help
Which version of ESPHome has the issue?
2022.8.0
What type of installation are you using?
pip
Which version of Home Assistant has the issue?
2022.12.7
What platform are you using?
ESP32
Board
Esp32 Devkit 1
Component causing the issue
weather and weather hourly
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response