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

Added support for MH5-2D thermostat #72

Open
wants to merge 1 commit into
base: SDK3
Choose a base branch
from
Open
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: 3 additions & 0 deletions .homeychangelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,8 @@
},
"1.5.4": {
"en": "Update to SDK3 for Homey Pro (Early 2023) and add support for MH8-FC4 and C421 shutter panel"
},
"1.5.5": {
"en": "Add support for MH5-2D thermostat"
}
}
15 changes: 10 additions & 5 deletions .homeycompose/capabilities/fan_speed.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,41 @@
"title": {
"en": "Fan speed",
"nl": "Ventilator snelheid",
"no": "Viftehastighet"
"no": "Viftehastighet",
"sv": "Ventilationshastighet"
},
"desc": {
"en": "Speed of the ventilator fan",
"nl": "Snelheid van de ventilator",
"no": "Hastighet på ventilatorviften"
"no": "Hastighet på ventilatorviften",
"sv": "Ventilationsfläktens hastighet"
},
"values": [
{
"id": "Low",
"title": {
"en": "Low",
"nl": "Laag",
"no": "Lav"
"no": "Lav",
"sv": "Låg"
}
},
{
"id": "Medium",
"title": {
"en": "Medium",
"nl": "Gemiddeld",
"no": "Middels"
"no": "Middels",
"sv": "Medium"
}
},
{
"id": "High",
"title": {
"en": "High",
"nl": "Hoog",
"no": "Høy"
"no": "Høy",
"sv": "Hög"
}
}
],
Expand Down
56 changes: 56 additions & 0 deletions .homeycompose/capabilities/fan_speed_MH52D.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"type": "enum",
"uiComponent": "picker",
"title": {
"en": "Fan speed",
"nl": "Ventilator snelheid",
"no": "Viftehastighet",
"sv": "Ventilationshastighet"
},
"desc": {
"en": "Speed of the ventilator fan",
"nl": "Snelheid van de ventilator",
"no": "Hastighet på ventilatorviften",
"sv": "Ventilationsfläktens hastighet"
},
"values": [
{
"id": "Low",
"title": {
"en": "Low",
"nl": "Laag",
"no": "Lav",
"sv": "Låg"
}
},
{
"id": "Medium",
"title": {
"en": "Medium",
"nl": "Gemiddeld",
"no": "Middels",
"sv": "Medium"
}
},
{
"id": "High",
"title": {
"en": "High",
"nl": "Hoog",
"no": "Høy",
"sv": "Hög"
}
},
{
"id": "Auto Low",
"title": {
"en": "Auto",
"nl": "Auto",
"no": "Auto",
"sv": "Auto"
}
}
],
"getable": true,
"setable": true
}
18 changes: 12 additions & 6 deletions .homeycompose/capabilities/thermostat_mode_hvac.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,44 +4,50 @@
"title": {
"en": "Thermostat mode",
"nl": "Thermostaat modus",
"no": "Termostatmodus"
"no": "Termostatmodus",
"sv": "Termostatens läge"
},
"desc": {
"en": "Mode of the thermostat",
"nl": "Modus van de thermostaat",
"no": "Modus for termostaten"
"no": "Modus for termostaten",
"sv": "Termostatens läge"
},
"values": [
{
"id": "Heat",
"title": {
"en": "Heat",
"nl": "Verhitten",
"no": "Varme"
"no": "Varme",
"sv": "Värme"
}
},
{
"id": "Cool",
"title": {
"en": "Cool",
"nl": "Koelen",
"no": "Avkjøle"
"no": "Avkjøle",
"sv": "Kyla"
}
},
{
"id": "Fan Only",
"title": {
"en": "Ventilation",
"nl": "Ventilatie",
"no": "Ventilasjon"
"no": "Ventilasjon",
"sv": "Ventilation"
}
},
{
"id": "Off",
"title": {
"en": "Off",
"nl": "Uit",
"no": "Av"
"no": "Av",
"sv": "Av"
}
}
],
Expand Down
68 changes: 68 additions & 0 deletions .homeycompose/flow/actions/change_fan_speed_MH52D.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"id": "change_fan_speed_MH52D",
"title": {
"en": "Set the fan mode",
"nl": "Stel de ventilatormodus in",
"sv": "Ställ in fläktläget"
},
"titleFormatted": {
"en": "Activate the fan [[mode]]",
"nl": "Activeer de ventilator [[mode]]",
"sv": "Aktivera fläkten [[mode]]"
},
"hint": {
"en": "Set the fan mode (Off / Low / Medium / High) and activate instantly",
"nl": "Stel de ventilatormodus in (Uit / Laag / Medium / Hoog) en activeer deze direct",
"sv": "Ställ in fläktläget (Av / Låg / Medium / Hög) och aktivera omedelbart"
},
"args": [
{
"name": "device",
"type": "device",
"filter": "driver_id=MH52D"
},
{
"name": "mode",
"type": "dropdown",
"title": {
"en": "Select the fan mode",
"nl": "Selecteer de ventilatormodus",
"sv": "Välj fläktläge"
},
"values": [
{
"id": "Low",
"title": {
"en": "Low",
"nl": "Laag",
"sv": "Låg"
}
},
{
"id": "Medium",
"title": {
"en": "Medium",
"nl": "Medium",
"sv": "Medium"
}
},
{
"id": "High",
"title": {
"en": "High",
"nl": "Hoog",
"sv": "Hög"
}
},
{
"id": "Auto Low",
"title": {
"en": "Auto",
"nl": "Auto",
"sv": "Auto"
}
}
]
}
]
}
68 changes: 68 additions & 0 deletions .homeycompose/flow/actions/change_thermostat_mode_MH52D.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"id": "change_thermostat_mode_MH52D",
"title": {
"en": "Set the thermostat mode",
"nl": "Stel de thermostaat modus in",
"sv": "Ställ in termostatläget"
},
"titleFormatted": {
"en": "Activate the thermostat [[mode]]",
"nl": "Activeer de thermostaat [[mode]]",
"sv": "Aktivera termostatläget [[mode]]"
},
"hint": {
"en": "Set the thermostat mode (Off / Heating / Cooling / Fan) and activate instantly",
"nl": "Stel de thermostaat modus (Uit / Warmte / Koel / Ventilator) in en activeer direct",
"sv": "Ställ in termostatläget (Av / Värme / Kyla / Fläkt) och aktivera omedelbart"
},
"args": [
{
"name": "device",
"type": "device",
"filter": "driver_id=MH52D"
},
{
"name": "mode",
"type": "dropdown",
"title": {
"en": "Select the thermostat mode",
"nl": "Selecteer de thermostaat modus",
"sv": "Välj termostatläge"
},
"values": [
{
"id": "Off",
"title": {
"en": "Off",
"nl": "Uit",
"sv": "Av"
}
},
{
"id": "Heat",
"title": {
"en": "Heat",
"nl": "Warmte",
"sv": "Värme"
}
},
{
"id": "Cool",
"title": {
"en": "Cool",
"nl": "Koel",
"sv": "Kyla"
}
},
{
"id": "Fan Only",
"title": {
"en": "Only Fan",
"nl": "Ventilator",
"sv": "Endast Fläkt"
}
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"id": "change_thermostat_mode_setpoint_MH52D",
"title": {
"en": "Set a setpoint of a thermostat mode",
"nl": "Stel de temperatuur in van een thermostaat modus",
"sv": "Ställ in ett börvärde för ett termostatläge"
},
"titleFormatted": {
"en": "Set the thermostat mode [[setpointMode]] to [[setpointValue]] °C",
"nl": "Stel de thermostaat modus [[setpointMode]] in naar [[setpointValue]] °C",
"sv": "Ställ in termostatläget [[setpointMode]] till [[setpointValue]] °C"
},
"hint": {
"en": "Change the setpoint of a specific thermostat mode (Cooling / Heating). Note: does NOT activate this mode",
"nl": "Stel de temperatuur in van een thermostaat modus (Koelen / Warmte). Let op: activeert deze modus niet",
"sv": "Ändra börvärdet för ett specifikt termostatläge (Kylning / Värme). Obs: aktiverar INTE detta läge"
},
"args": [
{
"name": "device",
"type": "device",
"filter": "driver_id=MH52D"
},
{
"name": "setpointMode",
"type": "dropdown",
"title": {
"en": "Select the thermostat mode",
"nl": "Selecteer de thermostaat modus",
"sv": "Välj termostatläge"
},
"values": [
{
"id": "Heat",
"title": {
"en": "Heat",
"nl": "Warmte",
"sv": "Värme"
}
},
{
"id": "Cool",
"title": {
"en": "Cool",
"nl": "Koel",
"sv": "Kyla"
}
}
]
},
{
"name": "setpointValue",
"type": "range",
"title": {
"en": "Select the thermostat setpoint",
"nl": "Selecteer de thermostaat temperatuur",
"sv": "Välj termostatbörvärde"
},
"min": 5,
"max": 37,
"step": 0.5,
"label": "°C",
"labelDecimals": 1
}
]
}
5 changes: 3 additions & 2 deletions .homeycompose/flow/conditions/thermostat_onoff_on.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"id": "thermostat_onoff_on",
"title": {
"en": "Thermostat is !{{on|off}}",
"nl": "Thermostat is !{{aan|uit}}"
"nl": "Thermostat is !{{aan|uit}}",
"sv": "Termostaten är !{{on|off}}"
},
"args": [
{
Expand All @@ -11,4 +12,4 @@
"filter": "driver_id=MH7|MH7H"
}
]
}
}
Loading