Skip to content

Commit

Permalink
Prepare airco driver
Browse files Browse the repository at this point in the history
  • Loading branch information
bobvandevijver committed Nov 12, 2024
1 parent 4a77e05 commit b7b0055
Show file tree
Hide file tree
Showing 22 changed files with 685 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .homeycompose/flow/actions/send_command_boolean.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"name": "device",
"type": "device",
"filter": {
"driver_id": "button|camera|circuit_breaker|dimmer|doorbell|fan|garage_door|heater|irrigator|light|other|sensor_climate|sensor_co2|sensor_contact|sensor_human|sensor_motion|sensor_smoke|siren|socket|thermostat|window_coverings"
"driver_id": "airco|button|camera|circuit_breaker|dimmer|doorbell|fan|garage_door|heater|irrigator|light|other|sensor_climate|sensor_co2|sensor_contact|sensor_human|sensor_motion|sensor_smoke|siren|socket|thermostat|window_coverings"
},
"title": {
"en": "Device"
Expand Down
2 changes: 1 addition & 1 deletion .homeycompose/flow/actions/send_command_json.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"name": "device",
"type": "device",
"filter": {
"driver_id": "button|camera|circuit_breaker|dimmer|doorbell|fan|garage_door|heater|irrigator|light|other|sensor_climate|sensor_co2|sensor_contact|sensor_human|sensor_motion|sensor_smoke|siren|socket|thermostat|window_coverings"
"driver_id": "airco|button|camera|circuit_breaker|dimmer|doorbell|fan|garage_door|heater|irrigator|light|other|sensor_climate|sensor_co2|sensor_contact|sensor_human|sensor_motion|sensor_smoke|siren|socket|thermostat|window_coverings"
},
"title": {
"en": "Device"
Expand Down
2 changes: 1 addition & 1 deletion .homeycompose/flow/actions/send_command_number.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"name": "device",
"type": "device",
"filter": {
"driver_id": "button|camera|circuit_breaker|dimmer|doorbell|fan|garage_door|heater|irrigator|light|other|sensor_climate|sensor_co2|sensor_contact|sensor_human|sensor_motion|sensor_smoke|siren|socket|thermostat|window_coverings"
"driver_id": "airco|button|camera|circuit_breaker|dimmer|doorbell|fan|garage_door|heater|irrigator|light|other|sensor_climate|sensor_co2|sensor_contact|sensor_human|sensor_motion|sensor_smoke|siren|socket|thermostat|window_coverings"
},
"title": {
"en": "Device"
Expand Down
2 changes: 1 addition & 1 deletion .homeycompose/flow/actions/send_command_string.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"name": "device",
"type": "device",
"filter": {
"driver_id": "button|camera|circuit_breaker|dimmer|doorbell|fan|garage_door|heater|irrigator|light|other|sensor_climate|sensor_co2|sensor_contact|sensor_human|sensor_motion|sensor_smoke|siren|socket|thermostat|window_coverings"
"driver_id": "airco|button|camera|circuit_breaker|dimmer|doorbell|fan|garage_door|heater|irrigator|light|other|sensor_climate|sensor_co2|sensor_contact|sensor_human|sensor_motion|sensor_smoke|siren|socket|thermostat|window_coverings"
},
"title": {
"en": "Device"
Expand Down
2 changes: 1 addition & 1 deletion .homeycompose/flow/triggers/receive_status_boolean.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"name": "device",
"type": "device",
"filter": {
"driver_id": "button|camera|circuit_breaker|dimmer|doorbell|fan|garage_door|heater|irrigator|light|other|sensor_climate|sensor_co2|sensor_contact|sensor_human|sensor_motion|sensor_smoke|siren|socket|thermostat|window_coverings"
"driver_id": "airco|button|camera|circuit_breaker|dimmer|doorbell|fan|garage_door|heater|irrigator|light|other|sensor_climate|sensor_co2|sensor_contact|sensor_human|sensor_motion|sensor_smoke|siren|socket|thermostat|window_coverings"
},
"title": {
"en": "Device"
Expand Down
2 changes: 1 addition & 1 deletion .homeycompose/flow/triggers/receive_status_json.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"name": "device",
"type": "device",
"filter": {
"driver_id": "button|camera|circuit_breaker|dimmer|doorbell|fan|garage_door|heater|irrigator|light|other|sensor_climate|sensor_co2|sensor_contact|sensor_human|sensor_motion|sensor_smoke|siren|socket|thermostat|window_coverings"
"driver_id": "airco|button|camera|circuit_breaker|dimmer|doorbell|fan|garage_door|heater|irrigator|light|other|sensor_climate|sensor_co2|sensor_contact|sensor_human|sensor_motion|sensor_smoke|siren|socket|thermostat|window_coverings"
},
"title": {
"en": "Device"
Expand Down
2 changes: 1 addition & 1 deletion .homeycompose/flow/triggers/receive_status_number.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"name": "device",
"type": "device",
"filter": {
"driver_id": "button|camera|circuit_breaker|dimmer|doorbell|fan|garage_door|heater|irrigator|light|other|sensor_climate|sensor_co2|sensor_contact|sensor_human|sensor_motion|sensor_smoke|siren|socket|thermostat|window_coverings"
"driver_id": "airco|button|camera|circuit_breaker|dimmer|doorbell|fan|garage_door|heater|irrigator|light|other|sensor_climate|sensor_co2|sensor_contact|sensor_human|sensor_motion|sensor_smoke|siren|socket|thermostat|window_coverings"
},
"title": {
"en": "Device"
Expand Down
2 changes: 1 addition & 1 deletion .homeycompose/flow/triggers/receive_status_string.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"name": "device",
"type": "device",
"filter": {
"driver_id": "button|camera|circuit_breaker|dimmer|doorbell|fan|garage_door|heater|irrigator|light|other|sensor_climate|sensor_co2|sensor_contact|sensor_human|sensor_motion|sensor_smoke|siren|socket|thermostat|window_coverings"
"driver_id": "airco|button|camera|circuit_breaker|dimmer|doorbell|fan|garage_door|heater|irrigator|light|other|sensor_climate|sensor_co2|sensor_contact|sensor_human|sensor_motion|sensor_smoke|siren|socket|thermostat|window_coverings"
},
"title": {
"en": "Device"
Expand Down
254 changes: 246 additions & 8 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@
"name": "device",
"type": "device",
"filter": {
"driver_id": "button|camera|circuit_breaker|dimmer|doorbell|fan|garage_door|heater|irrigator|light|other|sensor_climate|sensor_co2|sensor_contact|sensor_human|sensor_motion|sensor_smoke|siren|socket|thermostat|window_coverings"
"driver_id": "airco|button|camera|circuit_breaker|dimmer|doorbell|fan|garage_door|heater|irrigator|light|other|sensor_climate|sensor_co2|sensor_contact|sensor_human|sensor_motion|sensor_smoke|siren|socket|thermostat|window_coverings"
},
"title": {
"en": "Device"
Expand Down Expand Up @@ -479,7 +479,7 @@
"name": "device",
"type": "device",
"filter": {
"driver_id": "button|camera|circuit_breaker|dimmer|doorbell|fan|garage_door|heater|irrigator|light|other|sensor_climate|sensor_co2|sensor_contact|sensor_human|sensor_motion|sensor_smoke|siren|socket|thermostat|window_coverings"
"driver_id": "airco|button|camera|circuit_breaker|dimmer|doorbell|fan|garage_door|heater|irrigator|light|other|sensor_climate|sensor_co2|sensor_contact|sensor_human|sensor_motion|sensor_smoke|siren|socket|thermostat|window_coverings"
},
"title": {
"en": "Device"
Expand Down Expand Up @@ -520,7 +520,7 @@
"name": "device",
"type": "device",
"filter": {
"driver_id": "button|camera|circuit_breaker|dimmer|doorbell|fan|garage_door|heater|irrigator|light|other|sensor_climate|sensor_co2|sensor_contact|sensor_human|sensor_motion|sensor_smoke|siren|socket|thermostat|window_coverings"
"driver_id": "airco|button|camera|circuit_breaker|dimmer|doorbell|fan|garage_door|heater|irrigator|light|other|sensor_climate|sensor_co2|sensor_contact|sensor_human|sensor_motion|sensor_smoke|siren|socket|thermostat|window_coverings"
},
"title": {
"en": "Device"
Expand Down Expand Up @@ -561,7 +561,7 @@
"name": "device",
"type": "device",
"filter": {
"driver_id": "button|camera|circuit_breaker|dimmer|doorbell|fan|garage_door|heater|irrigator|light|other|sensor_climate|sensor_co2|sensor_contact|sensor_human|sensor_motion|sensor_smoke|siren|socket|thermostat|window_coverings"
"driver_id": "airco|button|camera|circuit_breaker|dimmer|doorbell|fan|garage_door|heater|irrigator|light|other|sensor_climate|sensor_co2|sensor_contact|sensor_human|sensor_motion|sensor_smoke|siren|socket|thermostat|window_coverings"
},
"title": {
"en": "Device"
Expand Down Expand Up @@ -1349,7 +1349,7 @@
"name": "device",
"type": "device",
"filter": {
"driver_id": "button|camera|circuit_breaker|dimmer|doorbell|fan|garage_door|heater|irrigator|light|other|sensor_climate|sensor_co2|sensor_contact|sensor_human|sensor_motion|sensor_smoke|siren|socket|thermostat|window_coverings"
"driver_id": "airco|button|camera|circuit_breaker|dimmer|doorbell|fan|garage_door|heater|irrigator|light|other|sensor_climate|sensor_co2|sensor_contact|sensor_human|sensor_motion|sensor_smoke|siren|socket|thermostat|window_coverings"
},
"title": {
"en": "Device"
Expand Down Expand Up @@ -1387,7 +1387,7 @@
"name": "device",
"type": "device",
"filter": {
"driver_id": "button|camera|circuit_breaker|dimmer|doorbell|fan|garage_door|heater|irrigator|light|other|sensor_climate|sensor_co2|sensor_contact|sensor_human|sensor_motion|sensor_smoke|siren|socket|thermostat|window_coverings"
"driver_id": "airco|button|camera|circuit_breaker|dimmer|doorbell|fan|garage_door|heater|irrigator|light|other|sensor_climate|sensor_co2|sensor_contact|sensor_human|sensor_motion|sensor_smoke|siren|socket|thermostat|window_coverings"
},
"title": {
"en": "Device"
Expand Down Expand Up @@ -1425,7 +1425,7 @@
"name": "device",
"type": "device",
"filter": {
"driver_id": "button|camera|circuit_breaker|dimmer|doorbell|fan|garage_door|heater|irrigator|light|other|sensor_climate|sensor_co2|sensor_contact|sensor_human|sensor_motion|sensor_smoke|siren|socket|thermostat|window_coverings"
"driver_id": "airco|button|camera|circuit_breaker|dimmer|doorbell|fan|garage_door|heater|irrigator|light|other|sensor_climate|sensor_co2|sensor_contact|sensor_human|sensor_motion|sensor_smoke|siren|socket|thermostat|window_coverings"
},
"title": {
"en": "Device"
Expand Down Expand Up @@ -1463,7 +1463,7 @@
"name": "device",
"type": "device",
"filter": {
"driver_id": "button|camera|circuit_breaker|dimmer|doorbell|fan|garage_door|heater|irrigator|light|other|sensor_climate|sensor_co2|sensor_contact|sensor_human|sensor_motion|sensor_smoke|siren|socket|thermostat|window_coverings"
"driver_id": "airco|button|camera|circuit_breaker|dimmer|doorbell|fan|garage_door|heater|irrigator|light|other|sensor_climate|sensor_co2|sensor_contact|sensor_human|sensor_motion|sensor_smoke|siren|socket|thermostat|window_coverings"
},
"title": {
"en": "Device"
Expand Down Expand Up @@ -1708,6 +1708,29 @@
],
"id": "trigger_scene"
},
{
"id": "airco_set_child_lock",
"title": {
"en": "Set child lock"
},
"titleFormatted": {
"en": "Set child lock [[value]]"
},
"args": [
{
"type": "device",
"name": "device",
"filter": "driver_id=airco&capabilities=child_lock"
},
{
"name": "value",
"type": "checkbox",
"title": {
"en": "Value"
}
}
]
},
{
"id": "camera_cruise_switch",
"title": {
Expand Down Expand Up @@ -3182,6 +3205,221 @@
]
},
"drivers": [
{
"capabilities": [
"onoff",
"target_temperature",
"measure_temperature"
],
"connectivity": [
"cloud"
],
"platforms": [
"local",
"cloud"
],
"images": {
"small": "/drivers/airco/assets/images/small.png",
"large": "/drivers/airco/assets/images/large.png",
"xlarge": "/drivers/airco/assets/images/xlarge.png"
},
"pair": [
{
"id": "welcome",
"navigation": {
"next": "login_oauth2"
}
},
{
"id": "login_oauth2",
"template": "login_oauth2"
},
{
"id": "list_devices",
"template": "list_devices",
"navigation": {
"next": "add_devices"
}
},
{
"id": "add_devices",
"template": "add_devices"
}
],
"repair": [
{
"id": "login_oauth2",
"template": "login_oauth2"
}
],
"class": "airconditioning",
"name": {
"en": "Air Conditioning",
"nl": "Airconditioning"
},
"id": "airco",
"settings": [
{
"id": "deviceSpecification",
"type": "label",
"label": {
"en": "Device Specification"
},
"hint": {
"en": "The Tuya specification of this device"
},
"value": "<not available>"
},
{
"id": "temp_set_scaling",
"type": "dropdown",
"label": {
"en": "Target Temperature Scale"
},
"hint": {
"en": "By how much the temperature targeted by the device is scaled."
},
"value": "0",
"values": [
{
"id": "0",
"label": {
"en": "1"
}
},
{
"id": "1",
"label": {
"en": "1/10"
}
},
{
"id": "2",
"label": {
"en": "1/100"
}
},
{
"id": "3",
"label": {
"en": "1/1000"
}
}
]
},
{
"id": "temp_current_scaling",
"type": "dropdown",
"label": {
"en": "Measured Temperature Scale"
},
"hint": {
"en": "By how much the temperature measured by the device is scaled."
},
"value": "0",
"values": [
{
"id": "0",
"label": {
"en": "1"
}
},
{
"id": "1",
"label": {
"en": "1/10"
}
},
{
"id": "2",
"label": {
"en": "1/100"
}
},
{
"id": "3",
"label": {
"en": "1/1000"
}
}
]
},
{
"id": "humidity_set_scaling",
"type": "dropdown",
"label": {
"en": "Target Humidity Scale"
},
"hint": {
"en": "By how much the humidity targeted by the device is scaled."
},
"value": "0",
"values": [
{
"id": "0",
"label": {
"en": "1"
}
},
{
"id": "1",
"label": {
"en": "1/10"
}
},
{
"id": "2",
"label": {
"en": "1/100"
}
},
{
"id": "3",
"label": {
"en": "1/1000"
}
}
]
},
{
"id": "humidity_current_scaling",
"type": "dropdown",
"label": {
"en": "Measured Humidity Scale"
},
"hint": {
"en": "By how much the humidity measured by the device is scaled."
},
"value": "0",
"values": [
{
"id": "0",
"label": {
"en": "1"
}
},
{
"id": "1",
"label": {
"en": "1/10"
}
},
{
"id": "2",
"label": {
"en": "1/100"
}
},
{
"id": "3",
"label": {
"en": "1/1000"
}
}
]
}
]
},
{
"capabilities": [
"measure_battery"
Expand Down
Loading

0 comments on commit b7b0055

Please sign in to comment.