Prettified Code!

This commit is contained in:
egguy
2023-08-14 13:48:52 +00:00
committed by GitHub Action
parent e4efa908dd
commit 1dedad7cfa
12 changed files with 203 additions and 218 deletions
+19 -19
View File
@@ -1,20 +1,20 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"rebaseWhen": "behind-base-branch",
"dependencyDashboard": true,
"labels": ["dependencies", "no-stale"],
"commitMessagePrefix": "⬆️",
"commitMessageTopic": "{{depName}}",
"packageRules": [
{
"matchManagers": ["github-actions"],
"addLabels": ["github_actions"],
"rangeStrategy": "pin"
},
{
"matchManagers": ["github-actions"],
"matchUpdateTypes": ["minor", "patch"],
"automerge": true
}
]
}
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"rebaseWhen": "behind-base-branch",
"dependencyDashboard": true,
"labels": ["dependencies", "no-stale"],
"commitMessagePrefix": "⬆️",
"commitMessageTopic": "{{depName}}",
"packageRules": [
{
"matchManagers": ["github-actions"],
"addLabels": ["github_actions"],
"rangeStrategy": "pin"
},
{
"matchManagers": ["github-actions"],
"matchUpdateTypes": ["minor", "patch"],
"automerge": true
}
]
}
+23 -21
View File
@@ -11,29 +11,31 @@ This addon allow you to have all the entities automatically created.
## Installation
1. If you don't have an MQTT broker yet; in Home Assistant go to **Settings → Add-ons → Add-on store** and install the **Mosquitto broker** addon.
1. Go back to the **Add-on store**, click **⋮ → Repositories**, fill in</br> `https://github.com/egguy/grott-home-assistant-add-on` and click **Add → Close** or click the **Add repository** button below, click **Add → Close** (You might need to enter the **internal IP address** of your Home Assistant instance first).
[![Open your Home Assistant instance and show the add add-on repository dialog with a specific repository URL pre-filled.](https://my.home-assistant.io/badges/supervisor_add_addon_repository.svg)](https://my.home-assistant.io/redirect/supervisor_add_addon_repository/?repository_url=https%3A%2F%2Fgithub.com%2Fegguy%2Fgrott-home-assistant-add-on)
3. The repository includes two add-ons:
- **grott** is the stable release that tracks the released versions of grott HA plugin.
- **grott Edge** tracks the `dev` branch of grott HA plugin such that you can install the edge version if there are features or fixes in the grott HA dev branch that are not yet released. (**recommended for most users**)
4. Click on the addon and press **Install** and wait till the addon is installed.
5. Click on **Configuration**
- If you are **not** using the Mosquitto broker addon fill in your MQTT details (leave empty when using the Mosquitto broker addon). Format is e.g.: <br>
1. Go back to the **Add-on store**, click **⋮ → Repositories**, fill in</br> `https://github.com/egguy/grott-home-assistant-add-on` and click **Add → Close** or click the **Add repository** button below, click **Add → Close** (You might need to enter the **internal IP address** of your Home Assistant instance first).
[![Open your Home Assistant instance and show the add add-on repository dialog with a specific repository URL pre-filled.](https://my.home-assistant.io/badges/supervisor_add_addon_repository.svg)](https://my.home-assistant.io/redirect/supervisor_add_addon_repository/?repository_url=https%3A%2F%2Fgithub.com%2Fegguy%2Fgrott-home-assistant-add-on)
1. The repository includes two add-ons:
- **grott** is the stable release that tracks the released versions of grott HA plugin.
- **grott Edge** tracks the `dev` branch of grott HA plugin such that you can install the edge version if there are features or fixes in the grott HA dev branch that are not yet released. (**recommended for most users**)
1. Click on the addon and press **Install** and wait till the addon is installed.
1. Click on **Configuration**
```yaml
host: <IP>
port: 1883
username: my_user
password: my_password
```
- If you are **not** using the Mosquitto broker addon fill in your MQTT details (leave empty when using the Mosquitto broker addon). Format is e.g.: <br>
- Click **Save**
- **Tip:** it is possible to refer to variables in the Home Assistant `secrets.yaml` file by using e.g. `password: '!secret mqtt_pass'`
6. If multiple inverters, please refer on how to configure them on this documentation: <https://github.com/johanmeijer/grott/wiki/Multi-Inverter-support>
7. Start the addon by going to **Info** and click **Start**
8. Configure your data logger using the information contained here: [Rerouting Growatt Wifi TCPIP data via your Grott Server](https://github.com/johanmeijer/grott/wiki/Rerouting-Growatt-Wifi-TCPIP-data-via-your-Grott-Server)
- Use the local IP of your home assistant
- Don't use a DNS, the datalogger can't resolve `homeassistant.local`
```yaml
host: <IP>
port: 1883
username: my_user
password: my_password
```
- Click **Save**
- **Tip:** it is possible to refer to variables in the Home Assistant `secrets.yaml` file by using e.g. `password: '!secret mqtt_pass'`
1. If multiple inverters, please refer on how to configure them on this documentation: <https://github.com/johanmeijer/grott/wiki/Multi-Inverter-support>
1. Start the addon by going to **Info** and click **Start**
1. Configure your data logger using the information contained here: [Rerouting Growatt Wifi TCPIP data via your Grott Server](https://github.com/johanmeijer/grott/wiki/Rerouting-Growatt-Wifi-TCPIP-data-via-your-Grott-Server)
- Use the local IP of your home assistant
- Don't use a DNS, the datalogger can't resolve `homeassistant.local`
## contributors
+1 -2
View File
@@ -14,7 +14,6 @@ To activate this mode, you can disable the HA integration in the configuration a
- data path, now you can edit your configuration in /config/grott/grott.ini
- Allow custom MQTT broker
## 0.6
- Updated the branch used by grott
@@ -31,7 +30,7 @@ To activate this mode, you can disable the HA integration in the configuration a
## 0.2
- Based on grott v2.7.7
- use the current grott_ha.py plugins
- use the current grott_ha.py plugins
- Auto configuration for the MQTT part
## 0.1
+23 -21
View File
@@ -3,26 +3,28 @@
## Installation
1. If you don't have an MQTT broker yet; in Home Assistant go to **Settings → Add-ons → Add-on store** and install the **Mosquitto broker** addon.
1. Go back to the **Add-on store**, click **⋮ → Repositories**, fill in</br> `https://github.com/egguy/grott-home-assistant-add-on` and click **Add → Close** or click the **Add repository** button below, click **Add → Close** (You might need to enter the **internal IP address** of your Home Assistant instance first).
[![Open your Home Assistant instance and show the add add-on repository dialog with a specific repository URL pre-filled.](https://my.home-assistant.io/badges/supervisor_add_addon_repository.svg)](https://my.home-assistant.io/redirect/supervisor_add_addon_repository/?repository_url=https%3A%2F%2Fgithub.com%2Fegguy%2Fgrott-home-assistant-add-on)
3. The repository includes two add-ons:
- **grott** is the stable release that tracks the released versions of grott HA plugin.
- **grott Edge** tracks the `dev` branch of grott HA plugin such that you can install the edge version if there are features or fixes in the grott HA dev branch that are not yet released. (**recommended for most users**)
4. Click on the addon and press **Install** and wait till the addon is installed.
5. Click on **Configuration**
- If you are **not** using the Mosquitto broker addon fill in your MQTT details (leave empty when using the Mosquitto broker addon). Format is e.g.: <br>
1. Go back to the **Add-on store**, click **⋮ → Repositories**, fill in</br> `https://github.com/egguy/grott-home-assistant-add-on` and click **Add → Close** or click the **Add repository** button below, click **Add → Close** (You might need to enter the **internal IP address** of your Home Assistant instance first).
[![Open your Home Assistant instance and show the add add-on repository dialog with a specific repository URL pre-filled.](https://my.home-assistant.io/badges/supervisor_add_addon_repository.svg)](https://my.home-assistant.io/redirect/supervisor_add_addon_repository/?repository_url=https%3A%2F%2Fgithub.com%2Fegguy%2Fgrott-home-assistant-add-on)
1. The repository includes two add-ons:
- **grott** is the stable release that tracks the released versions of grott HA plugin.
- **grott Edge** tracks the `dev` branch of grott HA plugin such that you can install the edge version if there are features or fixes in the grott HA dev branch that are not yet released. (**recommended for most users**)
1. Click on the addon and press **Install** and wait till the addon is installed.
1. Click on **Configuration**
```yaml
host: <IP>
port: 1883
user: my_user
password: my_password
```
- If you are **not** using the Mosquitto broker addon fill in your MQTT details (leave empty when using the Mosquitto broker addon). Format is e.g.: <br>
- Click **Save**
- **Tip:** it is possible to refer to variables in the Home Assistant `secrets.yaml` file by using e.g. `password: '!secret mqtt_pass'`
6. If multiple inverters, please refer on how to configure them on this documentation: <https://github.com/johanmeijer/grott/wiki/Multi-Inverter-support>
7. Start the addon by going to **Info** and click **Start**
8. Configure your data logger using the information contained here: [Rerouting Growatt Wifi TCPIP data via your Grott Server](https://github.com/johanmeijer/grott/wiki/Rerouting-Growatt-Wifi-TCPIP-data-via-your-Grott-Server)
- Use the local IP of your home assistant
- Don't use a DNS, the datalogger can't resolve `homeassistant.local`
```yaml
host: <IP>
port: 1883
user: my_user
password: my_password
```
- Click **Save**
- **Tip:** it is possible to refer to variables in the Home Assistant `secrets.yaml` file by using e.g. `password: '!secret mqtt_pass'`
1. If multiple inverters, please refer on how to configure them on this documentation: <https://github.com/johanmeijer/grott/wiki/Multi-Inverter-support>
1. Start the addon by going to **Info** and click **Start**
1. Configure your data logger using the information contained here: [Rerouting Growatt Wifi TCPIP data via your Grott Server](https://github.com/johanmeijer/grott/wiki/Rerouting-Growatt-Wifi-TCPIP-data-via-your-Grott-Server)
- Use the local IP of your home assistant
- Don't use a DNS, the datalogger can't resolve `homeassistant.local`
-1
View File
@@ -1 +0,0 @@
+4 -14
View File
@@ -4,22 +4,12 @@
"slug": "grott-current",
"description": "The Growatt inverter monitor with current HA plugin integrated",
"url": "https://github.com/egguy/grott-home-assistant-add-on/tree/main/grott-current",
"arch": [
"armhf",
"armv7",
"aarch64",
"amd64",
"i386"
],
"arch": ["armhf", "armv7", "aarch64", "amd64", "i386"],
"startup": "application",
"services": [
"mqtt:need"
],
"services": ["mqtt:need"],
"init": false,
"boot": "auto",
"map": [
"config:rw"
],
"map": ["config:rw"],
"ports": {
"5279/tcp": 5279
},
@@ -96,4 +86,4 @@
"data_path": "str"
},
"image": "egguy/addon-{arch}-grott-ha-addon-edge"
}
}
+1 -1
View File
@@ -23,4 +23,4 @@ configuration:
description: "Enable the Home Assistant plugin. This will send the data to Home Assistant via the grott HA plugin. Can be disabled if you are using the grott integration."
network:
5279/TCP: This is the port used by grott to receive datalogger information.
5279/TCP: This is the port used by grott to receive datalogger information.
+25 -25
View File
@@ -1,25 +1,25 @@
# Changelog
## 0.6
- Updated the branch used by grott
## 0.5
- Change to use pip3 with the newest addon image.
## 0.3
- Add translations
- Moved the ginvtypemap to the top configuration
## 0.2
- Based on grott v2.7.7
- use the current grott_ha.py plugins
- Auto configuration for the MQTT part
## 0.1
- Initial version
- Based on grott v2.7.6
# Changelog
## 0.6
- Updated the branch used by grott
## 0.5
- Change to use pip3 with the newest addon image.
## 0.3
- Add translations
- Moved the ginvtypemap to the top configuration
## 0.2
- Based on grott v2.7.7
- use the current grott_ha.py plugins
- Auto configuration for the MQTT part
## 0.1
- Initial version
- Based on grott v2.7.6
+32 -30
View File
@@ -1,30 +1,32 @@
# Home Assistant Add-on: Grott - The Growatt inverter monitor
## Installation
Follow these steps to get the add-on installed on your system:
1. Navigate in your Home Assistant frontend to **Supervisor** -> **Add-on Store**.
2. Find the "Grott" add-on and click it.
3. Click on the "INSTALL" button.
## How to use
The add-on has a couple of options available. To get the add-on running:
1. Start the add-on.
2. Have some patience and wait a couple of minutes.
3. Check the add-on log output to see the result.
## Add-on configuration:
All options from grott are available as options in this add-on. They need to follow the naming convention of the environment variables. Eg:
```yaml
gmode: proxy
gnomqtt: False
gmqttip: 127.0.0.1
gmqttport: 5288
gmqttauth: False
gmqtttopic: energy/grott
gmqttuser: user
gmqttpassword: password
```
# Home Assistant Add-on: Grott - The Growatt inverter monitor
## Installation
Follow these steps to get the add-on installed on your system:
1. Navigate in your Home Assistant frontend to **Supervisor** -> **Add-on Store**.
2. Find the "Grott" add-on and click it.
3. Click on the "INSTALL" button.
## How to use
The add-on has a couple of options available. To get the add-on running:
1. Start the add-on.
2. Have some patience and wait a couple of minutes.
3. Check the add-on log output to see the result.
## Add-on configuration:
All options from grott are available as options in this add-on. They need to follow the naming convention of the environment variables. Eg:
```yaml
gmode: proxy
gnomqtt: False
gmqttip: 127.0.0.1
gmqttport: 5288
gmqttauth: False
gmqtttopic: energy/grott
gmqttuser: user
gmqttpassword: password
```
-1
View File
@@ -1 +0,0 @@
+74 -82
View File
@@ -1,83 +1,75 @@
{
"name": "Grott - HA extension",
"version": "2.7.8",
"slug": "grott",
"description": "The Growatt inverter monitor",
"url": "https://github.com/johanmeijer/grott",
"arch": [
"armhf",
"armv7",
"aarch64",
"amd64",
"i386"
],
"startup": "application",
"services": [
"mqtt:need"
],
"init": false,
"boot": "auto",
"ports": {
"5279/tcp": 5279
},
"options": {
"gmode": "proxy",
"gnomqtt": "False",
"ginvtype": "default",
"mqtt": {}
},
"schema": {
"gblockcmd": "bool?",
"gcompat": "bool?",
"gdecrypt": "bool?",
"gextension": "bool?",
"gextname": "str?",
"gextvar": "str?",
"ggrottip": "str?",
"ggrottport": "port?",
"ggrowattip": "str?",
"ggrowattport": "port?",
"gifbucket": "str?",
"gifdbname": "str?",
"gifip": "str?",
"giforg": "str?",
"gifpassword": "password?",
"gifport": "port?",
"giftoken": "str?",
"gifuser": "str?",
"gincludeall": "bool?",
"ginflux": "bool?",
"ginflux2": "bool?",
"ginverterid": "str?",
"ginvtype": "str?",
"ginvtypemap": "str?",
"gminrecl": "int?",
"gmode": "str",
"gmqttauth": "bool?",
"gmqttinverterintopic": "bool?",
"gmqttip": "str?",
"gmqttpassword": "password?",
"gmqttport": "str?",
"gmqtttopic": "str?",
"gmqttuser": "str?",
"gnoipf": "bool?",
"gnomqtt": "bool?",
"gpvapikey": "str?",
"gpvdisv1": "bool?",
"gpvinverters": "int?",
"gpvoutput": "bool?",
"gpvsystemid": "int?",
"gpvtemp": "bool?",
"gsendbuf": "bool?",
"gtime": "str?",
"gtimezone": "str?",
"gvalueoffset": "int?",
"gverbose": "bool?",
"mqtt": {
"server": "str?",
"user": "str?",
"password": "str?"
}
},
"image": "egguy/addon-{arch}-grott-ha-addon"
}
"name": "Grott - HA extension",
"version": "2.7.8",
"slug": "grott",
"description": "The Growatt inverter monitor",
"url": "https://github.com/johanmeijer/grott",
"arch": ["armhf", "armv7", "aarch64", "amd64", "i386"],
"startup": "application",
"services": ["mqtt:need"],
"init": false,
"boot": "auto",
"ports": {
"5279/tcp": 5279
},
"options": {
"gmode": "proxy",
"gnomqtt": "False",
"ginvtype": "default",
"mqtt": {}
},
"schema": {
"gblockcmd": "bool?",
"gcompat": "bool?",
"gdecrypt": "bool?",
"gextension": "bool?",
"gextname": "str?",
"gextvar": "str?",
"ggrottip": "str?",
"ggrottport": "port?",
"ggrowattip": "str?",
"ggrowattport": "port?",
"gifbucket": "str?",
"gifdbname": "str?",
"gifip": "str?",
"giforg": "str?",
"gifpassword": "password?",
"gifport": "port?",
"giftoken": "str?",
"gifuser": "str?",
"gincludeall": "bool?",
"ginflux": "bool?",
"ginflux2": "bool?",
"ginverterid": "str?",
"ginvtype": "str?",
"ginvtypemap": "str?",
"gminrecl": "int?",
"gmode": "str",
"gmqttauth": "bool?",
"gmqttinverterintopic": "bool?",
"gmqttip": "str?",
"gmqttpassword": "password?",
"gmqttport": "str?",
"gmqtttopic": "str?",
"gmqttuser": "str?",
"gnoipf": "bool?",
"gnomqtt": "bool?",
"gpvapikey": "str?",
"gpvdisv1": "bool?",
"gpvinverters": "int?",
"gpvoutput": "bool?",
"gpvsystemid": "int?",
"gpvtemp": "bool?",
"gsendbuf": "bool?",
"gtime": "str?",
"gtimezone": "str?",
"gvalueoffset": "int?",
"gverbose": "bool?",
"mqtt": {
"server": "str?",
"user": "str?",
"password": "str?"
}
},
"image": "egguy/addon-{arch}-grott-ha-addon"
}
+1 -1
View File
@@ -1,3 +1,3 @@
name: Grott for Home Assistant
url: 'https://github.com/egguy/grott-home-assistant-add-on'
url: "https://github.com/egguy/grott-home-assistant-add-on"
maintainer: egguy