Home-Assistant-Sensor-Afvalbeheer
Home-Assistant-Sensor-Afvalbeheer copied to clipboard
Deafvalapp api
Deadvalapp api verandert de waarde van morgen en vandaag meerdere keren per dag. Doordat dit steeds gebeurt, kun je de waarde hiervan niet meer afvangen. Zo was het eerst 'pmd, gft' en nu ineens 'GFT, PMD'. Vorige week was het 'Restafval, Gft' en enkele uren later 'Restafval, GFT' De volgorde en het hoofdletter gebruik wijzigt steeds.
What is your config?
afvalbeheer:
wastecollector: DeAfvalApp
resources:
- restafval
- gft
- pmd
postcode: XXXX99 {this is my actual postalcode}
streetnumber: 99 {this is my actual home number}
upcomingsensor: 1
dateformat: "%d-%m-%Y"
dateonly: 1
alwaysshowday: 0
printwastetypes: 0
dateobject: 0
name: ""
nameprefix: 1
builtinicons: 0
disableicons: 0
dutch: 1
Change your resources to the capitalization you want to make it consistent. I would recommend this:
afvalbeheer:
wastecollector: DeAfvalApp
resources:
- Restafval
- GFT
- PMD
postcode: XXXX99 {this is my actual postalcode}
streetnumber: 99 {this is my actual home number}
upcomingsensor: 1
dateformat: "%d-%m-%Y"
dateonly: 1
alwaysshowday: 0
printwastetypes: 0
dateobject: 0
name: ""
nameprefix: 1
builtinicons: 0
disableicons: 0
dutch: 1
Warming: This could change the unique entity id's in some cases
Would this prevent GFT showing up as gft. Might it be better to change Restafval to RESTAFVAL then too?
Yes GFT will be displayed correctly and no; capitalize the fractions as you would write them
But having gft changed to GFT. If I set it to Restafval, it might change to RESTAFVAL by the api and break it again.
No it won't. The API doesn't capitalize any fractions. The sensor does.
That is weird since I didn't change gft to GFT and the sensor.status became GFT which broke my dashboard view.
Because the sensor does capitalize the fractions in places it can.
But I am sure it is something new because it didn’t always do that.
Yes version v5.3.1
That explains it :)