heyajohnny / afvalinfo

Provides Home Assistant sensors for multiple Dutch waste collectors. The idea is to add more cities and features in the future.
GNU General Public License v3.0
102 stars 22 forks source link

No data when DSMR is enabled #94

Closed EvertJob closed 4 years ago

EvertJob commented 4 years ago

Hi,

I'm having a strange issue.

This is my configuration.yaml file:

sensor:                       
    - platform: afvalinfo     
      resources:              
        - gft            
        - papier         
        - pbd        
        - trash_type_today
        - trash_type_tomorrow
      city: almere           
      postcode: f       
      streetnumber: f       
      dateformat: '%d-%m-%Y'
      locale: 'nl'           
      timespanindays: 365    

sensor:                  
    - platform: dsmr_reader 

binary_sensor:              
  - platform: meteoalarm   
    country: 'NL'        
    province: 'Flevoland'

With this configuration I can see DSMR data and the data from metroalarm but no data from the afvalinfo plugin. When I remove the DSMR Reader the data from afvalinfo is working as expected.

It doesn't matter which combination is used, as long DSMR and Afvalinfo are in the same configuration one of the two stops working.

I cannot figure out what the issue is, the logs are not giving any data about it so I'm going dark in here.

Are the more people with the same issue, or people who got it working and are willing to share that part of there config?

heyajohnny commented 4 years ago

I can't even get 'dsmr_reader' to work :( 2020-05-31 09:07:29 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of dsmr_reader. Setup failed for dependencies: mqtt

Maybe it has something to do with https://github.com/home-assistant/core/issues/35879

EvertJob commented 4 years ago

Did you enable MQTT?

heyajohnny commented 4 years ago

Did you enable MQTT?

Nope, I didn't. After enabling it, it seems to work just fine... On the other hand, I don't have a MQTT broker, I just enabled mqtt in the configuration.yaml

image

I'm sorry, but I can't help you any further. You can keep this issue open if you like. Maybe someone else can help you out.

EvertJob commented 4 years ago

You are not receiving any data, correct?

Maybe I need to open an issue at Home-Assistant. For now I started a new Docker Container for this plug-in only. It rocks!

heyajohnny commented 4 years ago

You are not receiving any data, correct?

I don't receive any DSMR data, but that's correct, since I don't have any any DSMR compatible device / mqtt broker. The behaviour is as expected with this empty dsmr_reader at my side. So, basically what I'm saying is that I'm not the guy who can test it further than this :(

EvertJob commented 4 years ago

Ahh, oke.

Not a very big issue as said before, just started a new container for this plug-in only. Got an Telegram message true Node-Red :)

yniezink commented 4 years ago

Hi, @EvertJob your HA config is wrong.

sensor:                       
    - platform: afvalinfo     
      resources:              
        - gft            
        - papier         
        - pbd        
        - trash_type_today
        - trash_type_tomorrow
      city: almere           
      postcode: f       
      streetnumber: f       
      dateformat: '%d-%m-%Y'
      locale: 'nl'           
      timespanindays: 365                 
    - platform: dsmr_reader

Try it like above. You are only allowed to setup "sensor" once. You do it twice. Maybe HA then will only use the last one you do

EvertJob commented 4 years ago

@yniezink just tried it and it doesn’t work. Strange thing is that @heyajohnny tried it and at his place it is working fine.

yniezink commented 4 years ago

@EvertJob Well since the new version you have to use location instead of city. Did you change that?

I have dmsr_reader and I use afvalinfo and both are working great.

sensor:                       
  - platform: afvalinfo     
    resources:              
      - gft            
      - papier         
      - pbd        
      - trash_type_today
      - trash_type_tomorrow
    location: almere           
    postcode: f       
    streetnumber: f       
    dateformat: '%d-%m-%Y'
    locale: 'nl'           
    timespanindays: 365                 
  - platform: dsmr_reader
EvertJob commented 4 years ago

@EvertJob Well since the new version you have to use location instead of city. Did you change that?

I have dmsr_reader and I use afvalinfo and both are working great.

sensor:                       
  - platform: afvalinfo     
    resources:              
      - gft            
      - papier         
      - pbd        
      - trash_type_today
      - trash_type_tomorrow
    location: almere           
    postcode: f       
    streetnumber: f       
    dateformat: '%d-%m-%Y'
    locale: 'nl'           
    timespanindays: 365                 
  - platform: dsmr_reader

Just tried, still no data... :(

EvertJob commented 4 years ago

Fixed in 0.111.4... Don't know what causes the issue.

heyajohnny commented 4 years ago

Good to hear it's fixed! :)