Skip to content

Commit

Permalink
1.8.1
Browse files Browse the repository at this point in the history
1.8.0: Added new capabilities (Min.FW >= 12.2.0).
1.8.1: Internal change for capability update (type check).
  • Loading branch information
RonnyWinkler committed Nov 25, 2024
1 parent 8ed9d2a commit 3130099
Show file tree
Hide file tree
Showing 204 changed files with 19,468 additions and 172 deletions.
8 changes: 8 additions & 0 deletions .homeychangelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,14 @@
"1.7.3": {
"en": "Dynamic modes for alarm control panel.",
"de": "Dynamische Modi für Alarmzentrale."
},
"1.8.0": {
"en": "Added new capabilities (Min.FW >= 12.2.0).",
"de": "Neue Capabilities ergänzt (Min.FW >= 12.2.0)."
},
"1.8.1": {
"en": "Internal change for capability update (type check).",
"de": "Interner Änderungen zur Capability-Aktualisierung (Typ-Check)."
}

}
4 changes: 2 additions & 2 deletions .homeycompose/app.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "io.home-assistant.community",
"version": "1.7.3",
"compatibility": ">=12.0.1",
"version": "1.8.1",
"compatibility": ">=12.2.0",
"sdk": 3,
"brandColor": "#0DA6EA",
"name": {
Expand Down
31 changes: 28 additions & 3 deletions .homeycompose/drivers/repair/add_entity/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -464,16 +464,37 @@
return result;
});
},
keys: ["id"],
cache: true
keys: ["id", "title"],
cache: true,
filter: (list) => {
// Filter duplicates
// incase of multiple data keys usage
const filteredResults = Array.from(
new Set(list.map((value) => value.value.id))
).map((id) => {
return list.find((value) => value.value.id === id);
});
return filteredResults;
}

},
resultsList:{
maxResults: 100,
noResults: true
},
resultItem: {
element: (item, data) => {
item.innerHTML = "<span id='spanResultlistName'>"+data.match+"</span>";
// item.innerHTML = "<span id='spanResultlistName'>"+data.match+"</span>";
if (data.key == 'title'){
item.innerHTML = "<span id='spanResultlistName'>"+data.value.id+"</span>"+
"<br>"+
"<span id='spanResultlistEntity'>"+data.match+"</span>";
}
if (data.key == 'id'){
item.innerHTML = "<span id='spanResultlistName'>"+data.match+"</span>"+
"<br>"+
"<span id='spanResultlistEntity'>"+data.value.title+"</span>";
}
},
highlight: true
},
Expand Down Expand Up @@ -542,6 +563,10 @@
threshold: 0,
data: {
src: [
{
"text": Homey.__("repair.custom_device.converter_text_00"),
"code": Homey.__("repair.custom_device.converter_code_00")
},
{
"text": Homey.__("repair.custom_device.converter_text_01"),
"code": Homey.__("repair.custom_device.converter_code_01")
Expand Down
4 changes: 2 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"_comment": "This file is generated. Please edit .homeycompose/app.json instead.",
"id": "io.home-assistant.community",
"version": "1.7.3",
"compatibility": ">=12.0.1",
"version": "1.8.1",
"compatibility": ">=12.2.0",
"sdk": 3,
"brandColor": "#0DA6EA",
"name": {
Expand Down
215 changes: 173 additions & 42 deletions assets/const/customTemplateCapabilities.js
Original file line number Diff line number Diff line change
@@ -1,47 +1,178 @@
'use strict';

const customTemplateCapabilities = [
{id:"onoff"},
{id:"onoff_button"},
{id:"onoff_state"},
{id:"button"},
{id:'alarm_generic'},
{id:'alarm_battery'},
{id:'alarm_co'},
{id:'alarm_co2'},
{id:'alarm_contact'},
{id:'alarm_fire'},
{id:'alarm_heat'},
{id:'alarm_motion'},
{id:'alarm_pm25'},
{id:'alarm_smoke'},
{id:'alarm_tamper'},
{id:'alarm_water'},
{id:'measure_numeric'},
{id:'measure_generic'},
{id:'measure_battery'},
{id:'measure_co'},
{id:'measure_co2'},
{id:'measure_current'},
{id:'measure_gust_angle'},
{id:'measure_gust_strength'},
{id:'measure_humidity'},
{id:'measure_luminance'},
{id:'measure_noise'},
{id:'measure_pm25'},
{id:'measure_power'},
{id:'measure_pressure'},
{id:'measure_rain'},
{id:'measure_temperature'},
{id:'measure_ultraviolet'},
{id:'measure_voltage'},
{id:'measure_water'},
{id:'measure_wind_angle'},
{id:'measure_wind_strength'},
{id:'meter_gas'},
{id:'meter_power'},
{id:'meter_rain'},
{id:'meter_water'}
// Source: https://github.com/athombv/node-homey-lib/blob/master/assets/capability/capabilities.json
const customTemplateCapabilities =
[
"onoff",
"dim",
"light_hue",
"light_saturation",
"light_temperature",
"light_mode",
"vacuumcleaner_state",
"thermostat_mode",
"target_temperature",
"measure_temperature",
"measure_co",
"measure_co2",
"measure_pm25",
"measure_humidity",
"measure_pressure",
"measure_noise",
"measure_rain",
"measure_wind_strength",
"measure_wind_angle",
"measure_gust_strength",
"measure_gust_angle",
"measure_battery",
"measure_power",
"measure_voltage",
"measure_current",
"measure_luminance",
"measure_ultraviolet",
"measure_water",
"alarm_generic",
"alarm_motion",
"alarm_contact",
"alarm_co",
"alarm_co2",
"alarm_pm25",
"alarm_tamper",
"alarm_smoke",
"alarm_fire",
"alarm_heat",
"alarm_water",
"alarm_battery",
"alarm_night",
"meter_power",
"meter_water",
"meter_gas",
"meter_rain",
"homealarm_state",
"volume_set",
"volume_up",
"volume_down",
"volume_mute",
"channel_up",
"channel_down",
"locked",
"lock_mode",
"garagedoor_closed",
"windowcoverings_state",
"windowcoverings_tilt_up",
"windowcoverings_tilt_down",
"windowcoverings_tilt_set",
"windowcoverings_closed",
"windowcoverings_set",
"button",
"speaker_playing",
"speaker_next",
"speaker_prev",
"speaker_shuffle",
"speaker_repeat",
"speaker_artist",
"speaker_album",
"speaker_track",
"speaker_duration",
"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"
];


module.exports = customTemplateCapabilities;
31 changes: 28 additions & 3 deletions drivers/alarm_control_panel/repair/add_entity.html
Original file line number Diff line number Diff line change
Expand Up @@ -464,16 +464,37 @@
return result;
});
},
keys: ["id"],
cache: true
keys: ["id", "title"],
cache: true,
filter: (list) => {
// Filter duplicates
// incase of multiple data keys usage
const filteredResults = Array.from(
new Set(list.map((value) => value.value.id))
).map((id) => {
return list.find((value) => value.value.id === id);
});
return filteredResults;
}

},
resultsList:{
maxResults: 100,
noResults: true
},
resultItem: {
element: (item, data) => {
item.innerHTML = "<span id='spanResultlistName'>"+data.match+"</span>";
// item.innerHTML = "<span id='spanResultlistName'>"+data.match+"</span>";
if (data.key == 'title'){
item.innerHTML = "<span id='spanResultlistName'>"+data.value.id+"</span>"+
"<br>"+
"<span id='spanResultlistEntity'>"+data.match+"</span>";
}
if (data.key == 'id'){
item.innerHTML = "<span id='spanResultlistName'>"+data.match+"</span>"+
"<br>"+
"<span id='spanResultlistEntity'>"+data.value.title+"</span>";
}
},
highlight: true
},
Expand Down Expand Up @@ -542,6 +563,10 @@
threshold: 0,
data: {
src: [
{
"text": Homey.__("repair.custom_device.converter_text_00"),
"code": Homey.__("repair.custom_device.converter_code_00")
},
{
"text": Homey.__("repair.custom_device.converter_text_01"),
"code": Homey.__("repair.custom_device.converter_code_01")
Expand Down
Loading

0 comments on commit 3130099

Please sign in to comment.