Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create flow cards for sending and receiving telegrams #21

Merged
merged 23 commits into from
Jun 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
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
25 changes: 20 additions & 5 deletions .homeychangelog.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
{
"1.2.7": {
"en": "Fix connection to non-broadcast interfaces after restart. Added support for sending and receiving telegrams directly from flows."
},
"1.2.6": {
"en": "Improved error handling for missing interfaces"
},
"1.2.5": {
"en": "Add support for ethernet on Homey Pro 2023"
},
"1.2.4": {
"en": "Fixed an issue with the 'Trigger scene' Flow card not sending the correct address and scene data."
},
Expand Down Expand Up @@ -27,10 +36,16 @@
"en": "Connection to KNX network improvements and small protocol fixes.",
"nl": "Betere verbinding naar het KNX netwerk en vele kleine verbeteringen."
},
"1.2.5": {
"en": "Add support for ethernet on Homey Pro 2023"
"1.0.15": {
"en": "Bugfixes and crash preventions."
},
"1.2.6": {
"en": "Improved error handling for missing interfaces"
"1.0.13": {
"en": "Added automatic re-detection of KNX interfaces. This should re-find the used KNX interface if it's IP has changed over time."
},
"1.0.12": {
"en": "Small bugfixes and error handling."
},
"1.0.11": {
"en": "KNX Connection improvements."
}
}
}
33 changes: 33 additions & 0 deletions .homeycompose/flow/actions/knx_read.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"title": {
"en": "Send a Read Telegram"
},
"titleFormatted": {
"en": "Send a read request on group address [[group_address]] via [[interface]] interface"
},
"hint": {
"en": "Asks the KNX bus to trigger a send. This is useful to get the current value of a group address."
},
"args": [
{
"title": {
"en": "Interface"
},
"type": "autocomplete",
"name": "interface",
"placeholder": {
"en": "[any]"
}
},
{
"title": {
"en": "Group Address"
},
"type": "text",
"name": "group_address",
"placeholder": {
"en": "Group Address"
}
}
]
}
51 changes: 51 additions & 0 deletions .homeycompose/flow/actions/knx_send.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"title": {
"en": "Send Telegram"
},
"titleFormatted": {
"en": "Send a [[data_type]] [[value]] on group address [[group_address]] via [[interface]] interface"
},
"hint": {
"en": "Sends a telegram to the KNX bus, be smart and make sure you expect the right value type, they will default to sensible values"
},
"args": [
{
"title": {
"en": "Interface"
},
"type": "autocomplete",
"name": "interface",
"placeholder": {
"en": "[any]"
}
},
{
"title": {
"en": "Group Address"
},
"type": "text",
"name": "group_address",
"placeholder": {
"en": "Group Address"
}
},
{
"name": "data_type",
"title": {
"en": "Data Type"
},
"type": "autocomplete",
"placeholder": {
"en": "5.001"
}
},
{
"title": {
"en": "Value"
},
"type": "text",
"name": "value",
"required" : true
}
]
}
69 changes: 69 additions & 0 deletions .homeycompose/flow/triggers/knx_receive.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"title": {
"en": "KNX Receive"
},
"titleFormatted": {
"en": "Trigger when a [[data_type]] value is published on group address [[group_address]] on interface [[interface]]"
},
"hint": {
"en": "Listen for an event from the KNX Bus on a specific group address"
},
"args": [
{
"type": "autocomplete",
"name": "interface",
"placeholder": {
"en": "[any]"
}
},
{
"type": "text",
"name": "group_address",
"placeholder": {
"en": "1/0/0"
}
},
{
"name": "data_type",
"title": {
"en": "Data Type"
},
"type": "autocomplete",
"placeholder": {
"en": "5.001"
}
}
],
"tokens": [
{
"type": "number",
"name": "value_number",
"title": {
"en": "Value"
},
"example": {
"en": "the value recieved"
}
},
{
"type": "boolean",
"name": "value_bool",
"title": {
"en": "Value"
},
"example": {
"en": "the value recieved as a boolean"
}
},
{
"type": "string",
"name": "value_string",
"title": {
"en": "Value"
},
"example": {
"en": "the value recieved as a string"
}
}
]
}
14 changes: 0 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,6 @@

Add your KNX devices to Homey. This app requires a KNX IP Router or Interface connected to the same Wi-Fi network as Homey. Please make sure that either Homey is the only KNX/IP device in your network or that your IP interface can handle multiple simultaneous connections.

## Changelog

### v1.0.15
Bugfixes and crash preventions.

### v1.0.13
Added automatic re-detection of KNX interfaces. This should re-find the used KNX interface if it's IP has changed over time.

### v1.0.12
Small bugfixes and error handling.

### v1.0.11
KNX Connection improvements.

## Supported KNX devices

### Switch
Expand Down
Loading
Loading