-
Notifications
You must be signed in to change notification settings - Fork 25
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
Fixed due_txt: true #100
Fixed due_txt: true #100
Conversation
Changed the code show "due today" or "tomorrow" when: hide_date: false hide_days: true due_txt: true
I prefer to use parameter combination below. My problem is just near collecting date that I do not know if collecting will be tomorrow or is is today. Parameter due_txt has no affect in this case. I have changed the code to take account due_txt=true. I would prefer to make other changes to make parameter more undertandable:
Please take a look for my changes and detailed example below. hide_date: true
hide_date: true
hide_date: false
hide_date: true
hide_date: true No changes to behaviour.
hide_date: false No changes to behaviour.
Better option would be to drive 'Due today' and 'Due tomorrow' behaviour just using parameter due_txt without automatic rules: Would that make sense? |
Please unset/remove verbose_state in/from the sensor definition and due_txt setting of the card will be granted. |
Do you mean if I set verbose_state=false in the garbage_collection helper configuration all changes in this pull request can be ignored? That's not the case. Actually, I already have verbose_state=false in the garbage_collection plugin and the card shows now translations and texts from the garbage-collection-card. The issue is just that some parameter combinations hide detailed text from the card if the collection is today or tomorrow. If I set verbose_state=true in garbage_collection, it seems that all texts are coming from the garbage_collection plugin, not from the card. In this case, it seems that any of the card parameters (hide_date, hide_days, due_txt) does not have any effect, it will always use date and verbose Format from the sensor. Basically, I could verbose_state=true to get what I want using plugin configuration, but the plugin is not translated into Finnish so I would need to do add the missing translation garbage_collection plugin. Still prefer to card configuration to get more flexibility and it's already translated. |
The garbage collection integration has two modes:
The card follows these two modes, for verbose_state=false the card will provide the date and days information, while for verbose_state=true these information will be taken from the sensor as-is. Testing your setup, I don't see any issues, due today|tomorrow is displayed correctly:
|
With a quick test in my environment with the latest version, I changed line 166 to:
with parameter combination: It does not matter if verbose_state is true or false. |
Changed the code to show "due today" or "tomorrow" when:
hide_date: false
hide_days: true
due_txt: true