diff --git a/.github/renovate.json b/.github/renovate.json new file mode 100644 index 0000000..70b0c97 --- /dev/null +++ b/.github/renovate.json @@ -0,0 +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 + } + ] + } diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml.disabled similarity index 97% rename from .github/workflows/ci.yml rename to .github/workflows/ci.yml.disabled index c862239..7d38024 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml.disabled @@ -72,9 +72,9 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 - - - name: Update package.json version + uses: actions/checkout@v3 + + - name: Update package.json version uses: jossef/action-set-json-field@v2.1 with: file: grott-current/config.json @@ -85,4 +85,3 @@ jobs: with: default_author: github_actions message: 'edge: bumping release edge-${{ github.run_id }}' - diff --git a/.github/workflows/labels.yaml b/.github/workflows/labels.yaml new file mode 100644 index 0000000..8691ec9 --- /dev/null +++ b/.github/workflows/labels.yaml @@ -0,0 +1,12 @@ +--- +name: Sync labels + +# yamllint disable-line rule:truthy +on: + schedule: + - cron: "34 5 * * *" + workflow_dispatch: + +jobs: + workflows: + uses: hassio-addons/workflows/.github/workflows/labels.yaml@main diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml new file mode 100644 index 0000000..0b4711d --- /dev/null +++ b/.github/workflows/lint.yaml @@ -0,0 +1,16 @@ +--- +name: Lint + +# yamllint disable-line rule:truthy +on: + push: + pull_request: + types: + - opened + - reopened + - synchronize + workflow_dispatch: + +jobs: + workflows: + uses: hassio-addons/workflows/.github/workflows/repository-lint.yaml@main diff --git a/.github/workflows/pr-labels.yaml b/.github/workflows/pr-labels.yaml new file mode 100644 index 0000000..393617b --- /dev/null +++ b/.github/workflows/pr-labels.yaml @@ -0,0 +1,15 @@ +--- +name: PR Labels + +# yamllint disable-line rule:truthy +on: + pull_request_target: + types: + - opened + - labeled + - unlabeled + - synchronize + +jobs: + workflows: + uses: hassio-addons/workflows/.github/workflows/pr-labels.yaml@main diff --git a/.github/workflows/workflows-ci.yaml b/.github/workflows/workflows-ci.yaml new file mode 100644 index 0000000..12eaeb0 --- /dev/null +++ b/.github/workflows/workflows-ci.yaml @@ -0,0 +1,46 @@ +--- +name: Workflows CI + +# yamllint disable-line rule:truthy +on: + push: + pull_request: + types: + - opened + - reopened + - synchronize + workflow_dispatch: + +jobs: + lint-shellcheck: + name: Shellcheck + runs-on: ubuntu-latest + steps: + - name: ⤵️ Check out code from GitHub + uses: actions/checkout@v3 + - name: 🚀 Run Shellcheck + uses: ludeeus/action-shellcheck@2.0.0 + env: + SHELLCHECK_OPTS: -s bash + + lint-yamllint: + name: YAMLLint + runs-on: ubuntu-latest + steps: + - name: ⤵️ Check out code from GitHub + uses: actions/checkout@v3 + - name: 🚀 Run YAMLLint + uses: frenck/action-yamllint@v1.4 + + lint-prettier: + name: Prettier + runs-on: ubuntu-latest + steps: + - name: ⤵️ Check out code from GitHub + uses: actions/checkout@v3 + - name: 🚀 Run Prettier + uses: creyD/prettier_action@v4.3 + with: + prettier_options: --write **/*.{json,js,md,yaml} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/grott-edge/translations/en.yaml b/grott-edge/translations/en.yaml new file mode 100644 index 0000000..af1dbf7 --- /dev/null +++ b/grott-edge/translations/en.yaml @@ -0,0 +1,26 @@ +--- +configuration: + verbose: + name: Verbose mode + description: Enable the verbose mode. Useful for debugging + retain: + name: Activate MQTT retain + description: This allow to keep the values between reboot, prevent showing sensor values as unknown + gminrecl: + name: Minimum record length + description: The minimum packet length to be treated + grott_mqtt: + name: Enable grott MQTT + description: Allow grott to send MQTT messages. If your are using the grott_ha extension, you don't need this. If you are using the grott integration,m you need to enable it. + ginvtype: + name: Inverter type + description: "For changing the layout used for decoding (ex: sph, spf or tl3). Keep it on default if using inverter map." + ginvtypemap: + name: Inverter mapping + description: 'An inverter mapping in the form {"SERIAL": "type"} e.g.: for an SPH6000 with serial "NWO00415E3" : {"NWO00415E3": "sph"}' + ha_plugin: + name: Home Assistant plugin + 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. diff --git a/grott/translations/en.yaml b/grott/translations/en.yaml new file mode 100644 index 0000000..af1dbf7 --- /dev/null +++ b/grott/translations/en.yaml @@ -0,0 +1,26 @@ +--- +configuration: + verbose: + name: Verbose mode + description: Enable the verbose mode. Useful for debugging + retain: + name: Activate MQTT retain + description: This allow to keep the values between reboot, prevent showing sensor values as unknown + gminrecl: + name: Minimum record length + description: The minimum packet length to be treated + grott_mqtt: + name: Enable grott MQTT + description: Allow grott to send MQTT messages. If your are using the grott_ha extension, you don't need this. If you are using the grott integration,m you need to enable it. + ginvtype: + name: Inverter type + description: "For changing the layout used for decoding (ex: sph, spf or tl3). Keep it on default if using inverter map." + ginvtypemap: + name: Inverter mapping + description: 'An inverter mapping in the form {"SERIAL": "type"} e.g.: for an SPH6000 with serial "NWO00415E3" : {"NWO00415E3": "sph"}' + ha_plugin: + name: Home Assistant plugin + 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. diff --git a/translations/en.yaml b/translations/en.yaml new file mode 100644 index 0000000..af1dbf7 --- /dev/null +++ b/translations/en.yaml @@ -0,0 +1,26 @@ +--- +configuration: + verbose: + name: Verbose mode + description: Enable the verbose mode. Useful for debugging + retain: + name: Activate MQTT retain + description: This allow to keep the values between reboot, prevent showing sensor values as unknown + gminrecl: + name: Minimum record length + description: The minimum packet length to be treated + grott_mqtt: + name: Enable grott MQTT + description: Allow grott to send MQTT messages. If your are using the grott_ha extension, you don't need this. If you are using the grott integration,m you need to enable it. + ginvtype: + name: Inverter type + description: "For changing the layout used for decoding (ex: sph, spf or tl3). Keep it on default if using inverter map." + ginvtypemap: + name: Inverter mapping + description: 'An inverter mapping in the form {"SERIAL": "type"} e.g.: for an SPH6000 with serial "NWO00415E3" : {"NWO00415E3": "sph"}' + ha_plugin: + name: Home Assistant plugin + 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.