gieljnssns / buienalarm-sensor-homeassistant

Buienalarm custom_component for Home-Assistant
MIT License
36 stars 6 forks source link

Buienalarm integration stopped working #18

Open JDunnio opened 3 years ago

JDunnio commented 3 years ago

2021-03-02 21_04_21-Ontwikkelhulpmiddelen - Home Assistant — Mozilla Firefox Describe the bug The integration stopped giving new forecasts.

Only sensor "sensor.buienalarm_temperature" gives a value of 8, other are set to 0.

Any errors No not that i can see.

error here


**Config yaml**
sensor:
  - platform: buienalarm
    timeframe: 15
    name: buienalarm
    monitored_conditions:
      - temperature
      - precipitation
      - precipitation_forecast_average
      - precipitation_forecast_total
      - next_rain_forecast

===
configuration.yaml

logger:
  default: critical
  logs:
    # log level for HA core
    homeassistant.core: fatal

    # log level for MQTT integration
    homeassistant.components.mqtt: warning

    # log level for all python scripts
    homeassistant.components.python_script: warning

    # individual log level for this python script
    homeassistant.components.python_script.my_new_script.py: debug

    # log level for SmartThings lights
    homeassistant.components.smartthings.light: info

    # log level for a custom component
    custom_components.my_integration: debug

    # log level for the `aiohttp` Python package
    aiohttp: error

    # log level for both 'glances_api' and 'glances' integration
    homeassistant.components.glances: fatal
    glances_api: fatal

Additional context After a crash of my HA (Core/Container) I needed multiple reboots to get everything going again. I got everything up and running again. The only thing which is not working is the buienalarm-integrations which i'm using in all kinds of automations and alerts.

Any clue how i can debug this? I've already removed the integration from HA and disk and reinstalled it through HACS. Configuring it with a different name for the sensors also did not work.

Is it possible my IP is blocked by BA? Anywhere i can see the log-files for an integration?

Thanks in advance and for this great integration!!

JDunnio commented 3 years ago

Op dezelfde host een tweede container opgespind, HACS geinstalleerd, buienalarm.

==

logger:
  default: critical
  logs:
    # log level for HA core
    homeassistant.core: debug
    # log level for all python scripts
    homeassistant.components.python_script: debug
    # log level for a custom component buienalarm
    custom_components.buienalarm: debug

==

Op loglevel debug krijg ik onderstaande meldingen:

2021-03-03 14:44:06 DEBUG (SyncWorker_1) [custom_components.buienalarm.sensor] <buienalarm.pybuienalarm.Buienalarm object at 0x7f04cbe22b80>
2021-03-03 14:44:06 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=ssdp>
2021-03-03 14:44:06 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.buienalarm_temperature, old_state=None, new_state=<state sensor.buienalarm_temperature=9; attribution=Data provided by Buienalarm B.V., unit_of_measurement=°C, friendly_name=buienalarm Temperature, icon=mdi:thermometer @ 2021-03-03T14:44:06.672184+01:00>>
2021-03-03 14:44:06 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.buienalarm_precipitation, old_state=None, new_state=<state sensor.buienalarm_precipitation=0.0; attribution=Data provided by Buienalarm B.V., unit_of_measurement=mm/h, friendly_name=buienalarm Precipitation, icon=mdi:weather-pouring @ 2021-03-03T14:44:06.672510+01:00>>
2021-03-03 14:44:06 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.buienalarm_precipitation_forecast_average, old_state=None, new_state=<state sensor.buienalarm_precipitation_forecast_average=0.0; attribution=Data provided by Buienalarm B.V., timeframe=15, unit_of_measurement=mm/h, friendly_name=buienalarm Precipitation forecast average, icon=mdi:weather-pouring @ 2021-03-03T14:44:06.672761+01:00>>
2021-03-03 14:44:06 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.buienalarm_precipitation_forecast_total, old_state=None, new_state=<state sensor.buienalarm_precipitation_forecast_total=0.0; attribution=Data provided by Buienalarm B.V., timeframe=15, unit_of_measurement=mm, friendly_name=buienalarm Precipitation forecast total, icon=mdi:weather-pouring @ 2021-03-03T14:44:06.673004+01:00>>
2021-03-03 14:44:06 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.buienalarm_next_rain_forecast, old_state=None, new_state=<state sensor.buienalarm_next_rain_forecast=unknown; attribution=Data provided by Buienalarm B.V., timeframe=15, unit_of_measurement=minutes, friendly_name=buienalarm Next rain forecast, icon=mdi:weather-pouring @ 2021-03-03T14:44:06.673251+01:00>>

==

2021-03-03 14:45:06 DEBUG (SyncWorker_1) [custom_components.buienalarm.sensor] <buienalarm.pybuienalarm.Buienalarm object at 0x7f04cd908ee0>
2021-03-03 14:46:37 DEBUG (SyncWorker_0) [custom_components.buienalarm.sensor] <buienalarm.pybuienalarm.Buienalarm object at 0x7f04cbe73d60>
JDunnio commented 3 years ago

Binnen de HA-container: bash-5.0# /usr/local/bin/python3 -V Python 3.8.7

== Buiten de HA-container: /usr/bin/python3 -V Python 3.7.3

gieljnssns commented 3 years ago

Ik denk dat dat met deze PR te maken heeft https://github.com/gieljnssns/buienalarm-sensor-homeassistant/pull/15/files

JDunnio commented 3 years ago

Ik denk dat dat met deze PR te maken heeft https://github.com/gieljnssns/buienalarm-sensor-homeassistant/pull/15/files

Ja lijkt erop dat dit het geval is. De afgelopen weken zoveel regen gehad dat er altijd een melding stond. Met het mooie weer kwam deze melding ineens :)

Vandaag regent het en staan er weer waardes. Extra filter op unknown gemaakt voor mijn alerts met openstaande ramen.

Bedankt voor je reactie en alle moeite die je hierin stopt! 👍 2021-03-08 09_10_45-Overzicht - Home Assistant and 3 more pages - Personal - Microsoft​ Edge