GithubHelp home page GithubHelp logo

Comments (2)

mampfes avatar mampfes commented on July 17, 2024

Hi, thanks for sharing your helper entities. I would like to add them to the documentation (if this is ok for you), but for this some little pieces are missing: Could you please also share your initial waste_collection_schedule sensor configuration and some example png's?

Regarding normalization: I think there are a lot of different waste types out there in the world.. And I also think that there are always people who want to have their own naming for their local waste types. Normalization wouldn't help them and you still need a way to customize your appointment types. On the other side I see your problem, but I would solve it in a different way: You can already set an alias for every appointment type (see https://github.com/mampfes/hacs_waste_collection_schedule, section "Customize Source"). If you use this feature you don't have to translate it within your helper entities anymore and they become generic therefore.

Maybe the documentation is not obvious enough and I should add another example. What do you think? Would this fix your problem?

from hacs_waste_collection_schedule.

boesing avatar boesing commented on July 17, 2024

I would like to add them to the documentation (if this is ok for you)

Feel free.

Sensor config

waste_collection_schedule:
  sources:
    - name: awbkoeln_de
      args:
        street_code: <code>
        building_number: <building>
  day_switch_time: "23:59"

Screenshots

image

And I also think that there are always people who want to have their own naming for their local waste types

Overwriting enum translations from within the YAML configuration would be quite easy.
As you already mentioned in your comment, there is already a way to use an alias tho.
However, I am not sure if that would work when there are two appointment types on the same date as these are comma separated and thus there might be multiple values like blau, grau or grau, blau and so on. The more waste is scheduled, the merrier combinations would be available. One could solve that with using a list of enums for a specific date instead of having just a string value.

Normalization wouldn't help them and you still need a way to customize your appointment types

Well, I think it would as you dont have to override blue or papier or paper or whatever color that is in another country as you have a dedicated enum value for paper waste.


However, I see that this normalization wont suit your needs and thus there is no need to put that much work in that kind of refactoring.

Anyways, thanks for your time. 👍

from hacs_waste_collection_schedule.

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.