Giter VIP home page Giter VIP logo

Comments (7)

rautesamtr avatar rautesamtr commented on July 19, 2024

Hi states aren't translated. You should have your translation in the dashboard. It's also the same for home assistant, e.g. state of the heater. I think one of the main reasons is that you can have language indepedent automatisation.
image
image

from thermal_comfort.

ahmadtawakol avatar ahmadtawakol commented on July 19, 2024

Hmm, interesting. This is the first time I come across this. I'm using the state of the sensor in a template, so it shows as no_risk instead of No risk.

Looks like there isn't a way around this either. I'll close this since this isn't a problem with this component.

from thermal_comfort.

rautesamtr avatar rautesamtr commented on July 19, 2024

Could you post your template so i could give it a look to make sure it isn't a bug?

from thermal_comfort.

ahmadtawakol avatar ahmadtawakol commented on July 19, 2024

${states['sensor.bedroom_simmerzone'].state}

from thermal_comfort.

rautesamtr avatar rautesamtr commented on July 19, 2024

Looks like there's no easy solution for now other then to do custom value conversion. The problem is we use a custom device_class for the translation and template entity only accepts one of the official ones.

from thermal_comfort.

ahmadtawakol avatar ahmadtawakol commented on July 19, 2024

I did find this: https://community.home-assistant.io/t/how-to-send-translation-arguments-to-the-translation-custom-integration/143965/3

I'm just not sure how to implement it.

from thermal_comfort.

rautesamtr avatar rautesamtr commented on July 19, 2024

Thats basically what we are doing. What you are looking for is this issue: https://community.home-assistant.io/t/get-translated-entity-state-in-component-template/112721

from thermal_comfort.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.