intergration in Home assistant
1. All integration (components)
https://www.home-assistant.io/integrations/
2. Main functions of integration (component)
Realize the logic of some state generation and change, and realize some services that can be called
3. Configuration of integration (component)
Some can only be in configuration "configuration.yaml" file;
Some can only be configured in the front-end interface;
Some can be configured in both places
Configuring COVID-19 data
https://www.home-assistant.io/integrations/coronavirus/
Configure the moon
# Example configuration. yaml entry
sensor:
- platform: moon
https://www.home-assistant.io/integrations/moon/
Set location of home assistant
how to find out your house latitude and longitude? https://www.openstreetmap.org/
zone:
- name: home
latitude: 30.29595
longitude: 120.06699
icon: mdi:home
radius: 100
Configure the sun
Integration and Add-on
Integration is part of home assistant, but Add-on is not
Home assistant loads the integration program through configuration, and home assistant supervisor manages the installation / configuration / startup and shutdown of Add-on