Git Product home page Git Product logo

Comments (3)

amaximus avatar amaximus commented on June 1, 2024 1

Thanks for your information. The custom card does not expect English names, however by default uses the English name the Transmission component originally generated.
As HA evolved and introduced generating entity names localized, the generated names became different from the default English name. The sensor_entity_id was meant to solve this issue. The readme of the card describes that the default sensor_entity_id is transmission. So if your instance is localized and HA or the component generates entity names accordingly then you'll have to use the sensor_entity_id.
I'll review the readme and clarify if needed.

from transmission-card.

luixal avatar luixal commented on June 1, 2024

Hi,

Sorry to bump this issue but I just hit this... and I don't think it was solved.

I had a look at the sensor_entity_id but if I've understood it well, it doesn't solve the problem as it is related to the suffix rather than the sensor name.

Looking into the code, for example at this line:

let download_speed = `sensor.${this.config.sensor_entity_id}_download_speed`;

doesn't solve this as my sensor (in spanish) is called sensor.transmission_velocidad_de_descarga instead of sensor.transmission_download_speed. The main "name" is the same, transmission but the suffix is the piece that changes.

As I possible solution I only see adding the fields to specify each sensor manually.

PS: the solution I'm using right now is renaming entities IDs to match the ones in english.

from transmission-card.

etcho avatar etcho commented on June 1, 2024

@luixal, the solution that worked for me also was change all the sensor names for the English ones. It's the easiest workaround until a more elegant solution comes up.

from transmission-card.

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.