Comments (2)
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.
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
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)
- [Source Request]: Stroud District Council, UK HOT 2
- Request for new source: https://www.monaloga.de/mportal/awista-logistik/stadt-remscheid HOT 1
- [Source Request]: Add Wychavon Council HOT 2
- [Bug]: SSL Error port_enf_sa_gov_au.py HOT 1
- [Source Request]: Ards and North Down Borough Council HOT 2
- [Feature]: Adding Already supported Sources for Austria, Vorarlberg to the Documentation HOT 2
- [Source Request]: Kreis Steinburg, Germany HOT 1
- [Bug]: ICS Sensor Not longer working HOT 3
- [Source Request]: Townsville (https://www.townsville.qld.gov.au) HOT 1
- [Bug]: fetch failed for source Apps by Abfall+: HOT 2
- [Source Request]: Solihull Council, UK HOT 1
- [Source Request]: Darlington Borough Council HOT 3
- [Source Request]: Steinburg, Germany HOT 1
- [Bug]: Highland gov uk source doesn't work with my route but does with the example one HOT 4
- [Bug]: app_abfallplus_de returns names with numbers instead of the types HOT 31
- [Source Request]: City of Darebin, Victoria, Australia HOT 1
- [Bug]: Mansfield District Council not showing Brown (Garden Waste) bin HOT 3
- [Bug]: abfall_havelland_de.md - stops working after time HOT 1
- [Bug]: Exception: city not found: rödental HOT 4
- [Bug]: de.biberach.abfallapp throws 401 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hacs_waste_collection_schedule.