2019-04-19 21:54:48 +00:00
|
|
|
"""Constants for the Switcher integration tests."""
|
|
|
|
|
2021-07-19 13:28:40 +00:00
|
|
|
from aioswitcher.device import (
|
|
|
|
DeviceState,
|
|
|
|
DeviceType,
|
2022-10-13 21:20:13 +00:00
|
|
|
ShutterDirection,
|
2021-07-19 13:28:40 +00:00
|
|
|
SwitcherPowerPlug,
|
2022-10-13 21:20:13 +00:00
|
|
|
SwitcherShutter,
|
2022-10-01 16:14:55 +00:00
|
|
|
SwitcherThermostat,
|
2021-07-19 13:28:40 +00:00
|
|
|
SwitcherWaterHeater,
|
2022-10-01 16:14:55 +00:00
|
|
|
ThermostatFanLevel,
|
|
|
|
ThermostatMode,
|
|
|
|
ThermostatSwing,
|
2021-07-19 13:28:40 +00:00
|
|
|
)
|
|
|
|
|
2019-04-19 21:54:48 +00:00
|
|
|
from homeassistant.components.switcher_kis import (
|
2019-07-31 19:25:30 +00:00
|
|
|
CONF_DEVICE_ID,
|
|
|
|
CONF_DEVICE_PASSWORD,
|
|
|
|
CONF_PHONE_ID,
|
|
|
|
DOMAIN,
|
|
|
|
)
|
2019-04-19 21:54:48 +00:00
|
|
|
|
2019-07-31 19:25:30 +00:00
|
|
|
DUMMY_AUTO_OFF_SET = "01:30:00"
|
2021-07-19 13:28:40 +00:00
|
|
|
DUMMY_AUTO_SHUT_DOWN = "02:00:00"
|
|
|
|
DUMMY_DEVICE_ID1 = "a123bc"
|
|
|
|
DUMMY_DEVICE_ID2 = "cafe12"
|
2022-10-01 16:14:55 +00:00
|
|
|
DUMMY_DEVICE_ID3 = "bada77"
|
2022-10-13 21:20:13 +00:00
|
|
|
DUMMY_DEVICE_ID4 = "bbd164"
|
2021-07-19 13:28:40 +00:00
|
|
|
DUMMY_DEVICE_NAME1 = "Plug 23BC"
|
|
|
|
DUMMY_DEVICE_NAME2 = "Heater FE12"
|
2022-10-01 16:14:55 +00:00
|
|
|
DUMMY_DEVICE_NAME3 = "Breeze AB39"
|
2022-10-13 21:20:13 +00:00
|
|
|
DUMMY_DEVICE_NAME4 = "Runner DD77"
|
2019-07-31 19:25:30 +00:00
|
|
|
DUMMY_DEVICE_PASSWORD = "12345678"
|
2021-07-19 13:28:40 +00:00
|
|
|
DUMMY_ELECTRIC_CURRENT1 = 0.5
|
|
|
|
DUMMY_ELECTRIC_CURRENT2 = 12.8
|
|
|
|
DUMMY_IP_ADDRESS1 = "192.168.100.157"
|
|
|
|
DUMMY_IP_ADDRESS2 = "192.168.100.158"
|
2022-10-01 16:14:55 +00:00
|
|
|
DUMMY_IP_ADDRESS3 = "192.168.100.159"
|
2022-10-13 21:20:13 +00:00
|
|
|
DUMMY_IP_ADDRESS4 = "192.168.100.160"
|
2021-07-19 13:28:40 +00:00
|
|
|
DUMMY_MAC_ADDRESS1 = "A1:B2:C3:45:67:D8"
|
|
|
|
DUMMY_MAC_ADDRESS2 = "A1:B2:C3:45:67:D9"
|
2022-10-01 16:14:55 +00:00
|
|
|
DUMMY_MAC_ADDRESS3 = "A1:B2:C3:45:67:DA"
|
2022-10-13 21:20:13 +00:00
|
|
|
DUMMY_MAC_ADDRESS4 = "A1:B2:C3:45:67:DB"
|
2019-07-31 19:25:30 +00:00
|
|
|
DUMMY_PHONE_ID = "1234"
|
2021-07-19 13:28:40 +00:00
|
|
|
DUMMY_POWER_CONSUMPTION1 = 100
|
|
|
|
DUMMY_POWER_CONSUMPTION2 = 2780
|
2019-07-31 19:25:30 +00:00
|
|
|
DUMMY_REMAINING_TIME = "01:29:32"
|
2021-07-19 13:28:40 +00:00
|
|
|
DUMMY_TIMER_MINUTES_SET = "90"
|
2022-10-01 16:14:55 +00:00
|
|
|
DUMMY_THERMOSTAT_MODE = ThermostatMode.COOL
|
|
|
|
DUMMY_TEMPERATURE = 24.1
|
|
|
|
DUMMY_TARGET_TEMPERATURE = 23
|
|
|
|
DUMMY_FAN_LEVEL = ThermostatFanLevel.LOW
|
|
|
|
DUMMY_SWING = ThermostatSwing.OFF
|
|
|
|
DUMMY_REMOTE_ID = "ELEC7001"
|
2022-10-13 21:20:13 +00:00
|
|
|
DUMMY_POSITION = 54
|
|
|
|
DUMMY_DIRECTION = ShutterDirection.SHUTTER_STOP
|
2019-04-19 21:54:48 +00:00
|
|
|
|
2021-07-19 13:28:40 +00:00
|
|
|
YAML_CONFIG = {
|
2019-04-19 21:54:48 +00:00
|
|
|
DOMAIN: {
|
|
|
|
CONF_PHONE_ID: DUMMY_PHONE_ID,
|
2021-07-19 13:28:40 +00:00
|
|
|
CONF_DEVICE_ID: DUMMY_DEVICE_ID1,
|
2019-07-31 19:25:30 +00:00
|
|
|
CONF_DEVICE_PASSWORD: DUMMY_DEVICE_PASSWORD,
|
2019-04-19 21:54:48 +00:00
|
|
|
}
|
|
|
|
}
|
2021-07-19 13:28:40 +00:00
|
|
|
|
|
|
|
DUMMY_PLUG_DEVICE = SwitcherPowerPlug(
|
|
|
|
DeviceType.POWER_PLUG,
|
|
|
|
DeviceState.ON,
|
|
|
|
DUMMY_DEVICE_ID1,
|
|
|
|
DUMMY_IP_ADDRESS1,
|
|
|
|
DUMMY_MAC_ADDRESS1,
|
|
|
|
DUMMY_DEVICE_NAME1,
|
|
|
|
DUMMY_POWER_CONSUMPTION1,
|
|
|
|
DUMMY_ELECTRIC_CURRENT1,
|
|
|
|
)
|
|
|
|
|
|
|
|
DUMMY_WATER_HEATER_DEVICE = SwitcherWaterHeater(
|
|
|
|
DeviceType.V4,
|
|
|
|
DeviceState.ON,
|
|
|
|
DUMMY_DEVICE_ID2,
|
|
|
|
DUMMY_IP_ADDRESS2,
|
|
|
|
DUMMY_MAC_ADDRESS2,
|
|
|
|
DUMMY_DEVICE_NAME2,
|
|
|
|
DUMMY_POWER_CONSUMPTION2,
|
|
|
|
DUMMY_ELECTRIC_CURRENT2,
|
|
|
|
DUMMY_REMAINING_TIME,
|
|
|
|
DUMMY_AUTO_SHUT_DOWN,
|
|
|
|
)
|
|
|
|
|
2022-10-13 21:20:13 +00:00
|
|
|
DUMMY_SHUTTER_DEVICE = SwitcherShutter(
|
|
|
|
DeviceType.RUNNER,
|
|
|
|
DeviceState.ON,
|
|
|
|
DUMMY_DEVICE_ID4,
|
|
|
|
DUMMY_IP_ADDRESS4,
|
|
|
|
DUMMY_MAC_ADDRESS4,
|
|
|
|
DUMMY_DEVICE_NAME4,
|
|
|
|
DUMMY_POSITION,
|
|
|
|
DUMMY_DIRECTION,
|
|
|
|
)
|
|
|
|
|
2022-10-01 16:14:55 +00:00
|
|
|
DUMMY_THERMOSTAT_DEVICE = SwitcherThermostat(
|
|
|
|
DeviceType.BREEZE,
|
|
|
|
DeviceState.ON,
|
|
|
|
DUMMY_DEVICE_ID3,
|
|
|
|
DUMMY_IP_ADDRESS3,
|
|
|
|
DUMMY_MAC_ADDRESS3,
|
|
|
|
DUMMY_DEVICE_NAME3,
|
|
|
|
DUMMY_THERMOSTAT_MODE,
|
|
|
|
DUMMY_TEMPERATURE,
|
|
|
|
DUMMY_TARGET_TEMPERATURE,
|
|
|
|
DUMMY_FAN_LEVEL,
|
|
|
|
DUMMY_SWING,
|
|
|
|
DUMMY_REMOTE_ID,
|
|
|
|
)
|
|
|
|
|
2021-07-19 13:28:40 +00:00
|
|
|
DUMMY_SWITCHER_DEVICES = [DUMMY_PLUG_DEVICE, DUMMY_WATER_HEATER_DEVICE]
|