pnbruckner / ha-sun2

Home Assistant Sun2 Sensor
The Unlicense
230 stars 22 forks source link

no sonsor is available after installation an setup #85

Closed Zackzarack1 closed 1 year ago

Zackzarack1 commented 1 year ago

Hi, I tried to use the integration. I added and installed the extension via hacs as custom. The files are in the correct directory. I restarted Homeassistand and added the entries in my configuration.yaml and restarted again. But I can't find the sensor. My homeassistant version is: 2023.4.5 Here is my configuration:

template: 
  - sensor:
    - platform: sun2
      entity_namespace: sun2Test
      monitored_conditions:
        - sunrise
        - sunset
        - sun_phase

Am I doing something wrong? Or can you send me an example configuration?

Best, Sascha

pnbruckner commented 1 year ago

The configuration does not go under template. And entity_namespace is not required (although you can use it if you want.) Try:

sensor:
  - platform: sun2
    monitored_conditions:
      - sunrise
      - sunset
      - sun_phase
Zackzarack1 commented 1 year ago

I paste the configuration example in the configuration.yaml to the top layer not unter "template". After Restart I can't find any information. There is no entity with sun2. For your information: I used homeassistant in a docker container.

Zackzarack1 commented 1 year ago

Hi you can close this issues. In newer versions of homeassistant it is possible to do a fast reload of the yaml configuration files. For this integrations this doesn't work. A full reload ist necessary. Maye you can make a note in the installation an configuration information.

pnbruckner commented 1 year ago

In newer versions of homeassistant it is possible to do a fast reload of the yaml configuration files.

Only for integrations you see in the list below "ALL YAML CONFIGURATION". Not all integrations support dynamic reloading (even many built-in ones.)

For this integrations this doesn't work. A full reload ist necessary.

Correct, this integration does not support reloading. A restart of HA is required (which confused me, because you had said you did that earlier: "After Restart I can't find any information.")

Maye you can make a note in the installation an configuration information.

Not necessary since not all integrations support dynamic reloading. You can't assume an integration does, unless you see it listed as mentioned above.