Skip to content

Commit

Permalink
Merge pull request #29 from alydersen/chore/move_to_homey_compose
Browse files Browse the repository at this point in the history
Switching to homey compose
  • Loading branch information
alydersen authored Oct 14, 2022
2 parents 276c9ea + 6a3c338 commit 294fd90
Show file tree
Hide file tree
Showing 14 changed files with 187 additions and 87 deletions.
3 changes: 3 additions & 0 deletions .homeychangelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,5 +136,8 @@
},
"0.8.3": {
"en": "Improved handling of incoming signals and refactoring code"
},
"0.9.0": {
"en": "Background changes: switched to Homey Compose"
}
}
54 changes: 54 additions & 0 deletions .homeycompose/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"id": "com.github.alydersen.hdl-smartbus-homey",
"version": "0.9.0",
"compatibility": ">=5.0.0",
"sdk": 3,
"name": {
"en": "HDL SmartBus"
},
"description": {
"en": "HDL SmartBus support for Homey"
},
"tags": {
"en": [
"smart-bus",
"buspro",
"hdl"
]
},
"category": [
"lights"
],
"brandColor": "#7d4098",
"homeyCommunityTopicId": 26575,
"permissions": [],
"images": {
"large": "/assets/images/large.png",
"small": "/assets/images/small.png"
},
"author": {
"name": "Andreas Lydersen",
"email": "[email protected]"
},
"contributors": {
"developers": [
{
"name": "Maximilian Brosnahan"
},
{
"name": "Robert Kurti"
},
{
"name": "Martin Horák"
}
]
},
"contributing": {
"donate": {
"paypal": {
"username": "alydersen"
}
}
},
"source": "https://github.com/alydersen/hdl-smartbus-homey"
}
18 changes: 18 additions & 0 deletions .homeycompose/capabilities/meter_valve.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"type": "string",
"title": {
"en": "Valve condition"
},
"uiComponent": "sensor",
"getable": true,
"setable": false,
"icon": "/drivers/floorheater/assets/valve.svg",
"insights": true,
"uiQuickAction": true,
"units": {
"en": ""
},
"min": 0,
"max": 2,
"decimals": 1
}
18 changes: 18 additions & 0 deletions .homeycompose/capabilities/meter_valve_number.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"type": "number",
"title": {
"en": "Valve number"
},
"uiComponent": "sensor",
"getable": true,
"setable": true,
"insights": true,
"uiQuickAction": true,
"icon": "/drivers/floorheater/assets/valve.svg",
"units": {
"en": ""
},
"min": 0,
"max": 1,
"step": 1
}
65 changes: 33 additions & 32 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"_comment": "This file is generated. Please edit .homeycompose/app.json instead.",
"id": "com.github.alydersen.hdl-smartbus-homey",
"version": "0.8.3",
"version": "0.9.0",
"compatibility": ">=5.0.0",
"sdk": 3,
"name": {
Expand Down Expand Up @@ -53,19 +54,21 @@
"source": "https://github.com/alydersen/hdl-smartbus-homey",
"drivers": [
{
"id": "dimmer",
"name": {
"en": "Dimmer"
"en": "Curtains"
},
"class": "light",
"class": "curtain",
"capabilities": [
"dim",
"onoff"
"windowcoverings_set",
"windowcoverings_state"
],
"icon": "/drivers/dimmer/assets/icon.svg",
"defaultCapabilities": [
"windowcoverings_state"
],
"icon": "/drivers/curtain/assets/icon.svg",
"images": {
"large": "/drivers/dimmer/assets/images/large.png",
"small": "/drivers/dimmer/assets/images/small.png"
"large": "/drivers/curtain/assets/images/large.png",
"small": "/drivers/curtain/assets/images/small.png"
},
"pair": [
{
Expand All @@ -79,25 +82,22 @@
"id": "add_devices",
"template": "add_devices"
}
]
],
"id": "curtain"
},
{
"id": "curtain",
"name": {
"en": "Curtains"
"en": "Dimmer"
},
"class": "curtain",
"class": "light",
"capabilities": [
"windowcoverings_set",
"windowcoverings_state"
],
"defaultCapabilities": [
"windowcoverings_state"
"dim",
"onoff"
],
"icon": "/drivers/curtain/assets/icon.svg",
"icon": "/drivers/dimmer/assets/icon.svg",
"images": {
"large": "/drivers/curtain/assets/images/large.png",
"small": "/drivers/curtain/assets/images/small.png"
"large": "/drivers/dimmer/assets/images/large.png",
"small": "/drivers/dimmer/assets/images/small.png"
},
"pair": [
{
Expand All @@ -111,10 +111,10 @@
"id": "add_devices",
"template": "add_devices"
}
]
],
"id": "dimmer"
},
{
"id": "floorheater",
"name": {
"en": "Floorheater"
},
Expand Down Expand Up @@ -143,10 +143,10 @@
"id": "add_devices",
"template": "add_devices"
}
]
],
"id": "floorheater"
},
{
"id": "multisensor",
"name": {
"en": "multisensor"
},
Expand Down Expand Up @@ -174,10 +174,10 @@
"id": "add_devices",
"template": "add_devices"
}
]
],
"id": "multisensor"
},
{
"id": "relay",
"name": {
"en": "Relay"
},
Expand All @@ -202,10 +202,10 @@
"id": "add_devices",
"template": "add_devices"
}
]
],
"id": "relay"
},
{
"id": "tempsensor",
"name": {
"en": "Temperature Sensor"
},
Expand All @@ -230,10 +230,10 @@
"id": "add_devices",
"template": "add_devices"
}
]
],
"id": "tempsensor"
},
{
"id": "universal-switch",
"name": {
"en": "Universal Switch"
},
Expand Down Expand Up @@ -261,7 +261,8 @@
"id": "add_devices",
"template": "add_devices"
}
]
],
"id": "universal-switch"
}
],
"capabilities": {
Expand Down
10 changes: 6 additions & 4 deletions drivers/curtain/driver.compose.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
{
"id": "curtain",
"name": {
"en": "Curtain"
"en": "Curtains"
},
"class": "curtain",
"capabilities": [
"windowcoverings_set",
"windowcoverings_state"
],
"icon": "{{driverAssetsPath}}/icon.svg",
"defaultCapabilities": [
"windowcoverings_state"
],
"icon": "/drivers/curtain/assets/icon.svg",
"images": {
"large": "/drivers/curtain/assets/images/large.png",
"small": "/drivers/curtain/assets/images/small.png"
Expand All @@ -26,4 +28,4 @@
"template": "add_devices"
}
]
}
}
5 changes: 2 additions & 3 deletions drivers/dimmer/driver.compose.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"id": "dimmer",
"name": {
"en": "Dimmer"
},
Expand All @@ -8,7 +7,7 @@
"dim",
"onoff"
],
"icon": "{{driverAssetsPath}}/icon.svg",
"icon": "/drivers/dimmer/assets/icon.svg",
"images": {
"large": "/drivers/dimmer/assets/images/large.png",
"small": "/drivers/dimmer/assets/images/small.png"
Expand All @@ -26,4 +25,4 @@
"template": "add_devices"
}
]
}
}
63 changes: 31 additions & 32 deletions drivers/floorheater/driver.compose.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,31 @@
{
"id": "floorheater",
"name": {
"en": "Floorheater"
},
"class": "thermostat",
"capabilities": [
"target_temperature",
"measure_temperature",
"onoff",
"meter_valve",
"meter_valve_number"
],
"icon": "{{driverAssetsPath}}/icon.svg",
"images": {
"large": "/drivers/floorheater/assets/images/large.png",
"small": "/drivers/floorheater/assets/images/small.png"
},
"pair": [
{
"id": "list_devices",
"template": "list_devices",
"navigation": {
"next": "add_devices"
}
},
{
"id": "add_devices",
"template": "add_devices"
}
]
}
{
"name": {
"en": "Floorheater"
},
"class": "thermostat",
"capabilities": [
"target_temperature",
"measure_temperature",
"onoff",
"meter_valve",
"meter_valve_number"
],
"icon": "/drivers/floorheater/assets/icon.svg",
"images": {
"large": "/drivers/floorheater/assets/images/large.png",
"small": "/drivers/floorheater/assets/images/small.png"
},
"pair": [
{
"id": "list_devices",
"template": "list_devices",
"navigation": {
"next": "add_devices"
}
},
{
"id": "add_devices",
"template": "add_devices"
}
]
}
11 changes: 8 additions & 3 deletions drivers/multisensor/driver.compose.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
{
"id": "multisensor",
"name": {
"en": "multisensor"
},
"class": "sensor",
"capabilities": ["alarm_motion", "alarm_contact.contact_1", "alarm_contact.contact_2", "measure_temperature", "measure_luminance"],
"capabilities": [
"alarm_motion",
"alarm_contact.contact_1",
"alarm_contact.contact_2",
"measure_temperature",
"measure_luminance"
],
"images": {
"large": "/drivers/multisensor/assets/images/large.png",
"small": "/drivers/multisensor/assets/images/small.png"
Expand All @@ -22,4 +27,4 @@
"template": "add_devices"
}
]
}
}
Loading

0 comments on commit 294fd90

Please sign in to comment.