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
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
build
build
widgets/
4 changes: 2 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ module.exports = {
es6: true,
jest: true,
},
extends: ['athom', 'eslint:recommended', 'plugin:prettier/recommended'],
extends: ['athom/homey-app', 'eslint:recommended', 'plugin:prettier/recommended'],
parserOptions: {
sourceType: 'module',
},
ignorePatterns: ['node_modules/*', 'build/*'],
ignorePatterns: ['node_modules/*', 'build/*', '.eslintrc.js'],
plugins: ['@typescript-eslint', 'prettier'],
settings: {
node: {
Expand Down
21 changes: 21 additions & 0 deletions .homeycompose/capabilities/measure_co2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"type": "number",
"uiComponent": "sensor",
"title": {
"en": "CO2",
"no": "CO2"
},
"desc": {
"en": "Carbon dioxide level",
"no": "Karbondioksidnivå"
},
"units": {
"en": "ppm",
"no": "ppm"
},
"decimals": 0,
"getable": true,
"setable": false,
"insights": true
}

24 changes: 24 additions & 0 deletions .homeycompose/capabilities/target_temperature.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"type": "number",
"uiComponent": "thermostat",
"title": {
"en": "Target Temperature",
"no": "Ønsket temperatur"
},
"desc": {
"en": "The target supply air temperature setpoint",
"no": "Ønsket temperaturinnstilling for tilluft"
},
"units": {
"en": "°C",
"no": "°C"
},
"min": 12,
"max": 22,
"step": 1,
"decimals": 0,
"getable": true,
"setable": true,
"insights": true
}

75 changes: 75 additions & 0 deletions .homeycompose/flow/actions/set_auto_air_quality_control_mode.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"id": "set_auto_air_quality_control_mode",
"title": {
"en": "Set auto air quality control mode",
"no": "Sett automatisk luftkvalitetsmodus"
},
"titleFormatted": {
"en": "Set auto air quality control mode to [[mode]]",
"no": "Sett automatisk luftkvalitetsmodus til [[mode]]"
},
"hint": {
"en": "Sets the auto air quality control mode.",
"no": "Setter automatisk luftkvalitetsmodus."
},
"args": [
{
"name": "device",
"type": "device",
"filter": "driver_id=swegoncasa"
},
{
"name": "mode",
"type": "dropdown",
"title": {
"en": "Mode",
"no": "Modus"
},
"values": [
{
"id": "off",
"label": {
"en": "Off",
"no": "Av"
}
},
{
"id": "user",
"label": {
"en": "User",
"no": "Bruker"
}
},
{
"id": "low",
"label": {
"en": "Low",
"no": "Lav"
}
},
{
"id": "normal",
"label": {
"en": "Normal",
"no": "Normal"
}
},
{
"id": "high",
"label": {
"en": "High",
"no": "Høy"
}
},
{
"id": "full",
"label": {
"en": "Full",
"no": "Full"
}
}
]
}
]
}

75 changes: 75 additions & 0 deletions .homeycompose/flow/actions/set_auto_humidity_control_mode.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"id": "set_auto_humidity_control_mode",
"title": {
"en": "Set auto humidity control mode",
"no": "Sett automatisk luftfuktighetsmodus"
},
"titleFormatted": {
"en": "Set auto humidity control mode to [[mode]]",
"no": "Sett automatisk luftfuktighetsmodus til [[mode]]"
},
"hint": {
"en": "Sets the auto humidity control mode.",
"no": "Setter automatisk luftfuktighetsmodus."
},
"args": [
{
"name": "device",
"type": "device",
"filter": "driver_id=swegoncasa"
},
{
"name": "mode",
"type": "dropdown",
"title": {
"en": "Mode",
"no": "Modus"
},
"values": [
{
"id": "off",
"label": {
"en": "Off",
"no": "Av"
}
},
{
"id": "user",
"label": {
"en": "User",
"no": "Bruker"
}
},
{
"id": "low",
"label": {
"en": "Low",
"no": "Lav"
}
},
{
"id": "normal",
"label": {
"en": "Normal",
"no": "Normal"
}
},
{
"id": "high",
"label": {
"en": "High",
"no": "Høy"
}
},
{
"id": "full",
"label": {
"en": "Full",
"no": "Full"
}
}
]
}
]
}

75 changes: 75 additions & 0 deletions .homeycompose/flow/actions/set_summer_night_cooling_mode.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"id": "set_summer_night_cooling_mode",
"title": {
"en": "Set summer night cooling mode",
"no": "Sett sommernatt avkjølingsmodus"
},
"titleFormatted": {
"en": "Set summer night cooling mode to [[mode]]",
"no": "Sett sommernatt avkjølingsmodus til [[mode]]"
},
"hint": {
"en": "Sets the summer night cooling mode.",
"no": "Setter sommernatt avkjølingsmodus."
},
"args": [
{
"name": "device",
"type": "device",
"filter": "driver_id=swegoncasa"
},
{
"name": "mode",
"type": "dropdown",
"title": {
"en": "Mode",
"no": "Modus"
},
"values": [
{
"id": "off",
"label": {
"en": "Off",
"no": "Av"
}
},
{
"id": "low",
"label": {
"en": "Low",
"no": "Lav"
}
},
{
"id": "normal",
"label": {
"en": "Normal",
"no": "Normal"
}
},
{
"id": "high",
"label": {
"en": "High",
"no": "Høy"
}
},
{
"id": "full",
"label": {
"en": "Full",
"no": "Full"
}
},
{
"id": "user",
"label": {
"en": "User",
"no": "Bruker"
}
}
]
}
]
}

38 changes: 38 additions & 0 deletions .homeycompose/flow/actions/set_temperature.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"id": "set_temperature",
"title": {
"en": "Set target temperature",
"no": "Sett ønsket temperatur"
},
"titleFormatted": {
"en": "Set target temperature to [[temperature]] °C",
"no": "Sett ønsket temperatur til [[temperature]] °C"
},
"hint": {
"en": "Sets the supply air temperature setpoint.",
"no": "Setter temperaturinnstillingen for tilluft."
},
"args": [
{
"name": "device",
"type": "device",
"filter": "driver_id=swegoncasa"
},
{
"name": "temperature",
"type": "number",
"title": {
"en": "Temperature",
"no": "Temperatur"
},
"placeholder": {
"en": "Temperature in °C",
"no": "Temperatur i °C"
},
"min": 12,
"max": 22,
"step": 1
}
]
}

Loading