Skip to content

Commit

Permalink
Change to type minutes_adjustment_number
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbe committed Feb 24, 2025
1 parent 6a62001 commit c3332ec
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion custom_components/cozytouch/capability.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,9 +723,12 @@ def get_capability_infos(modelInfos: dict, capabilityId: int, capabilityValue: s
elif capabilityId == 104047:
# Boost timeout max. in minutes
capability["name"] = "boost_timeout_max"
capability["type"] = "int"
capability["type"] = "minutes_adjustment_number"
capability["category"] = "diag"
capability["icon"] = "mdi:clock-outline"
capability["lowest_value"] = 5
capability["highest_value"] = 60
capability["step"] = 5

elif capabilityId == 105906:
capability["name"] = "Target 105906"
Expand Down
2 changes: 1 addition & 1 deletion custom_components/cozytouch/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@
},
"number": {
"away_mode_temperature": { "name": "Away Mode Temperature" },
"boost_timeout_max": { "name": "Boost Timeout Max." },
"override_total_time": { "name": "Override Total Time" },
"override_total_time_z1": { "name": "Override Total Time Z1" },
"override_total_time_z2": { "name": "Override Total Time Z2" },
Expand Down Expand Up @@ -170,7 +171,6 @@
"boost_mode": { "name": "Boost Mode" },
"boost_total_time": { "name": "Boost Total Time" },
"boost_remaining_time": { "name": "Boost Remaining Time" },
"boost_timeout_max": { "name": "Boost Timeout Max." },
"central_heating": { "name": "Central Heating" },
"ch_power_consumption": { "name": "CH Power consumption" },
"condenser_temperature": { "name": "Condenser Temperature" },
Expand Down
2 changes: 1 addition & 1 deletion custom_components/cozytouch/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@
},
"number": {
"away_mode_temperature": { "name": "Away Mode Temperature" },
"boost_timeout_max": { "name": "Boost Timeout Max." },
"override_total_time": { "name": "Override Total Time" },
"override_total_time_z1": { "name": "Override Total Time Z1" },
"override_total_time_z2": { "name": "Override Total Time Z2" },
Expand Down Expand Up @@ -167,7 +168,6 @@
"away_mode_start": { "name": "Away Mode Start" },
"away_mode_stop": { "name": "Away Mode Stop" },
"boiler_water_temperature": { "name": "Boiler Water Temperature" },
"boost_mode": { "name": "Boost Mode" },
"boost_total_time": { "name": "Boost Total Time" },
"boost_remaining_time": { "name": "Boost Remaining Time" },
"boost_timeout_max": { "name": "Boost Timeout Max." },
Expand Down
2 changes: 1 addition & 1 deletion custom_components/cozytouch/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@
},
"number": {
"away_mode_temperature": { "name": "Température Absence" },
"boost_timeout_max": { "name": "Temporisation Max. Boost" },
"override_total_time": { "name": "Durée Délégation" },
"override_total_time_z1": { "name": "Durée Délégation Z1" },
"override_total_time_z2": { "name": "Durée Délégation Z2" },
Expand Down Expand Up @@ -170,7 +171,6 @@
"boost_mode": { "name": "Mode Boost" },
"boost_total_time": { "name": "Durée Boost Totale" },
"boost_remaining_time": { "name": "Durée Boost Restante" },
"boost_timeout_max": { "name": "Temporisation Max. Boost" },
"central_heating": { "name": "Chauffage" },
"ch_power_consumption": { "name": "Consommation CH" },
"condenser_temperature": { "name": "Temperature Condensateur" },
Expand Down

0 comments on commit c3332ec

Please sign in to comment.