Custom components update issue

Hi all

do I need to do any configuration to get custom_componets to work ?

I have components that’s don’t update it self. It updates only if restart the HA server.
This is my first CC. https://github.com/JohNan/home-assistant-pollenkoll

so I don’t know if the addon is broken of I have missed a config.
according to the config the update interval is set to 4. “scan_interval: 4”

My setup are Hassbian 0.91.3

/Niclas

yes

have you followed the instructions on that github page?

without knowing exactly what you have/haven’t done its hard to know what the problem is.

Hi

yes I have.
All I have done so far is create the custom folder structure copied in the script and made the config (default values) in the file according to the GitHub page, the sensors shows up in HA and show their values in the GUI.
But it will not update. only time it updates its values is if I do a restart. so after 3 days the values are out of date.

I get 2 warnings

“Setup of platform pollenniva is taking over 10 seconds.
April 13, 2019, 10:07 PM util/async_.py (WARNING)”

“You are using a custom component for pollenniva.sensor which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
April 13, 2019, 10:07 PM loader.py (WARNING)”

So my actual Q. is do I need to do anything pre config of HA to get custom_components to work

except to copy in the scripts I want to use ?

Best Regards
Niclas

try adding the following to your sensor: configuration section:

- platform: time_date
  display_options:
    - time
    - date
    - date_time
    - time_date

then in the configuration for the component above add this:

entity_id: sensor.time

so if you are using the config exactly as it’s written in the github:

  - platform: pollenniva
    scan_interval: 4 # (default, optional)
    entity_id: sensor.time
    state_as_string: false # (default, optional, show states as strings as per STATES above)
    sensors:
      - city: Stockholm
        days_to_track: 3 # (0-4, optional)
        allergens:
          - Gräs
          - Hassel
      - city: Östersund
        allergens:
          - Hassel

if everything else is working correctly that will force the sensor to update every minute.