-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #102 from custom-components/develop
Refactoring
- Loading branch information
Showing
18 changed files
with
990 additions
and
640 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,68 @@ | ||
[![hacs_badge](https://img.shields.io/badge/HACS-Default-orange.svg)](https://github.com/custom-components/hacs) | ||
# Installation | ||
|
||
## Installation instructions (general): | ||
|
||
1. Install HACS for Home Assistant | ||
2. Go to Community-Store-Grocy | ||
3. Install Grocy | ||
4. Restart Home Assistant | ||
5. Go to Grocy-Wrench icon-Manage API keys-Add | ||
6. In the HA UI go to "Configuration" -> "Integrations" click "+" and search for "Grocy" | ||
7. Look for the new Grocy sensor in States and use its info | ||
--- | ||
**INFO** | ||
|
||
You have to have the Grocy software already installed, this integration only communicates with an existing installation of Grocy. | ||
|
||
--- | ||
|
||
|
||
## Additional installation instructions for Hass.io users | ||
## <a name="addon"></a>for Grocy add-on | ||
|
||
The configuration is slightly different for users that use Hass.io and the [official Grocy addon](https://github.com/hassio-addons/addon-grocy) from the Hass.io Add-on store. | ||
The configuration is slightly different for those who use the [official Grocy addon](https://github.com/hassio-addons/addon-grocy) from the add-on store. | ||
|
||
1. If you haven't already done so, install Grocy from the Add-on store | ||
2. In the 'Network' section of the add-on config, input 9192 in the host field [screenshot](https://github.com/custom-components/grocy/raw/master/grocy-addon-config.png). Save your changes and restart the add-on. | ||
3. Install HACS for Home Assistant | ||
4. Go to Grocy > Wrench icon > Manage API keys > Add | ||
5. Copy resulting API key | ||
1. If you haven't already done so, install Grocy from the add-on store | ||
2. In the 'Configuration' section of the add-on config, input `9192` in the host field - see [screenshot](#screenshot). Save your changes and restart the add-on. | ||
3. Install [HACS](https://hacs.xyz/) | ||
4. Go to Community > Store > Grocy | ||
5. Install the Grocy integration component | ||
5. Install the Grocy integration | ||
6. Restart Home Assistant | ||
7. Go to Grocy > Wrench icon > Manage API keys > Add | ||
8. In the HA UI go to "Configuration" -> "Integrations" click "+" and search for "Grocy" | ||
9. Look for the new Grocy sensor in States and use its info | ||
8. Copy resulting API key | ||
9. In the HA UI go to "Configuration" -> "Integrations" click "+" and search for "Grocy" | ||
10. You will now have a new integration for Grocy. Some or all of the entities might be disabled from the start. | ||
|
||
|
||
## <a name="external"></a> for existing external Grocy install | ||
|
||
1. Install [HACS](https://hacs.xyz/) | ||
2. Go to Community > Store > Grocy | ||
3. Install the Grocy integration | ||
4. Restart Home Assistant | ||
5. Go to Grocy > Wrench icon > Manage API keys > Add | ||
6. Copy resulting API key | ||
7. In the HA UI go to "Configuration" -> "Integrations" click "+" and search for "Grocy" | ||
8. You will now have a new integration for Grocy. Some or all of the entities might be disabled from the start. | ||
|
||
(This component will not currently work if you have an install where you don't use a port, due to [this issue](https://github.com/SebRut/pygrocy/issues/121).) | ||
|
||
|
||
|
||
# Entities | ||
Some or all of the entities might be disabled from the start. | ||
You get a sensor each for chores, meal plan, shopping list, stock and tasks. | ||
You get a binary sensor each for expired, expiring and missing products. | ||
|
||
|
||
# Troubleshooting | ||
|
||
If you have problems with the integration you can add debug prints to the log. | ||
|
||
```yaml | ||
logger: | ||
default: info | ||
logs: | ||
pygrocy: debug | ||
custom_components.grocy: debug | ||
``` | ||
If you are having issues and want to report a problem, always start with making sure that you're on the latest version of the integration, Grocy and Home Assistant. | ||
You can ask for help [in the forums](https://community.home-assistant.io/t/grocy-custom-component-and-card-s/218978), or [make an issue with all of the relevant information here](https://github.com/custom-components/grocy/issues/new?assignees=&labels=&template=bug_report.md&title=). | ||
# <a name="screenshot"></a>Add-on port configuration | ||
![alt text](grocy-addon-config.png) |
Oops, something went wrong.