robertraaijmakers / com.trashchecker

Trashcan Reminder 2.0 is an app for Homey (Home Automation Hub) and gives you the ability to get notifications when your trash is being collected.
10 stars 32 forks source link

Feature Request: Device tile for next collection #166

Closed Jovink closed 1 year ago

Jovink commented 1 year ago

Hi, Would it be possible to add a device tile so we can add it to our favorite devices to see what is collected next?

cactusss commented 1 year ago

May I suggest making this (also) a flow token? Maybe per trash-type? Or, provide the debug-json as seen in settings in a flowtoken? That way we can run a HomeyScript to filter the information we need.

Would be awesome 😎

robertraaijmakers commented 1 year ago

There are already three tokens available. For today, tomorrow and day after tomorrow you can see and use the tokens.

Can you provide some business cases for which more tokens should be used?

With regards to the device. It is quite difficult to add and maintain devices. Next to that there is not much space to display text on a device tile. Do you have an app / example that does something like you requested?

cactusss commented 1 year ago

With the debug information we can (with the rights script) determine when the next container will be collected, and which one. We can use this information to create an AVD (so Jovink has its device tile, I know creating and maintaining a device for it within your app is not easy) and I can display it on my e-ink device.

Right now I can only show if a container will be collected today, tomorrow, or the day after tomorrow, I would like it to show that next friday the GFT container will be collected. All I need for that is the debug JSON that is already available in the app's settings, but I can't get to that JSON from a HomeyScript or another app. So a flowToken with that JSON would be GR8!

robertraaijmakers commented 1 year ago

Sounds cool, I think putting the debug data in a token shouldn’t be that difficult as the data is already available. Will try to add it somewhere at the end of March probably!

cactusss commented 1 year ago

Nice! Much appreciated.

robertraaijmakers commented 1 year ago

The token is now added in this version: https://homey.app/a/com.trashchecker/test/ (will be published to production soon - probably after easter). I am very curious on how to set-up a tile that shows the next collection type with date 👍