-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
After using translations, the switch/binary_sensor entities are misbehaving. #156
Comments
I can confirm this issue. In Dutch, all on/off switches and sensors no longer report the current value. |
Opened https://github.com/zivillian/ism7mqtt/pull/157/files which fixed the issue for me |
Ugyan ezt a hibát fedeztem fel: Lehet majd kereslek majd, hogy értsem mit csináljak. :) |
A forkomban meg van fixelve. De szerintem idővel javitja majd a maintainer is, lehet hogy szebben, mint én. |
@danielszilagyi thanks, after applying your PR, it's working for me. But wouldn't be better to follow the /value of the parameter instead of the /text that could be localized and let the HA deal with it, or do i missed something why is there text used? And it seems like there are binary_sensors for open/closed, that are not translated. |
Installed the latest software via the experimental HA addon (which supports --lang) and configured to use Hungarian language.
My HA display language is English.
Getting similar entries in the log:
Ki
andBe
correspond tooff
andon
but I think the entity values should not be localized.Turning switch entities on or off is also not possible and all switches come up in a weird way.
I think it should be related to entity default states, but I think it is on/off and not localized even if the HA display language is different from English.
It seems to me that the HA discovery logic should not do this: https://github.com/zivillian/ism7mqtt/pull/155/files#diff-dfd5ab0b3144df7715a9a458831683a18839a6c43de1277b377ee558572a5e2dL269
For entities that have only on/off state and not a string state. Unfortunately I can only read in this programming language but hope it can be fixed.
The text was updated successfully, but these errors were encountered: