Installation#
HACS (recommended)#
This component is available in HACS (Home Assistant Community Store).
- Install HACS if you don't have it already
- Open HACS in Home Assistant
- Go to "Integrations" section
- Click button with "+" icon
- Search for "Elasticsearch"
Manual#
- Download the latest release from the releases page
- Extract the contents of the zip file
- Copy the
custom_componentsdirectory to your$HASS_CONFIG/custom_componentsdirectory, where$HASS_CONFIGis the location on your machine where Home-Assistant lives. Example:/home/pi/.homeassistantand/home/pi/.homeassistant/custom_components. You may have to create thecustom_componentsdirectory yourself.
You must restart Home Assistant after installation.
Next: Configuration
Removing the integration#
- From the
Integrationsconfiguration menu, selectElasticsearch, then delete each of its entries. - If you installed with HACS, remove
Elasticsearchfrom HACS. Otherwise, delete thecustom_components/elasticsearchdirectory. - Restart Home Assistant.
Home Assistant stops publishing at this point, but nothing is removed from Elasticsearch. Your existing data stays where it is, along with the following:
- The
metrics-homeassistant.*data streams, which hold your data - The
metrics-homeassistantindex template - Any API key or user you created for this integration
If you no longer need them, you can delete the data streams and then the index template, in that order, from Dev Tools in Kibana:
Warning
This permanently deletes all of the data published by Home Assistant.
DELETE _data_stream/metrics-homeassistant.*
DELETE _index_template/metrics-homeassistant
Then invalidate the API key, which you can do from Stack Management > API keys in Kibana.