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

Tuya controlled dehumidifier (CS category) #174

Merged
merged 9 commits into from
Dec 22, 2023
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
38 changes: 38 additions & 0 deletions .homeycompose/capabilities/dehumidifier_fan_speed.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"type": "enum",
"title": {
"en": "Fan speed"
},
"desc": {
"en": "Fan speed"
},
"getable": true,
"setable": true,
"uiComponent": "picker",
"values": [
{
"id": "low",
"title": {
"en": "Low"
}
},
{
"id": "mid",
"title": {
"en": "Mid"
}
},
{
"id": "high",
"title": {
"en": "High"
}
},
{
"id": "auto",
"title": {
"en": "Auto"
}
}
]
}
57 changes: 57 additions & 0 deletions .homeycompose/capabilities/dehumidifier_fault.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"type": "enum",
"title": {
"en": "Fault"
},
"desc": {
"en": "Dehumidifier fault"
},
"getable": true,
"setable": false,
"uiComponent": "sensor",
"icon": "/assets/error.svg",
"values": [
{
"id": "OK",
"title": {
"en": "OK"
}
},
{
"id": "C1",
"title": {
"en": "NTC thermistor fault"
}
},
{
"id": "C2",
"title": {
"en": "Temp/Hum sensor fault"
}
},
{
"id": "C8",
"title": {
"en": "Refrigerant leak"
}
},
{
"id": "P1",
"title": {
"en": "Auto defrost"
}
},
{
"id": "P2",
"title": {
"en": "Water tank full"
}
},
{
"id": "Unkown",
"title": {
"en": "Unknown fault"
}
}
]
}
38 changes: 38 additions & 0 deletions .homeycompose/capabilities/dehumidifier_mode.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"type": "enum",
"title": {
"en": "Dehumidifier mode"
},
"desc": {
"en": "Dehumidifier mode"
},
"getable": true,
"setable": true,
"uiComponent": "picker",
"values": [
{
"id": "dry_clothes",
"title": {
"en": "Clothes dry"
}
},
{
"id": "sleep_mode",
"title": {
"en": "Night mode"
}
},
{
"id": "manual_dehumidify",
"title": {
"en": "Manual"
}
},
{
"id": "auto",
"title": {
"en": "Auto"
}
}
]
}
75 changes: 75 additions & 0 deletions .homeycompose/capabilities/dehumidifier_target_humidity.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"type": "enum",
"title": {
"en": "Target Humidity"
},
"desc": {
"en": "Target Humidity"
},
"getable": true,
"setable": true,
"units": "%",
"uiComponent": "picker",
"values": [
{
"id": "35",
"title": {
"en": "35 %"
}
},
{
"id": "40",
"title": {
"en": "40 %"
}
},
{
"id": "45",
"title": {
"en": "45 %"
}
},
{
"id": "50",
"title": {
"en": "50 %"
}
},
{
"id": "55",
"title": {
"en": "55 %"
}
},
{
"id": "60",
"title": {
"en": "60 %"
}
},
{
"id": "65",
"title": {
"en": "65 %"
}
},
{
"id": "70",
"title": {
"en": "70 %"
}
},
{
"id": "75",
"title": {
"en": "75 %"
}
},
{
"id": "80",
"title": {
"en": "80 %"
}
}
]
}
2 changes: 1 addition & 1 deletion .homeycompose/drivers/templates/defaults.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"icon": "{{driverAssetsPath}}/icon.svg",
"platforms": ["local"],
"connectivity": ["cloud"],
"connectivity": ["cloud"],
"pair": [
{
"id": "list_devices",
Expand Down
2 changes: 2 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ class TuyaCloudApp extends Homey.App {
return this.homey.drivers.getDriver('air-conditioner');
case 'airPurifier':
break;
case 'dehumidifier':
return this.homey.drivers.getDriver('dehumidifier');
case 'fan':
break;
case 'smokeSensor':
Expand Down