Vincent Le Bourlot 0afbef7f11
Fix/fix fan discovery (#21)
* added LAP-C601S-WUS (Core 600s Air Purifier)

* fix style

* better fix to diagnostic.

* fix preset mode

* add a log line.

* add another debug log

* add some missing fan devices.

* auto discover preset_modes

* auto discover fan speed range

* fix fan speed and preset modes

* fix fan speed number

* add some debug log.

* merge fix from main

* rename a key in diagnostics.
2022-04-27 21:37:40 +02:00

41 lines
958 B
Python

"""Constants for VeSync Component."""
DOMAIN = "vesync"
VS_DISCOVERY = "vesync_discovery_{}"
SERVICE_UPDATE_DEVS = "update_devices"
VS_SWITCHES = "switches"
VS_FANS = "fans"
VS_LIGHTS = "lights"
VS_SENSORS = "sensors"
VS_HUMIDIFIERS = "humidifiers"
VS_NUMBERS = "numbers"
VS_BINARY_SENSORS = "binary_sensors"
VS_MANAGER = "manager"
VS_MODE_AUTO = "auto"
VS_MODE_MANUAL = "manual"
DEV_TYPE_TO_HA = {
"Core200S": "fan",
"Core300S": "fan",
"Core400S": "fan",
"LAP-C201S-AUSR": "fan",
"LAP-C202S-WUSR": "fan",
"LAP-C401S-WUSR": "fan",
"LAP-C601S-WUS": "fan",
"LV-PUR131S": "fan",
"Classic300S": "humidifier",
"ESD16": "walldimmer",
"ESWD16": "walldimmer",
"ESL100": "bulb-dimmable",
"ESL100CW": "bulb-tunable-white",
"wifi-switch-1.3": "outlet",
"ESW03-USA": "outlet",
"ESW01-EU": "outlet",
"ESW15-USA": "outlet",
"ESWL01": "switch",
"ESWL03": "switch",
"ESO15-TB": "outlet",
}