Updated to use the main 2.7 branch.

Add support for ginvtypemap
This commit is contained in:
egguy
2022-11-03 15:43:01 +01:00
parent 6d32bc069a
commit 3aecf4e9db
3 changed files with 8 additions and 3 deletions
+2 -1
View File
@@ -23,7 +23,8 @@ RUN pip3 install --no-cache --upgrade pip setuptools
COPY script.sh /app/script.sh
WORKDIR /app
RUN curl -Lk 'https://github.com/johanmeijer/grott/archive/refs/heads/2.7-(Beta).zip' --output files.zip && unzip -o files.zip && rm files.zip && mv grott-*/*.py ./
RUN curl -L "https://raw.githubusercontent.com/egguy/grott/feature/ha-extension/examples/Home%20Assistent/grott_ha.py" -o grott_ha.py
# Move the addon
RUN mv grott-*/examples/Home\ Assistent/grott_ha.py ./
#Install required python packages
RUN pip install paho-mqtt requests influxdb influxdb
+4 -2
View File
@@ -1,6 +1,6 @@
{
"name": "Grott",
"version": "2.7.6",
"name": "Grott - HA extension",
"version": "2.7.7",
"slug": "grott",
"description": "The Growatt inverter monitor",
"url": "https://github.com/johanmeijer/grott",
@@ -24,6 +24,7 @@
"options": {
"gmode": "proxy",
"gnomqtt": "False",
"ginvtype": "default",
"mqtt": {}
},
"schema": {
@@ -69,6 +70,7 @@
"gextension": "bool?",
"gextname": "str?",
"gextvar": "str?",
"ginvtypemap": "str?",
"mqtt": {
"server": "str?",
"user": "str?",
+2
View File
@@ -39,6 +39,8 @@ if bashio::config.has_value 'gifpassword'; then export gifpassword="$(bashio::c
if bashio::config.has_value 'giforg'; then export giforg="$(bashio::config 'giforg')"; fi
if bashio::config.has_value 'gifbucket'; then export gifbucket="$(bashio::config 'gifbucket')"; fi
if bashio::config.has_value 'giftoken'; then export giftoken="$(bashio::config 'giftoken')"; fi
if bashio::config.has_value 'ginvtypemap'; then export ginvtypemap="$(bashio::config 'ginvtypemap')"; fi
export gextension="True"
export gextname="grott_ha"