Hello,
Does anyone of you know if it’s possible to get higher temperatures with thermostatUI? It looks like its max is 35 degC, even if I set bigger max value on capability. I need that for thermostats for hot water or sauna, where - of course - 35 degC is too low. Using sliderUI instead thermostatUI isn’t that comfortable and precise
I think it is a ‘build-in’ limit to the target_temperature
capability, but it’s not mentioned here Capabilities - Homey Apps SDK
Sending a request to Athom is all you can do atm. I think.
OH2TH
September 5, 2023, 5:25pm
3
target_temperature capability options for max and min values do actually work.
One example:
{
"type": "number",
"title": {
"en": "Set temperature",
"sv": "Inställed temperature"
},
"hint": {
"en": "Set temperature on the output.",
"sv": "Ställ in temperaturen i utgången"
},
"getable": true,
"setable": true,
"min": -50,
"max": 70,
"units": {
"en": "°C"
},
"uiComponent": "thermostat",
"insights": false
}
Also you can call updateCapabilityOptions to even change them from code:
try {
const deviceInfo = await this.api.getInfo();
const deviceConfig = await this.api.getConfig();
if (deviceInfo && deviceConfig) {
if (this.getAvailable() === false) this.setAvailable();
const device = { ...deviceInfo, ...deviceConfig };
const settings = this.getSettings();
// this.log(`${this.getName()} - setCapabilityValues - device => `, deviceInfo);
// Update settable temperature range and current temperature setting
this.updateCapabilityOptions('target_temperature', { min: Number(device.min_temp), max: Number(device.max_temp) });
this.setValue('target_temperature', Number(device.temperature), check);
this.setValue('output_temperature', Number(device.temperature), check);
this.setValue('output_resistance', Number(device.resistance), check);
this.setValue('measure_type', `${settings.type} - ${device.type_name}`, check);
// Update uptime information
if (this.uptimeUpdate) {
this.setValue('measure_uptime', device.uptime, check);
this.uptimeUpdate = false;
} else {
1 Like
Thanks for all the help, I found a typo, I’ve made in the code, that’s why it didn’t work.
1 Like