2018-12-16 15:19:18 +00:00
|
|
|
"""Constants for Daikin."""
|
2020-05-08 17:21:24 +00:00
|
|
|
from homeassistant.const import (
|
|
|
|
CONF_DEVICE_CLASS,
|
|
|
|
CONF_ICON,
|
|
|
|
CONF_NAME,
|
|
|
|
CONF_TYPE,
|
|
|
|
CONF_UNIT_OF_MEASUREMENT,
|
|
|
|
DEVICE_CLASS_POWER,
|
|
|
|
DEVICE_CLASS_TEMPERATURE,
|
|
|
|
ENERGY_KILO_WATT_HOUR,
|
|
|
|
POWER_KILO_WATT,
|
|
|
|
TEMP_CELSIUS,
|
|
|
|
)
|
2018-12-16 15:19:18 +00:00
|
|
|
|
2019-07-31 19:25:30 +00:00
|
|
|
ATTR_TARGET_TEMPERATURE = "target_temperature"
|
|
|
|
ATTR_INSIDE_TEMPERATURE = "inside_temperature"
|
|
|
|
ATTR_OUTSIDE_TEMPERATURE = "outside_temperature"
|
2020-05-08 17:21:24 +00:00
|
|
|
ATTR_TOTAL_POWER = "total_power"
|
|
|
|
ATTR_COOL_ENERGY = "cool_energy"
|
|
|
|
ATTR_HEAT_ENERGY = "heat_energy"
|
2018-12-16 15:19:18 +00:00
|
|
|
|
2019-07-31 19:25:30 +00:00
|
|
|
ATTR_STATE_ON = "on"
|
|
|
|
ATTR_STATE_OFF = "off"
|
2019-07-24 00:10:28 +00:00
|
|
|
|
2019-07-31 19:25:30 +00:00
|
|
|
SENSOR_TYPE_TEMPERATURE = "temperature"
|
2020-05-08 17:21:24 +00:00
|
|
|
SENSOR_TYPE_POWER = "power"
|
|
|
|
SENSOR_TYPE_ENERGY = "energy"
|
2018-12-16 15:19:18 +00:00
|
|
|
|
|
|
|
SENSOR_TYPES = {
|
|
|
|
ATTR_INSIDE_TEMPERATURE: {
|
2019-07-31 19:25:30 +00:00
|
|
|
CONF_NAME: "Inside Temperature",
|
|
|
|
CONF_TYPE: SENSOR_TYPE_TEMPERATURE,
|
2020-05-08 17:21:24 +00:00
|
|
|
CONF_DEVICE_CLASS: DEVICE_CLASS_TEMPERATURE,
|
|
|
|
CONF_UNIT_OF_MEASUREMENT: TEMP_CELSIUS,
|
2018-12-16 15:19:18 +00:00
|
|
|
},
|
|
|
|
ATTR_OUTSIDE_TEMPERATURE: {
|
2019-07-31 19:25:30 +00:00
|
|
|
CONF_NAME: "Outside Temperature",
|
|
|
|
CONF_TYPE: SENSOR_TYPE_TEMPERATURE,
|
2020-05-08 17:21:24 +00:00
|
|
|
CONF_DEVICE_CLASS: DEVICE_CLASS_TEMPERATURE,
|
|
|
|
CONF_UNIT_OF_MEASUREMENT: TEMP_CELSIUS,
|
|
|
|
},
|
|
|
|
ATTR_TOTAL_POWER: {
|
|
|
|
CONF_NAME: "Total Power Consumption",
|
|
|
|
CONF_TYPE: SENSOR_TYPE_POWER,
|
|
|
|
CONF_DEVICE_CLASS: DEVICE_CLASS_POWER,
|
|
|
|
CONF_UNIT_OF_MEASUREMENT: POWER_KILO_WATT,
|
|
|
|
},
|
|
|
|
ATTR_COOL_ENERGY: {
|
|
|
|
CONF_NAME: "Cool Energy Consumption",
|
|
|
|
CONF_TYPE: SENSOR_TYPE_ENERGY,
|
|
|
|
CONF_ICON: "mdi:snowflake",
|
|
|
|
CONF_UNIT_OF_MEASUREMENT: ENERGY_KILO_WATT_HOUR,
|
|
|
|
},
|
|
|
|
ATTR_HEAT_ENERGY: {
|
|
|
|
CONF_NAME: "Heat Energy Consumption",
|
|
|
|
CONF_TYPE: SENSOR_TYPE_ENERGY,
|
|
|
|
CONF_ICON: "mdi:fire",
|
|
|
|
CONF_UNIT_OF_MEASUREMENT: ENERGY_KILO_WATT_HOUR,
|
2019-07-31 19:25:30 +00:00
|
|
|
},
|
2018-12-16 15:19:18 +00:00
|
|
|
}
|
|
|
|
|
2020-05-06 11:59:07 +00:00
|
|
|
CONF_KEY = "key"
|
|
|
|
CONF_UUID = "uuid"
|
|
|
|
|
2019-07-31 19:25:30 +00:00
|
|
|
KEY_MAC = "mac"
|
|
|
|
KEY_IP = "ip"
|
2020-04-15 13:12:10 +00:00
|
|
|
|
|
|
|
TIMEOUT = 60
|