Issue #103 - expose preset temp pour AC mode
This commit is contained in:
@@ -183,7 +183,7 @@ async def async_setup_entry(
|
|||||||
platform.async_register_entity_service(
|
platform.async_register_entity_service(
|
||||||
SERVICE_SET_PRESET_TEMPERATURE,
|
SERVICE_SET_PRESET_TEMPERATURE,
|
||||||
{
|
{
|
||||||
vol.Required("preset"): vol.In(CONF_PRESETS),
|
vol.Required("preset"): vol.In(CONF_PRESETS_WITH_AC),
|
||||||
vol.Optional("temperature"): vol.Coerce(float),
|
vol.Optional("temperature"): vol.Coerce(float),
|
||||||
vol.Optional("temperature_away"): vol.Coerce(float),
|
vol.Optional("temperature_away"): vol.Coerce(float),
|
||||||
},
|
},
|
||||||
@@ -2429,8 +2429,8 @@ class VersatileThermostat(ClimateEntity, RestoreEntity):
|
|||||||
"""Called by a service call:
|
"""Called by a service call:
|
||||||
service: versatile_thermostat.set_preset_temperature
|
service: versatile_thermostat.set_preset_temperature
|
||||||
data:
|
data:
|
||||||
temperature: 17.8
|
|
||||||
preset: boost
|
preset: boost
|
||||||
|
temperature: 17.8
|
||||||
temperature_away: 15
|
temperature_away: 15
|
||||||
target:
|
target:
|
||||||
entity_id: climate.thermostat_2
|
entity_id: climate.thermostat_2
|
||||||
|
|||||||
@@ -43,6 +43,9 @@ set_preset_temperature:
|
|||||||
- "eco"
|
- "eco"
|
||||||
- "comfort"
|
- "comfort"
|
||||||
- "boost"
|
- "boost"
|
||||||
|
- "eco_ac"
|
||||||
|
- "comfort_ac"
|
||||||
|
- "boost_ac"
|
||||||
temperature:
|
temperature:
|
||||||
name: Temperature when present
|
name: Temperature when present
|
||||||
description: Target temperature for the preset when present
|
description: Target temperature for the preset when present
|
||||||
|
|||||||
Reference in New Issue
Block a user