pippyn / Home-Assistant-Sensor-Afvalbeheer

Provides Home Assistant sensors for multiple Dutch and Belgium waste collectors
Apache License 2.0
287 stars 87 forks source link

Can't add waste type #449

Closed HayoV closed 9 months ago

HayoV commented 9 months ago

I'm new here and not sure how to post my chalange.

In my HA Afvalwijzer is configured for Spaarnelanden(Haarlem). It works for sensors GFT, Today and Tomorow.

In notification I have: Afvalwijzer spaarnelanden Available waste types: de recyclewagen, gft, papier-pmd

When adding papier_pmd I get an error; Invalid entity ID at position 0: sensor.spaarnelanden_papier-pmd

configuration.yaml:

afvalbeheer:
  wastecollector: Spaarnelanden
  resources:
    - gft
    - papier-pmd
  postcode: XXXXXX
  streetnumber: XXX
  upcomingsensor: 1
  printwastetypes: 1
  dateformat: '%d-%m'
  dateonly: 0
  dayofweek: 1
  dateobject: 0
  name: ''
  nameprefix: 1
  builtinicons: 1
  dutch: 1

Lovelace:

- type: entities
          entities:
            - entity: sensor.spaarnelanden_papier-pmd
            - entity: sensor.spaarnelanden_gft
            - entity: sensor.spaarnelanden_vandaag
            - entity: sensor.spaarnelanden_morgen
          title: Spaarnelanden

Any suggestions?

pippyn commented 9 months ago

Do you have an address for me to test with?

HayoV commented 9 months ago

2014CL/398


Van: Pippyn @.> Verzonden: woensdag 24 januari 2024 10:04 Aan: pippyn/Home-Assistant-Sensor-Afvalbeheer @.> CC: HayoV @.>; Author @.> Onderwerp: Re: [pippyn/Home-Assistant-Sensor-Afvalbeheer] Can't add waste type (Issue #449)

Do you have an address for me to test with?

— Reply to this email directly, view it on GitHubhttps://github.com/pippyn/Home-Assistant-Sensor-Afvalbeheer/issues/449#issuecomment-1907684750, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXI45O2LVXXHJ2TXQTMP7L3YQDFBRAVCNFSM6AAAAABCHVR672VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBXGY4DINZVGA. You are receiving this because you authored the thread.Message ID: @.***>

pippyn commented 9 months ago

Your config is working fine for me, do you have any errors in your log? image

HayoV commented 9 months ago

Just did an update of Afvalbeheer to v5.2.17 and a full restart of HA. In the log it gives 3 warning, no errors .

Scherm­afbeelding 2024-01-24 om 22 23 23

HayoV commented 9 months ago

Changing order only changes the position of the invalid entity ID from 0 to 1

Scherm­afbeelding 2024-01-24 om 22 29 06

pippyn commented 9 months ago

Those warnings are not from this sensor. Have you added the correct sensors to your lovelace card? Can you find the entities in your entities registry?

HayoV commented 9 months ago

Thanx for the help, I discoverd my error. sensor.spaarnelanden_papier_pmd instead of sensor.spaarnelanden_papier-pmd ;-/