-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Question - Template - Status #50
Comments
Which version of Home Assistant are you using? |
I think this relates with HA and not directly with this integration. P.s.: really need to have the localization in your template? As a temporary solution you can use a custom component like this one: https://github.com/PiotrMachowski/Home-Assistant-custom-components-Custom-Templates |
Hello @tijsverkoyen ,
Here is a sample of my Issue: - entity: sensor.inverter_1_active_power
type: custom:template-entity-row
secondary: |
{{states('sensor.inverter_1_inverter_status')}}
icon: mdi:solar-power
name: Soleil As @GiorgioUghini says, it's not related to your integration but more a general question. I'll try @GiorgioUghini 's workaround in the meaning time, I'll let you know if it works for me |
Unfortunately, it does not solve my problem 🙁. Template:Sun State: {{ states("sun.sun") }}
Sun Label: {{ ct_state_translated("sun.sun", "en") }}
Inverter State: {{ states('sensor.inverter_1_inverter_status') }}
Inverter Label: {{ ct_state_translated("sensor.inverter_1_inverter_status", "en") }} Result
|
Thank you @PiotrMachowski , Template:Sun State: {{ states("sun.sun") }}
Sun Label: {{ ct_state_translated("sun.sun", "en") }}
Inverter State: {{ states('sensor.inverter_1_inverter_status') }}
Inverter Label: {{ ct_state_translated("sensor.inverter_1_inverter_status", "en") }} Result: 👍
I hope, your proposal reach HomeAssistant Core 😉. But in the meantime it's a good workaround! @tijsverkoyen , it could be good to mention @PiotrMachowski integration in the README to help people in the same use case. |
Hello @tijsverkoyen ,
Since #22 , my templates shows the status code instead of the readable state.
Do you know how I can "translate" those magic numbers?
{{states('sensor.inverter_1_inverter_status')}}
get: 512
desired: Grid connection
The text was updated successfully, but these errors were encountered: