|
| 1 | +### Stick constants ### |
| 2 | + |
1 | 3 | UTF8_DECODE = "utf-8" |
2 | 4 |
|
3 | 5 | # Serial connection settings for plugwise USB stick |
|
260 | 262 | HA_SWITCH = "switch" |
261 | 263 | HA_SENSOR = "sensor" |
262 | 264 | HA_BINARY_SENSOR = "binary_sensor" |
| 265 | + |
| 266 | + |
| 267 | +### Smile constants ### |
| 268 | + |
| 269 | +APPLIANCES = "/core/appliances" |
| 270 | +DOMAIN_OBJECTS = "/core/domain_objects" |
| 271 | +LOCATIONS = "/core/locations" |
| 272 | +NOTIFICATIONS = "/core/notifications" |
| 273 | +RULES = "/core/rules" |
| 274 | +SYSTEM = "/system" |
| 275 | +STATUS = "/system/status.xml" |
| 276 | + |
| 277 | +DEFAULT_TIMEOUT = 30 |
| 278 | +DEFAULT_USERNAME = "smile" |
| 279 | +DEFAULT_PORT = 80 |
| 280 | + |
| 281 | +SWITCH_GROUP_TYPES = ["switching", "report"] |
| 282 | + |
| 283 | +HOME_MEASUREMENTS = { |
| 284 | + "electricity_consumed": "power", |
| 285 | + "electricity_produced": "power", |
| 286 | + "gas_consumed": "gas", |
| 287 | + "outdoor_temperature": "temperature", |
| 288 | +} |
| 289 | + |
| 290 | +# Excluded: |
| 291 | +# zone_thermosstat 'temperature_offset' |
| 292 | +# radiator_valve 'uncorrected_temperature', 'temperature_offset' |
| 293 | +DEVICE_MEASUREMENTS = { |
| 294 | + # HA Core current_temperature |
| 295 | + "temperature": "temperature", |
| 296 | + # HA Core setpoint |
| 297 | + "thermostat": "setpoint", |
| 298 | + # Anna/Adam |
| 299 | + "boiler_temperature": "water_temperature", |
| 300 | + "domestic_hot_water_state": "dhw_state", |
| 301 | + "intended_boiler_temperature": "intended_boiler_temperature", # non-zero when heating, zero when dhw-heating |
| 302 | + "intended_central_heating_state": "heating_state", # use intended_c_h_state, this key shows the heating-behavior better than c-h_state |
| 303 | + "modulation_level": "modulation_level", |
| 304 | + "return_water_temperature": "return_temperature", |
| 305 | + # Used with the Elga heatpump - marcelveldt |
| 306 | + "compressor_state": "compressor_state", |
| 307 | + "cooling_state": "cooling_state", |
| 308 | + # Next 2 keys are used to show the state of the gas-heater used next to the Elga heatpump - marcelveldt |
| 309 | + "slave_boiler_state": "slave_boiler_state", |
| 310 | + "flame_state": "flame_state", # also present when there is a single gas-heater |
| 311 | + # Anna only |
| 312 | + "central_heater_water_pressure": "water_pressure", |
| 313 | + "outdoor_temperature": "outdoor_temperature", # Outdoor temp as reported on the Anna, in the App |
| 314 | + "schedule_temperature": "schedule_temperature", # Only present on legacy Anna and Anna_v3 |
| 315 | + # Legacy Anna: similar to flame-state on Anna/Adam |
| 316 | + "boiler_state": "boiler_state", |
| 317 | + # Legacy Anna: shows when heating is active, don't show dhw_state, cannot be determined reliably |
| 318 | + "intended_boiler_state": "intended_boiler_state", |
| 319 | + # Lisa and Tom |
| 320 | + "battery": "battery", |
| 321 | + "temperature_difference": "temperature_difference", |
| 322 | + "valve_position": "valve_position", |
| 323 | + # Plug |
| 324 | + "electricity_consumed": "electricity_consumed", |
| 325 | + "electricity_produced": "electricity_produced", |
| 326 | + "relay": "relay", |
| 327 | +} |
| 328 | + |
| 329 | +SMILES = { |
| 330 | + "smile_open_therm_v3": { |
| 331 | + "type": "thermostat", |
| 332 | + "friendly_name": "Adam", |
| 333 | + }, |
| 334 | + "smile_open_therm_v2": { |
| 335 | + "type": "thermostat", |
| 336 | + "friendly_name": "Adam", |
| 337 | + }, |
| 338 | + "smile_thermo_v4": { |
| 339 | + "type": "thermostat", |
| 340 | + "friendly_name": "Anna", |
| 341 | + }, |
| 342 | + "smile_thermo_v3": { |
| 343 | + "type": "thermostat", |
| 344 | + "friendly_name": "Anna", |
| 345 | + }, |
| 346 | + "smile_thermo_v1": { |
| 347 | + "type": "thermostat", |
| 348 | + "friendly_name": "Anna", |
| 349 | + "legacy": True, |
| 350 | + }, |
| 351 | + "smile_v4": { |
| 352 | + "type": "power", |
| 353 | + "friendly_name": "P1", |
| 354 | + }, |
| 355 | + "smile_v3": { |
| 356 | + "type": "power", |
| 357 | + "friendly_name": "P1", |
| 358 | + }, |
| 359 | + "smile_v2": { |
| 360 | + "type": "power", |
| 361 | + "friendly_name": "P1", |
| 362 | + "legacy": True, |
| 363 | + }, |
| 364 | + "stretch_v3": {"type": "stretch", "friendly_name": "Stretch", "legacy": True}, |
| 365 | + "stretch_v2": {"type": "stretch", "friendly_name": "Stretch", "legacy": True}, |
| 366 | +} |
0 commit comments