Skip to content
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

[Bug]: Filtering does not work correctly within HA mobile app #445

Open
2 tasks done
Ben-Bitdiddle-DE opened this issue Oct 15, 2024 · 7 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@Ben-Bitdiddle-DE
Copy link

Requirements

  • I checked the troubleshooting section in the README to verify that I have the latest TrashCard version.
  • I did a search to see if there is a similar issue or if a pull request is open.

Current Behavior

First of all, thanks for implementing #393.

I today gave it a try and observed, that on my mobile devices (iOS and/or android) the filtering is somewhat different from the desktop/browser. It seems, as far as i can reproduce it, that location filtering does not get involved on the mobile devices (or filtering at all).

Result on desktop:
result_desktop

Result on mobile:
IMG_2582

i configured here a dayahead of 30 days just to find out which entries aren't filtered. The entries which are not "full day" (7:00 to 7:00) are the ones where i filtered location.

Oddly enough, even if a configure the "full day only" option, these events also aren't filtered out.

Oddly#2: Looking at it as i'm writing, i also observe a time difference of one day im some (not all!) entries. Have look at "Gelber Sack" as of 10/28, which ist shown as 10/27 in the mobile app (10/28 is the correct date). Also hold for "Restmülltone" 11/05, where 11/06 is on desktop (and which is right). I am not sure if the wrong dates also come from the TrashCard integration for visualisation.

Expected Behavior

No response

Steps To Reproduce

event_grouping: false
drop_todayevents_from: '10:00:00'
next_days: 30
pattern:

  • icon: mdi:biohazard
    color: purple
    type: organic
    pattern: Schadstoff
    label: Schadstoffmobil
    pattern_exact: false
  • icon: mdi:newspaper
    color: green
    type: paper
    pattern: Papiertonne
    pattern_exact: false
  • icon: mdi:recycle-variant
    color: amber
    type: recycle
    pattern: Sack
    pattern_exact: false
  • icon: mdi:trash-can-outline
    color: grey
    type: waste
    pattern: Restmüll
    pattern_exact: false
  • icon: mdi:dump-truck
    color: purple
    type: others
    alignment_style: left
    items_per_row: 1
    refresh_rate: 60
    with_label: true
    type: custom:trash-card
    entities:
  • calendar.own_house
    filter_events: true
    only_all_day_events: true
    location: höchsten

Context

No response

Environment

- Browser: Brave 1.68.134, Edge 129.0.2792.89
- HA Version: 2024.7.3
- TrashCard: 2.4.2
- iOS App: 2024.9.4 (2024.905)
- Adroid App: 2024.9.4-full

Debug data

No response

Anything else?

No response

@Ben-Bitdiddle-DE Ben-Bitdiddle-DE added the bug Something isn't working label Oct 15, 2024
@Ben-Bitdiddle-DE
Copy link
Author

event_grouping: false
drop_todayevents_from: '10:00:00'
next_days: 30
pattern:
  - icon: mdi:biohazard
    color: purple
    type: organic
    pattern: Schadstoff
    label: Schadstoffmobil
    pattern_exact: false
  - icon: mdi:newspaper
    color: green
    type: paper
    pattern: Papiertonne
    pattern_exact: false
  - icon: mdi:recycle-variant
    color: amber
    type: recycle
    pattern: Sack
    pattern_exact: false
  - icon: mdi:trash-can-outline
    color: grey
    type: waste
    pattern: Restmüll
    pattern_exact: false
  - icon: mdi:dump-truck
    color: purple
    type: others
alignment_style: left
items_per_row: 1
refresh_rate: 60
with_label: true
type: custom:trash-card
entities:
  - calendar.own_house
filter_events: true
only_all_day_events: true
location: höchsten

@Ben-Bitdiddle-DE
Copy link
Author

I am using the mobile apps with different users. When using these users on the desktop, the behaviour is still correct in desktop. When using the desktop users on the mobile, the error still occours. So it has nothing to do with users.

@Ben-Bitdiddle-DE
Copy link
Author

When using a browser on the mobile, the behaviour is fine (as on desktop), so is has something to do with the HA app itself.
IMG_2583

@Ben-Bitdiddle-DE
Copy link
Author

Dates, when using browser on mobile device, are also correctly presented.

@Ben-Bitdiddle-DE
Copy link
Author

It is not really deterministic, currently... :-(
Currently, only on iOS there is that glitch. Here you can also see that 1-day difference in date, which holds for all relevant entries which should remain after filtering (28 Oct, 6 Nov and 19 Nov in this example). But i swear that on Android i had also this behaviour some day ago, as described above :).

PC:
browserPC

iOS:
Bildschirmfoto 2024-10-23 um 10 01 36 jpeg

Android:
IMG_2620

@Ra72xx
Copy link

Ra72xx commented Nov 16, 2024

I just observed - both on the desktop and on the Android mobile apps - that the date filter behaves somehow strange. I have set next_days: 1 and would expect that only events for tomorrow are displayed. However,, the card displays events also for the day after tomorrow (at least, as there are no events more days in the future).
Maybe that is a similar problem?

@Ben-Bitdiddle-DE
Copy link
Author

Ben-Bitdiddle-DE commented Nov 16, 2024

Might be. Maybe correspondents to the day-calculation-glitch i observed (day from calender is presented one day too early in result list, so 5th nov is presented as 4th nov). Not always, though. Currently everthing seems to be ok (maybo mobile apps got some updates, didnt check). (Yum my calender entries end as of end of this year, so this might help out here :))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants