Skip to content

Commit

Permalink
Merge pull request #457 from athombv/feature/new-capabilities
Browse files Browse the repository at this point in the history
Feature/new capabilities
  • Loading branch information
nozols authored Sep 10, 2024
2 parents a813986 + 0668652 commit c3afa21
Show file tree
Hide file tree
Showing 129 changed files with 6,375 additions and 65 deletions.
99 changes: 98 additions & 1 deletion assets/capability/capabilities.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,102 @@
"speaker_album",
"speaker_track",
"speaker_duration",
"speaker_position"
"speaker_position",
"alarm_bin_full",
"alarm_bin_missing",
"alarm_cleaning_pad_missing",
"alarm_cold",
"alarm_connectivity",
"alarm_door_fault",
"alarm_gas",
"alarm_light",
"alarm_lost",
"alarm_moisture",
"alarm_noise",
"alarm_occupancy",
"alarm_pm01",
"alarm_pm1",
"alarm_pm10",
"alarm_power",
"alarm_presence",
"alarm_problem",
"alarm_pump_device",
"alarm_pump_supply",
"alarm_running",
"alarm_safety",
"alarm_stuck",
"alarm_tank_empty",
"alarm_tank_missing",
"alarm_tank_open",
"alarm_vibration",
"audio_output",
"battery_charging_state",
"dishwasher_program",
"docked",
"fan_mode",
"fan_speed",
"heater_operation_mode",
"measure_hepa_filter",
"hot_water_mode",
"laundry_washer_cycles",
"laundry_washer_program",
"laundry_washer_speed",
"level_aqi",
"level_carbon_filter",
"level_ch2o",
"level_co",
"level_co2",
"level_nox",
"level_o3",
"level_pm1",
"level_pm01",
"level_pm10",
"level_pm25",
"level_radon",
"level_so2",
"level_tvoc",
"measure_aqi",
"measure_carbon_filter",
"measure_ch2o",
"measure_content_volume",
"measure_data_rate",
"measure_data_size",
"measure_distance",
"measure_frequency",
"level_hepa_filter",
"measure_moisture",
"measure_monetary",
"measure_nox",
"measure_o3",
"measure_odor",
"measure_ph",
"measure_pm1",
"measure_pm01",
"measure_pm10",
"measure_radon",
"measure_rain_intensity",
"measure_rotation",
"measure_signal_strength",
"measure_so2",
"measure_speed",
"measure_tvoc",
"measure_tvoc_index",
"measure_weight",
"media_input",
"mower_state",
"operational_state",
"oscillating",
"pump_mode",
"pump_setpoint",
"refrigerator_mode",
"speaker_stop",
"swing_mode",
"target_humidity_max",
"target_humidity_min",
"target_humidity",
"target_temperature_level",
"target_temperature_max",
"target_temperature_min",
"vacuumcleaner_job_mode",
"valve_position"
]
2 changes: 1 addition & 1 deletion assets/capability/capabilities/alarm_battery.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"type": "boolean",
"title": {
"en": "Battery alarm",
"nl": "Batterij alarm",
"nl": "Batterij-alarm",
"de": "Batterie-Alarm",
"fr": "Alarme batterie",
"it": "Allarme batteria",
Expand Down
52 changes: 52 additions & 0 deletions assets/capability/capabilities/alarm_bin_full.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"type": "boolean",
"title": {
"en": "Bin full alarm",
"nl": "Afvalbak-vol-alarm"
},
"desc": {
"en": "True when the bin is full",
"nl": "Gaat af als de afvalbak vol is"
},
"insights": true,
"insightsTitleTrue": {
"en": "The bin was full",
"nl": "De afvalbak was vol"
},
"insightsTitleFalse": {
"en": "The bin was not full",
"nl": "De afvalbak was niet vol"
},
"getable": true,
"setable": false,
"uiComponent": "sensor",
"$flow": {
"triggers": [
{
"id": "alarm_bin_full_true",
"highlight": true,
"title": {
"en": "The bin is full",
"nl": "De afvalbak is vol"
}
},
{
"id": "alarm_bin_full_false",
"title": {
"en": "The bin is no longer full",
"nl": "De afvalbak is niet langer vol"
}
}
],
"conditions": [
{
"id": "alarm_bin_full",
"title": {
"en": "The bin is !{{full|not full}}",
"nl": "The afvalbak is !{{vol|niet vol}}"
}
}
]
},
"minCompatibility": "12.1.0"
}
52 changes: 52 additions & 0 deletions assets/capability/capabilities/alarm_bin_missing.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"type": "boolean",
"title": {
"en": "Bin missing alarm",
"nl": "Afvalbak-ontbreekt-alarm"
},
"desc": {
"en": "True when the bin is missing.",
"nl": "Gaat af als de afvalbak ontbreekt."
},
"insights": true,
"insightsTitleTrue": {
"en": "The bin was removed",
"nl": "De afvalbak was verwijderd"
},
"insightsTitleFalse": {
"en": "The bin was placed",
"nl": "De afvalbak was geplaatst"
},
"getable": true,
"setable": false,
"uiComponent": "sensor",
"$flow": {
"triggers": [
{
"id": "alarm_bin_missing_true",
"highlight": true,
"title": {
"en": "The bin was removed",
"nl": "De afvalbak is verwijderd"
}
},
{
"id": "alarm_bin_missing_false",
"title": {
"en": "The bin was placed",
"nl": "De afvalbak is geplaatst"
}
}
],
"conditions": [
{
"id": "alarm_bin_missing",
"title": {
"en": "The bin is !{{missing|present}}",
"nl": "De afvalbak is !{{aanwezig|afwezig}}"
}
}
]
},
"minCompatibility": "12.1.0"
}
52 changes: 52 additions & 0 deletions assets/capability/capabilities/alarm_cleaning_pad_missing.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"type": "boolean",
"title": {
"en": "Cleaning pad missing alarm",
"nl": "Reinigingspad-ontbreekt-alarm"
},
"desc": {
"en": "True when the cleaning pad is missing.",
"nl": "Gaat af als het reinigingspad ontbreekt."
},
"insights": true,
"insightsTitleTrue": {
"en": "The cleaning pad was removed",
"nl": "Het reinigingspad was verwijderd"
},
"insightsTitleFalse": {
"en": "The cleaning pad was placed",
"nl": "Het reinigingspad was geplaatst"
},
"getable": true,
"setable": false,
"uiComponent": "sensor",
"$flow": {
"triggers": [
{
"id": "alarm_pad_missing_true",
"highlight": true,
"title": {
"en": "The cleaning pad was removed",
"nl": "Het reinigingspad is verwijderd"
}
},
{
"id": "alarm_pad_missing_false",
"title": {
"en": "The cleaning pad was placed",
"nl": "Het reinigingspad is geplaatst"
}
}
],
"conditions": [
{
"id": "alarm_pad_missing",
"title": {
"en": "The cleaning pad is !{{missing|present}}",
"nl": "Het reigningingspad is !{{aanwezig|afwezig}}"
}
}
]
},
"minCompatibility": "12.1.0"
}
12 changes: 6 additions & 6 deletions assets/capability/capabilities/alarm_co.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"type": "boolean",
"title": {
"en": "CO alarm",
"nl": "CO alarm",
"nl": "CO-alarm",
"de": "CO-Alarm",
"fr": "Alarme CO",
"it": "Allarme CO",
Expand Down Expand Up @@ -31,7 +31,7 @@
"insights": true,
"insightsTitleTrue": {
"en": "CO alarm turned on",
"nl": "CO alarm ging af",
"nl": "CO-alarm ging af",
"de": "CO-Alarm ist angegangen",
"fr": "L'alarme CO est activée",
"it": "Allarme CO attivato",
Expand All @@ -45,7 +45,7 @@
},
"insightsTitleFalse": {
"en": "CO alarm turned off",
"nl": "CO alarm ging uit",
"nl": "CO-alarm ging uit",
"de": "CO-Alarm ist ausgegangen",
"fr": "L'alarme CO est désactivée",
"it": "Allarme CO disattivato",
Expand All @@ -67,7 +67,7 @@
"highlight": true,
"title": {
"en": "The CO alarm turned on",
"nl": "Het CO alarm gaat aan",
"nl": "Het CO-alarm gaat aan",
"de": "Der CO-Alarm ist angegangen",
"fr": "L'alarme CO s'est activée",
"it": "L'allarme CO è stato attivato",
Expand All @@ -84,7 +84,7 @@
"id": "alarm_co_false",
"title": {
"en": "The CO alarm turned off",
"nl": "Het CO alarm gaat uit",
"nl": "Het CO-alarm gaat uit",
"de": "Der CO-Alarm ist ausgegangen",
"fr": "L'alarme CO s'est désactivée",
"it": "L'allarme CO è stato disattivato",
Expand All @@ -103,7 +103,7 @@
"id": "alarm_co",
"title": {
"en": "The CO alarm is !{{on|off}}",
"nl": "Het CO alarm is !{{aan|uit}}",
"nl": "Het CO-alarm is !{{aan|uit}}",
"de": "Der CO-Alarm ist !{{an|aus}}",
"fr": "L'alarme CO est !{{en marche|arrêtée}}",
"it": "L'allarme CO è !{{acceso|spento}}",
Expand Down
14 changes: 7 additions & 7 deletions assets/capability/capabilities/alarm_co2.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"type": "boolean",
"title": {
"en": "CO2 alarm",
"nl": "CO2 alarm",
"nl": "CO2-alarm",
"de": "CO2-Alarm",
"fr": "Alarme CO2",
"it": "Allarme CO2",
Expand All @@ -15,7 +15,7 @@
},
"desc": {
"en": "True when dangerous CO2 values have been detected",
"nl": "Gaat af bij gevaarlijke concentraties CO2 alarm",
"nl": "Gaat af bij gevaarlijke concentraties CO2",
"de": "True, wenn gefährliche CO2-Werte erkannt wurden",
"fr": "Vrai si des valeurs dangereuses de CO2 ont été détectées",
"it": "Vero quando sono stati rilevati valori pericolosi di CO2",
Expand All @@ -29,7 +29,7 @@
"insights": true,
"insightsTitleTrue": {
"en": "CO2 alarm turned on",
"nl": "CO2 alarm ging af",
"nl": "CO2-alarm ging af",
"de": "CO2-Alarm ist angegangen",
"fr": "L'alarme CO2 s'est activée",
"it": "Allarme CO2 attivato",
Expand All @@ -43,7 +43,7 @@
},
"insightsTitleFalse": {
"en": "CO2 alarm turned off",
"nl": "CO2 alarm ging uit",
"nl": "CO2-alarm ging uit",
"de": "CO2-Alarm ist ausgegangen",
"fr": "L'alarme CO2 s'est désactivée",
"it": "Allarme CO2 disattivato",
Expand All @@ -65,7 +65,7 @@
"highlight": true,
"title": {
"en": "The CO2 alarm turned on",
"nl": "Het CO2 alarm gaat aan",
"nl": "Het CO2-alarm gaat aan",
"de": "Der CO2-Alarm ist angegangen",
"fr": "L'alarme CO2 s'est activée",
"it": "L'allarme CO2 è stato attivato",
Expand All @@ -82,7 +82,7 @@
"id": "alarm_co2_false",
"title": {
"en": "The CO2 alarm turned off",
"nl": "Het CO2 alarm gaat uit",
"nl": "Het CO2-alarm gaat uit",
"de": "Der CO2-Alarm ist ausgegangen",
"fr": "L'alarme CO2 s'est désactivée",
"it": "L'allarme CO2 è stato disattivato",
Expand All @@ -101,7 +101,7 @@
"id": "alarm_co2",
"title": {
"en": "The CO2 alarm is !{{on|off}}",
"nl": "Het CO2 alarm is !{{aan|uit}}",
"nl": "Het CO2-alarm is !{{aan|uit}}",
"de": "Der CO2-Alarm ist !{{an|aus}}",
"fr": "L'alarme CO2 est !{{en marche|arrêtée}}",
"it": "L'allarme CO2 è !{{acceso|spento}}",
Expand Down
Loading

0 comments on commit c3afa21

Please sign in to comment.