-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wind direction value format? #196
Comments
You should be able to use
So your string should work, however i might messed something up with the translation part. What language do you have configured for the compass-card? I'll have a look if I can find something broken. |
I now send degree from 0 to 360 and string presentation and define it as sensor. In one I get N, S,... and with one I get value from 0 to 360. I still see only English translation. But only when direction is in degrees. If character they are in English only. Might be bug? |
Maybe when defining sensors I need to define also value format? What I have so far:
When displaying this in compass card I get: YAML code of this view:
Let me know if you need any more additional data. Thank you. |
Ok I see, I misread your initial question (should not check this stuff when on mobile). You want the SV to show for both sensors, and it only shows when using numeric degrees sensor and not when using string sensor. Nice weather station guide btw. I'll have to look into that when my 433MHz station breakes down. |
Exactly. When entity is numeric degrees (0-360) sensor it will show translated string, but when it is string sensor it will not translate it. One more question. When using numeric degrees sensor I also get in between values like NNW: Is there an option to show only main 8 sides (N, NE, E, SE, S, SW, W and NW)? |
When using a sensor with a numeric state there is no option to only show the main 8 directions. When using a sensor with a string state (as you started off with) you're in control yourself (but more than 16 is not possible). If you would like this config option added as a feature, please add a new feature request. |
Is your feature request related to a problem? Please describe.
I am collecting wind speed from custom made wind station. I calculate wind direction inside the collection algorithm. It is displayed in HA with compass card but no translation language is working. I suspect bad value format.
Describe the solution you'd like
I wish to display wind direction in my language (Slovenian).
Describe alternatives you've considered
Well I need to know in what format must the wind direction entity be. Currently I store string value (W, S, E, N, SW, ...). Maybe it must be numeric (degrees)?.
Additional context
Here is the code that will calculate wind direction:
Assembled my weather station by this guide:
https://tysonpower.de/blog/esp8266-weather-station
The text was updated successfully, but these errors were encountered: