VeSync Thermostats↲
pyvesync.devices.vesyncthermostat ↲
Thermostat device classes.
pyvesync.base_devices.thermostat_base.ThermostatState ↲
Bases: DeviceState
VeSync Thermostat State.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
device
|
VeSyncThermostat
|
The thermostat device. |
required |
details
|
ResponseDeviceDetailsModel
|
The thermostat device details. |
required |
feature_map
|
ThermostatMap
|
The thermostat feature map. |
required |
Source code in src\pyvesync\base_devices\thermostat_base.py
pyvesync.base_devices.thermostat_base.VeSyncThermostat ↲
Bases: VeSyncBaseDevice
Base class for VeSync Thermostat devices.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
details
|
ResponseDeviceDetailsModel
|
The thermostat device details. |
required |
manager
|
VeSync
|
The VeSync manager instance. |
required |
feature_map
|
ThermostatMap
|
The thermostat feature map. |
required |
Source code in src\pyvesync\base_devices\thermostat_base.py
114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 |
|
state
instance-attribute
↲
state: ThermostatState = ThermostatState(
self, details, feature_map
)
Inherited From VeSyncBaseDevice
set_mode
async
↲
set_mode(mode: ThermostatWorkModes) -> bool
turn_off
async
↲
Inherited From VeSyncThermostat
Set mode to off.
set_mode_cool
async
↲
Inherited From VeSyncThermostat
Set mode to cool.
set_mode_heat
async
↲
Inherited From VeSyncThermostat
Set mode to heat.
set_mode_auto
async
↲
Inherited From VeSyncThermostat
Set mode to auto.
set_mode_smart_auto
async
↲
Inherited From VeSyncThermostat
Set mode to smart auto.
set_mode_emergency_heat
async
↲
Inherited From VeSyncThermostat
Set mode to emergency heat.
set_fan_mode
async
↲
set_fan_mode(mode: ThermostatFanModes) -> bool
set_fan_ciruclate
async
↲
Inherited From VeSyncThermostat
Set fan circulate.
set_fan_auto
async
↲
Inherited From VeSyncThermostat
Set fan auto.
set_fan_on
async
↲
Inherited From VeSyncThermostat
Set fan on.
get_configuration
async
↲
set_temp_point
async
↲
Sets the temperature point.
cancel_hold
async
↲
set_cool_to_temp
async
↲
Sets the cool to temperature.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
temperature
|
float
|
The cool to temperature. |
required |
Returns:
Name | Type | Description |
---|---|---|
bool |
bool
|
True if successful, False otherwise. |
Source code in src\pyvesync\base_devices\thermostat_base.py
set_heat_to_temp
async
↲
Set the heat to temperature.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
temperature
|
float
|
The heat to temperature. |
required |
Returns:
Name | Type | Description |
---|---|---|
bool |
bool
|
True if successful, False otherwise. |
Source code in src\pyvesync\base_devices\thermostat_base.py
toggle_lock
async
↲
Toggle the thermostat lock status.
turn_on_lock
async
↲
Inherited From VeSyncThermostat
Turn on the thermostat lock.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
pin
|
int | str
|
The 4-digit PIN code. |
required |
turn_off_lock
async
↲
Inherited From VeSyncThermostat
Turn off the thermostat lock.
set_eco_type
async
↲
set_eco_type(eco_type: ThermostatEcoTypes) -> bool
Set thermostat eco type.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
eco_type
|
ThermostatEcoTypes
|
The eco type to set, options are found in self.eco_types. |
required |
Returns:
Name | Type | Description |
---|---|---|
bool |
bool
|
True if successful, False otherwise. |
Source code in src\pyvesync\base_devices\thermostat_base.py
set_eco_first
async
↲
Inherited From VeSyncThermostat
Set eco first.
set_eco_second
async
↲
Inherited From VeSyncThermostat
Set eco second.
set_eco_comfort_first
async
↲
Inherited From VeSyncThermostat
Set eco comfort.
set_eco_comfort_second
async
↲
Inherited From VeSyncThermostat
Set eco comfort.