Garbage pickup date (mijnafvalwijzer.nl) custom_component

Looks like you can easily change the name of the entity!

Anything with a unique_id in yaml can be edited in the Ui.

Thatā€™s why there are no names in the yaml I shared (sometimes only for first addition)

Do we getting somewhere? :wink:

image

Still one thing, what does the ā€œsaver_offlineā€ mean/do?

that notifies if there is an issue with the integration connecting to the resource

and before you ask, I have move this to the UI helpers too:


# in UI Helpers Template
#   - binary_sensor:
#
#       - unique_id: afval_notificatie
#         state: >
#           {{is_state('input_boolean.afvalwijzer_vandaag_notificatie','on') or
#             is_state('input_boolean.afvalwijzer_morgen_notificatie','on')}}
#
#       - unique_id: saver_offline
#         state: >
#           {{not has_value('sensor.afvalwijzer_vandaag')}}
#         device_class: problem

Slowly but surely, everything is falling into place, and Iā€™m getting more and more things working. Now, Iā€™m struggling with the notifications. Could it be that Iā€™m missing the ā€˜script.intercom_messageā€™ script? I canā€™t seem to find this script anywhere.

Cheers H.

A yes, that is in another packageā€¦ I hope you understand what itā€™s doing. Completely copying someone elseā€™s config isnā€™t the best way to start understanding how it all works, but here you go:

  intercom_message:
    mode: restart
    sequence:
      - condition: state
        entity_id: input_boolean.announce_intercom
        state: 'on'
      - condition: >
          {{has_value(states('sensor.intercom'))}}
      - <<: *intercom_volume
      - service: tts.cloud_say #tts.google_say
        data:
          <<: *main_tts
          message: >
            {% set language = states('input_select.intercom_language') %}
            {{message_nl if language == 'Nl' else message_en}}

nevermind the comments, they are take out of production, (but uncommenting them immediately kicks them to life againā€¦)
Ive taken out the commented bits, to make it a bit clearer

the yaml anchors are inserted from another script, which is declared above this script.

and goes like:

  intercom_text_message:
    mode: queued
    sequence:
      - condition: state
        entity_id: input_boolean.announce_intercom
        state: 'on'
      - condition: >
          {{has_value(states('sensor.intercom'))}}
      - <<: &intercom_volume
          service: media_player.volume_set
          data:
            entity_id: >
              {{states('sensor.intercom')}}
            volume_level: >
              {{states('input_number.intercom_volume')}}
      - service: tts.cloud_say #tts.google_say
        data:
          <<: &main_tts
            cache: false
            language: >
              {{states('sensor.tts_language')}}
            options:
              gender: >
                {{states('input_select.tts_gender')|lower}}
            entity_id: >
              {{states('sensor.intercom')}}
          message: >
            {{states('input_select.intercom_message')}}

ofc and like before, you need all of the entities in those scripts, and some are in the UI (the helpers). Important thing here is that entity_id in the cloud_say service resolves to a factual (list of ) entity_idā€™s. I have that setup elsewhere, but please start with a single entity_id that your hard code in this service.

In fact, you should not copy this at all, and start figuring out the tts services yourself, using your own hardware and conditions (if any), and not copy all of my templated fields, as that is probably beyond your requirements currently.

Again, please open another topic, because this has now way passed the off-topic boundaries for this thread repeatedly. Besides, there are many many related posts on scripts/tts and passing variable to scripts (thatā€™s what this does)

Thanks, @Mariusthvdb. I will give it a try. I hope this is not out of my league! Thanks anyway!

Herman F.

Did you find a solution?

@efleming Hi I know this post is old but I would like to use the bin images if you have a link for them please

Here you go. This are the images I use.

Processing: Garbagetype Images.zipā€¦
best_tas
geen
geen2
gft
glas
kliko_geen
groene_bak
next
papier
plastic
plastic
kliko_geen
snoeiafval

1 Like

Hi, struggling with this for months now. How did you get the rest/gft image split up like this?

Looking forward to hear you!

Herman F.

Hi @19roland70 ,

Did you get the two garbage pick-ups in one day working?

Look forward to hear from you,

Cheers Herman.

No I canā€™t realize this

Hi Frank,

I think I canā€™t avoid creating custom images for the collection of multiple types of waste on the same day. However, I canā€™t seem to split the different images as nicely as you did. For example this one;

gft_100

Could you please let me know how I can easily do it myself? Or may I provide you with the images for you to split them for us? For now, it appears that I only need two variations, namely ā€œRestafval/Papierā€ and ā€œGFT/Papier.ā€

Looking forward to your response.

Best regards,
Herman

Hi @TheFes and @petro,

@Mariusthvdb asked me to do some modifications to the afvalwijzer component Iā€™m maintaining.However, I`m not sure what to do, so he asked met to reach out to you. Could you have a look and perhaps point me in the right direction? Thanks!

Hmm, somehow I donā€™t receive anything for this topic since a long time (I just noticed :smile:). Iā€™ve updated my profile so I can actively help out again when I receive a notification :+1:

1 Like

Hi @xirixiz,

I replied on GitHub. Just not sure if my comment belongs there. Apologies if it doesnā€™t.

Best wishes for 2024!

1 Like

@hermanf72 Donā€™t worry, you posted it at the right place! I`ll have a look later today or tomorrow.

I just noticed that you re-used an open issue. But since this is a ā€œnewā€ topic, it was better to create a new issue:

Issues Ā· xirixiz/homeassistant-afvalwijzer Ā· GitHub ā†’ Top right ā€œNew issueā€.
For now itā€™s fine, but keep this in mind for the future.

Best wishes for 2024.

2 Likes

Thanks @xirixiz, will be very appreciated. If you need some code please let me know.

Apologies for late reply, but did you manage to solve it yourself in the meantime? If not then I will do it somewhere coming week.

EDIT: here you go:

1 Like