Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/homey-app-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish Homey App

on:
workflow_dispatch:

jobs:
publish-app:
name: Publish App
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: webfactory/ssh-agent@v0.9.0
env:
SSH_KEY: ${{ secrets.SSH_KEY }}
if: env.SSH_KEY != null
with:
ssh-private-key: ${{ env.SSH_KEY }}

- name: Publish
uses: athombv/github-action-homey-app-publish@master
id: publish
with:
personal_access_token: ${{ secrets.HOMEY_PAT }}

- name: URL
run: |
echo "Manage your app at ${{ steps.publish.outputs.url }}." >> $GITHUB_STEP_SUMMARY
31 changes: 31 additions & 0 deletions .github/workflows/homey-app-translate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Translate Homey App

on:
workflow_dispatch:

jobs:
main:
name: Translate App
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Translate Homey App
uses: athombv/github-action-homey-app-translate@master
with:
openai_api_key: ${{ secrets.OPENAI_API_KEY }}

- name: Commit, Push & Create Pull Request
env:
GH_TOKEN: ${{ github.token }}
run: |
git config --local user.email "sysadmin+githubactions@athom.com"
git config --local user.name "Homey Github Actions Bot"

git checkout -b feature/openai-translations

git add -A
git commit -m "Automatic translations with OpenAI"
git push --set-upstream origin feature/openai-translations

gh pr create --fill
13 changes: 13 additions & 0 deletions .github/workflows/homey-app-validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Validate Homey App
on:
workflow_dispatch:

jobs:
main:
name: Validate Homey App
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: athombv/github-action-homey-app-validate@master
with:
level: verified
45 changes: 45 additions & 0 deletions .github/workflows/homey-app-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Update Homey App Version

on:
workflow_dispatch:
inputs:
version:
type: choice
description: Version
required: true
default: patch
options:
- major
- minor
- patch
changelog:
type: string
description: Changelog
required: true


jobs:
main:
name: Update App Version
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v3

- name: Update App Version
uses: athombv/github-action-homey-app-version@master
id: update_app_version
with:
version: ${{ github.event.inputs.version }}
changelog: ${{ github.event.inputs.changelog }}

- name: Commit & Push
run: |
git config --local user.email "sysadmin+githubactions@athom.com"
git config --local user.name "Homey Github Actions Bot"

git add -A
git commit -m "Update Homey App Version to v${{ steps.update_app_version.outputs.version }}"
git tag "v${{ steps.update_app_version.outputs.version }}"

git push origin HEAD --tags
6 changes: 6 additions & 0 deletions .homeychangelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,11 @@
},
"3.5.1": {
"en": "Update homey-api"
},
"3.6.0": {
"en": "Added translations."
},
"3.6.1": {
"en": "Update homey-api for energy endpoints."
}
}
28 changes: 25 additions & 3 deletions .homeycompose/app.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,36 @@
{
"id": "com.athom.homeyscript",
"sdk": 3,
"version": "3.5.1",
"version": "3.6.1",
"compatibility": ">=5.0.0",
"name": {
"en": "HomeyScript"
"en": "HomeyScript",
"nl": "HomeyScript",
"da": "HomeyScript",
"de": "HomeyScript",
"es": "HomeyScript",
"fr": "HomeyScript",
"it": "HomeyScript",
"no": "HomeyScript",
"sv": "HomeyScript",
"pl": "HomeyScript",
"ru": "HomeyScript",
"ko": "HomeyScript"
},
"brandColor": "#2B1F32",
"description": {
"en": "Script your Home"
"en": "Script your Home",
"nl": "Script je Huis",
"da": "Skript dit Hjem",
"de": "Skripte dein Zuhause",
"es": "Escribe un guión para tu hogar",
"fr": "Script ton Domicile",
"it": "Scriptare la tua Casa",
"no": "Skript ditt Hjem",
"sv": "Script ditt Hem",
"pl": "Skryptuj Swój Dom",
"ru": "Скрипт твоего Дома",
"ko": "당신의 집을 스크립트로 작성하세요"
},
"permissions": [
"homey:manager:api"
Expand Down
38 changes: 34 additions & 4 deletions .homeycompose/flow/actions/run.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,50 @@
{
"title": {
"en": "Run a script",
"nl": "Voer een script uit"
"nl": "Voer een script uit",
"da": "Kør et script",
"de": "Ein Skript ausführen",
"es": "Ejecutar un script",
"fr": "Exécuter un script",
"it": "Esegui uno script",
"no": "Kjør et skript",
"sv": "Kör ett skript",
"pl": "Uruchom skrypt",
"ru": "Выполнить скрипт",
"ko": "스크립트 실행"
},
"titleFormatted": {
"en": "Run [[script]]",
"nl": "Voer [[script]] uit"
"nl": "Voer [[script]] uit",
"da": "Kør [[script]]",
"de": "Führe [[script]] aus",
"es": "Ejecutar [[script]]",
"fr": "Exécutez [[script]]",
"it": "Esegui [[script]]",
"no": "Kjør [[script]]",
"sv": "Kör [[script]]",
"pl": "Uruchom [[script]]",
"ru": "Выполнить [[script]]",
"ko": "[[script]] 실행"
},
"args": [
{
"name": "script",
"type": "autocomplete",
"title": {
"en": "Script",
"nl": "Script"
"nl": "Script",
"da": "Script",
"de": "Skript",
"es": "Script",
"fr": "Script",
"it": "Script",
"no": "Script",
"sv": "Script",
"pl": "Skrypt",
"ru": "Скрипт",
"ko": "스크립트"
}
}
]
}
}
26 changes: 23 additions & 3 deletions .homeycompose/flow/actions/runCode.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,31 @@
"deprecated": true,
"title": {
"en": "Run code",
"nl": "Voer code uit"
"nl": "Voer code uit",
"da": "Kør kode",
"de": "Code ausführen",
"es": "Ejecutar código",
"fr": "Exécuter le code",
"it": "Esegui codice",
"no": "Kjør kode",
"sv": "Kör kod",
"pl": "Uruchom kod",
"ru": "Запустить код",
"ko": "코드 실행"
},
"titleFormatted": {
"en": "Run [[code]]",
"nl": "Voer [[code]] uit"
"nl": "Voer [[code]] uit",
"da": "Kør [[code]]",
"de": "Führen Sie [[code]] aus",
"es": "Ejecutar [[code]]",
"fr": "Exécuter [[code]]",
"it": "Esegui [[code]]",
"no": "Kjør [[code]]",
"sv": "Kör [[code]]",
"pl": "Uruchom [[code]]",
"ru": "Запустить [[code]]",
"ko": "[[code]] 실행"
},
"advanced": true,
"args": [
Expand All @@ -21,4 +41,4 @@
"value": "// My Code"
}
]
}
}
50 changes: 45 additions & 5 deletions .homeycompose/flow/actions/runCodeReturnsBoolean.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,49 @@
"deprecated": true,
"title": {
"en": "Run code",
"nl": "Voer code uit"
"nl": "Voer code uit",
"da": "Kør kode",
"de": "Code ausführen",
"es": "Ejecutar código",
"fr": "Exécuter le code",
"it": "Esegui il codice",
"no": "Kjør kode",
"sv": "Kör kod",
"pl": "Uruchom kod",
"ru": "Запустить код",
"ko": "코드 실행"
},
"titleFormatted": {
"en": "Run [[code]] and return Yes/No-tag",
"nl": "Voer [[code]] uit en return Ja/Nee-tag"
"nl": "Voer [[code]] uit en return Ja/Nee-tag",
"da": "Kør [[code]] og returner Ja/Nej-tag",
"de": "Führen Sie [[code]] aus und geben Sie Ja/Nein-Tag zurück",
"es": "Ejecutar [[code]] y devolver etiqueta Sí/No",
"fr": "Exécuter [[code]] et retourner le tag Oui/Non",
"it": "Esegui [[code]] e restituisci il tag Sì/No",
"no": "Kjør [[code]] og returner Ja/Nei-tag",
"sv": "Kör [[code]] och returnera Ja/Nej-tag",
"pl": "Uruchom [[code]] i zwróć tag Tak/Nie",
"ru": "Выполните [[code]] и верните тег Да/Нет",
"ko": "[[code]] 실행하고 예/아니오 태그 반환"
},
"tokens": [
{
"name": "boolean",
"type": "boolean",
"title": {
"en": "Result",
"nl": "Resultaat"
"nl": "Resultaat",
"da": "Resultat",
"de": "Ergebnis",
"es": "Resultado",
"fr": "Résultat",
"it": "Risultato",
"no": "Resultat",
"sv": "Resultat",
"pl": "Wynik",
"ru": "Результат",
"ko": "결과"
}
}
],
Expand All @@ -25,9 +55,19 @@
"language": "homeyscript",
"title": {
"en": "Code",
"nl": "Code"
"nl": "Code",
"da": "Kode",
"de": "Code",
"es": "Código",
"fr": "Code",
"it": "Codice",
"no": "Kode",
"sv": "Kod",
"pl": "Kod",
"ru": "Код",
"ko": "코드"
},
"value": "// My Code\n\nreturn true;"
}
]
}
}
Loading
Loading