Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
bobvandevijver authored Aug 2, 2024
2 parents bfd73c2 + 3c01ba2 commit 7b009a0
Show file tree
Hide file tree
Showing 32 changed files with 1,442 additions and 393 deletions.
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: ❔ First time connecting Tuya with Homey
url: https://support.homey.app/hc/en-us/articles/14504423087644-Connecting-Tuya-with-Homey
about: Please make sure to check our help document to help get your first device connected with Homey!
30 changes: 30 additions & 0 deletions .github/workflows/app-validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Validate
on:
workflow_dispatch:
pull_request:
push:
branches:
- master

jobs:
lint:
name: Validate app
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 20

- name: Install dependencies
run: npm ci --ignore-scripts --audit=false

- name: Install Homey CLI
run: npm -g install homey

- name: App needs to pass verified level validation
run: homey app validate --level=verified

- name: app.json file needs to be up to date with repository
run: git diff --exit-code app.json
24 changes: 0 additions & 24 deletions .github/workflows/lint.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .homeychangelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,8 @@
},
"1.1.0": {
"en": "Added method to retrieve device specifications from device settings"
},
"1.1.1": {
"en": "Redact privacy sensitive fields from device specification"
}
}
3 changes: 2 additions & 1 deletion .homeycompose/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@
"Helloify",
"Hema",
"Henmi",
"HEMA",
"Himojo",
"Homecube",
"Horsky",
Expand Down Expand Up @@ -158,7 +159,7 @@
"KOBWA",
"Konesky",
"Koogeek",
"Kruitvat",
"Kruidvat",
"Kshzmoto",
"L&E",
"Laduo",
Expand Down
4 changes: 2 additions & 2 deletions .homeycompose/flow/actions/send_command_boolean.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"name": "device",
"type": "device",
"filter": {
"driver_id": "fan|light|other|sensor_contact|sensor_motion|sensor_smoke|socket"
"driver_id": "doorbell|fan|light|other|sensor_contact|sensor_motion|sensor_smoke|socket"
},
"title": {
"en": "Device"
Expand All @@ -34,4 +34,4 @@
}
}
]
}
}
4 changes: 2 additions & 2 deletions .homeycompose/flow/actions/send_command_json.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"name": "device",
"type": "device",
"filter": {
"driver_id": "fan|light|other|sensor_contact|sensor_motion|sensor_smoke|socket"
"driver_id": "doorbell|fan|light|other|sensor_contact|sensor_motion|sensor_smoke|socket"
},
"title": {
"en": "Device"
Expand All @@ -34,4 +34,4 @@
}
}
]
}
}
4 changes: 2 additions & 2 deletions .homeycompose/flow/actions/send_command_number.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"name": "device",
"type": "device",
"filter": {
"driver_id": "fan|light|other|sensor_contact|sensor_motion|sensor_smoke|socket"
"driver_id": "doorbell|fan|light|other|sensor_contact|sensor_motion|sensor_smoke|socket"
},
"title": {
"en": "Device"
Expand All @@ -34,4 +34,4 @@
}
}
]
}
}
4 changes: 2 additions & 2 deletions .homeycompose/flow/actions/send_command_string.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"name": "device",
"type": "device",
"filter": {
"driver_id": "fan|light|other|sensor_contact|sensor_motion|sensor_smoke|socket"
"driver_id": "doorbell|fan|light|other|sensor_contact|sensor_motion|sensor_smoke|socket"
},
"title": {
"en": "Device"
Expand All @@ -34,4 +34,4 @@
}
}
]
}
}
17 changes: 17 additions & 0 deletions .homeycompose/flow/actions/trigger_scene.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"title": {
"en": "Trigger Tuya Scene"
},
"titleFormatted": {
"en": "Trigger [[scene]]"
},
"args": [
{
"name": "scene",
"type": "autocomplete",
"title": {
"en": "Tuya Scene"
}
}
]
}
38 changes: 38 additions & 0 deletions .homeycompose/flow/triggers/receive_status_boolean.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"title": {
"en": "Receive a Tuya Status (Boolean)"
},
"titleFormatted": {
"en": "Status [[code]] gets a new Boolean value"
},
"hint": {
"en": "This is an advanced Flow card, that can be used to receive any status from a Tuya device. You can find the status codes in the Tuya API documentation at https://homey.link/tuya-docs."
},
"args": [
{
"name": "device",
"type": "device",
"filter": {
"driver_id": "doorbell|fan|light|other|sensor_contact|sensor_motion|sensor_smoke|socket"
},
"title": {
"en": "Device"
}
},
{
"name": "code",
"type": "autocomplete",
"title": {
"en": "Code"
}
}
],
"tokens": [
{
"name": "value",
"type": "boolean",
"title": { "en": "Value" },
"example": true
}
]
}
38 changes: 38 additions & 0 deletions .homeycompose/flow/triggers/receive_status_json.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"title": {
"en": "Receive a Tuya Status (JSON)"
},
"titleFormatted": {
"en": "Status [[code]] gets a new JSON value"
},
"hint": {
"en": "This is an advanced Flow card, that can be used to receive any status from a Tuya device. You can find the status codes in the Tuya API documentation at https://homey.link/tuya-docs."
},
"args": [
{
"name": "device",
"type": "device",
"filter": {
"driver_id": "doorbell|fan|light|other|sensor_contact|sensor_motion|sensor_smoke|socket"
},
"title": {
"en": "Device"
}
},
{
"name": "code",
"type": "autocomplete",
"title": {
"en": "Code"
}
}
],
"tokens": [
{
"name": "value",
"type": "string",
"title": { "en": "Value" },
"example": "[{\"enabled\": true}]"
}
]
}
38 changes: 38 additions & 0 deletions .homeycompose/flow/triggers/receive_status_number.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"title": {
"en": "Receive a Tuya Status (Number)"
},
"titleFormatted": {
"en": "Status [[code]] gets a new Number value"
},
"hint": {
"en": "This is an advanced Flow card, that can be used to receive any status from a Tuya device. You can find the status codes in the Tuya API documentation at https://homey.link/tuya-docs."
},
"args": [
{
"name": "device",
"type": "device",
"filter": {
"driver_id": "doorbell|fan|light|other|sensor_contact|sensor_motion|sensor_smoke|socket"
},
"title": {
"en": "Device"
}
},
{
"name": "code",
"type": "autocomplete",
"title": {
"en": "Code"
}
}
],
"tokens": [
{
"name": "value",
"type": "number",
"title": { "en": "Value" },
"example": 5.6
}
]
}
38 changes: 38 additions & 0 deletions .homeycompose/flow/triggers/receive_status_string.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"title": {
"en": "Receive a Tuya Status (String)"
},
"titleFormatted": {
"en": "Status [[code]] gets a new String value"
},
"hint": {
"en": "This is an advanced Flow card, that can be used to receive any status from a Tuya device. You can find the status codes in the Tuya API documentation at https://homey.link/tuya-docs."
},
"args": [
{
"name": "device",
"type": "device",
"filter": {
"driver_id": "doorbell|fan|light|other|sensor_contact|sensor_motion|sensor_smoke|socket"
},
"title": {
"en": "Device"
}
},
{
"name": "code",
"type": "autocomplete",
"title": {
"en": "Code"
}
}
],
"tokens": [
{
"name": "value",
"type": "string",
"title": { "en": "Value" },
"example": "color"
}
]
}
7 changes: 6 additions & 1 deletion .homeycompose/locales/en.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{
"device_offline": "The device seems to be offline. Is it powered on, and connected to the internet?",
"switch": "Switch __number__"
"switch": "Switch __number__",
"settings_unsupported": "Some of the changed settings are not supported by the device:",
"setting_values_unsupported": "Some of the changed values are not supported by the device:",
"setting_unsupported": "__label__ is not supported by the device",
"setting_value_unsupported": "Value is not supported for __label__ by the device",
"error_retrieving_scenes": "Could not retrieve Tuya scenes."
}
Loading

0 comments on commit 7b009a0

Please sign in to comment.