Skip to content

Commit

Permalink
initial commit of working app v1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gslender committed Jul 12, 2024
1 parent 6bfd033 commit e853415
Show file tree
Hide file tree
Showing 71 changed files with 6,840 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "athom/homey-app"
}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/env.json
/node_modules/
/.homeybuild/
32 changes: 32 additions & 0 deletions .homeycompose/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"id": "com.electrolux-aeg.ocp",
"version": "1.0.0",
"compatibility": ">=5.0.0",
"sdk": 3,
"platforms": [
"local"
],
"name": {
"en": "Electrolux AEG"
},
"description": {
"en": "Add support for Electrolux AEG Appliances"
},
"brandColor": "#d31937",
"category": [
"appliances"
],
"permissions": [],
"images": {
"small": "/assets/images/small.png",
"large": "/assets/images/large.png"
},
"author": {
"name": "Grant Slender",
"email": "[email protected]"
},
"source": "https://github.com/gslender/com.electrolux-aeg.ocp",
"bugs": {
"url": "https://github.com/gslender/com.electrolux-aeg.ocp/issues"
}
}
13 changes: 13 additions & 0 deletions .homeycompose/capabilities/FAN_speed.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"type": "number",
"uiComponent": "slider",
"title": {
"en": "Fan speed"
},
"min": 0,
"max": 100,
"step": 10,
"getable": true,
"setable": true
}

9 changes: 9 additions & 0 deletions .homeycompose/capabilities/IONIZER_onoff.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "boolean",
"title": {
"en": "Ionizer active"
},
"getable": true,
"setable": true
}

9 changes: 9 additions & 0 deletions .homeycompose/capabilities/LIGHT_onoff.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "boolean",
"title": {
"en": "Indicator light"
},
"getable": true,
"setable": true
}

9 changes: 9 additions & 0 deletions .homeycompose/capabilities/LOCK_onoff.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "boolean",
"title": {
"en": "Lock controls"
},
"getable": true,
"setable": true
}

24 changes: 24 additions & 0 deletions .homeycompose/capabilities/SMART_mode.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"type": "enum",
"uiComponent": "picker",
"title": {
"en": "Mode"
},
"values": [
{
"id": "manual",
"title": {
"en": "Manual"
}
},
{
"id": "smart",
"title": {
"en": "Smart"
}
}
],
"getable": true,
"setable": true
}

39 changes: 39 additions & 0 deletions .homeycompose/capabilities/measure_FILTER.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"type": "number",
"title": {
"en": "Filter life"
},
"units": {
"en": "%"
},
"insights": true,
"min": 0,
"max": 100,
"desc": {
"en": "Filter life in percentage (%)"
},
"chartType": "spline",
"decimals": 2,
"getable": true,
"setable": false,
"uiComponent": "sensor",
"icon": "/assets/icons/measure_FILTER.svg",
"$flow": {
"triggers": [
{
"id": "measure_FILTER_changed",
"title": {
"en": "The filter life changed"
},
"tokens": [
{
"name": "$id",
"title": "$title",
"type": "$type",
"example": 99
}
]
}
]
}
}
9 changes: 9 additions & 0 deletions .homeycompose/capabilities/measure_applianceMode.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "string",
"title": {
"en": "Appliance Mode"
},
"getable": true,
"setable": false,
"icon": "/assets/gear.svg"
}
9 changes: 9 additions & 0 deletions .homeycompose/capabilities/measure_applianceState.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "string",
"title": {
"en": "Appliance State"
},
"getable": true,
"setable": false,
"icon": "/assets/gear.svg"
}
9 changes: 9 additions & 0 deletions .homeycompose/capabilities/measure_cyclePhase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "string",
"title": {
"en": "Cycle Phase"
},
"getable": true,
"setable": false,
"icon": "/assets/rotate.svg"
}
9 changes: 9 additions & 0 deletions .homeycompose/capabilities/measure_doorState.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "string",
"title": {
"en": "Door State"
},
"getable": true,
"setable": false,
"icon": "/assets/door.svg"
}
43 changes: 43 additions & 0 deletions .homeycompose/capabilities/measure_pm1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"type": "number",
"title": {
"en": "PM1",
"nl": "PM1",
"de": "PM1"
},
"units": {
"en": "ppm"
},
"insights": true,
"desc": {
"en": "Atmospheric Particulate Matter (μg/m3)",
"nl": "Deeltjesvormige luchtverontreiniging (μg/m3)",
"de": "Atmosphärischer Feinstaub (μg/m3)"
},
"chartType": "spline",
"decimals": 2,
"getable": true,
"setable": false,
"uiComponent": "sensor",
"icon": "/assets/icons/measure_PM1.svg",
"$flow": {
"triggers": [
{
"id": "measure_pm1_changed",
"title": {
"en": "The PM1 value has changed",
"nl": "De PM1 waarde is veranderd",
"de": "Der PM1-Wert hat sich geändert"
},
"tokens": [
{
"name": "$id",
"title": "$title",
"type": "$type",
"example": 2
}
]
}
]
}
}
43 changes: 43 additions & 0 deletions .homeycompose/capabilities/measure_pm10.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"type": "number",
"title": {
"en": "PM10",
"nl": "PM10",
"de": "PM10"
},
"units": {
"en": "ppm"
},
"insights": true,
"desc": {
"en": "Atmospheric Particulate Matter (μg/m3)",
"nl": "Deeltjesvormige luchtverontreiniging (μg/m3)",
"de": "Atmosphärischer Feinstaub (μg/m3)"
},
"chartType": "spline",
"decimals": 2,
"getable": true,
"setable": false,
"uiComponent": "sensor",
"icon": "/assets/icons/measure_PM10.svg",
"$flow": {
"triggers": [
{
"id": "measure_pm10_changed",
"title": {
"en": "The PM10 value has changed",
"nl": "De PM10 waarde is veranderd",
"de": "Der PM10-Wert hat sich geändert"
},
"tokens": [
{
"name": "$id",
"title": "$title",
"type": "$type",
"example": 2
}
]
}
]
}
}
9 changes: 9 additions & 0 deletions .homeycompose/capabilities/measure_startTime.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "string",
"title": {
"en": "Start Time"
},
"getable": true,
"setable": false,
"icon": "/assets/clock.svg"
}
9 changes: 9 additions & 0 deletions .homeycompose/capabilities/measure_stopTime.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "string",
"title": {
"en": "Stop Time"
},
"getable": true,
"setable": false,
"icon": "/assets/clock.svg"
}
9 changes: 9 additions & 0 deletions .homeycompose/capabilities/measure_timeToEnd.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "string",
"title": {
"en": "Time To End"
},
"getable": true,
"setable": false,
"icon": "/assets/clock.svg"
}
41 changes: 41 additions & 0 deletions .homeycompose/capabilities/measure_voc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"type": "number",
"title": {
"en": "VOC",
"nl": "VOC",
"de": "VOC"
},
"units": {
"en": "ppb"
},
"insights": true,
"desc": {
"en": "Volatile Organic Compound (ppb)"
},
"chartType": "spline",
"decimals": 2,
"getable": true,
"setable": false,
"uiComponent": "sensor",
"icon": "/assets/icons/measure_VOC.svg",
"$flow": {
"triggers": [
{
"id": "measure_voc_changed",
"title": {
"en": "The VOC value has changed",
"nl": "De VOC waarde is veranderd",
"de": "Der VOC-Wert hat sich geändert"
},
"tokens": [
{
"name": "$id",
"title": "$title",
"type": "$type",
"example": 2
}
]
}
]
}
}
15 changes: 15 additions & 0 deletions .homeycompose/flow/actions/disable_indicator_light.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"title": {
"en": "Disable indicator light"
},
"titleFormatted": {
"en": "Disable indicator light"
},
"args": [
{
"type": "device",
"name": "device",
"filter": "driver_id=electrolux-pure-a9"
}
]
}
Loading

0 comments on commit e853415

Please sign in to comment.