core/homeassistant/components/utility_meter/const.py

32 lines
751 B
Python
Raw Normal View History

"""Constants for the utility meter component."""
2019-07-31 19:25:30 +00:00
DOMAIN = "utility_meter"
2019-07-31 19:25:30 +00:00
HOURLY = "hourly"
DAILY = "daily"
WEEKLY = "weekly"
MONTHLY = "monthly"
YEARLY = "yearly"
METER_TYPES = [HOURLY, DAILY, WEEKLY, MONTHLY, YEARLY]
2019-07-31 19:25:30 +00:00
DATA_UTILITY = "utility_meter_data"
2019-07-31 19:25:30 +00:00
CONF_METER = "meter"
CONF_SOURCE_SENSOR = "source"
CONF_METER_TYPE = "cycle"
CONF_METER_OFFSET = "offset"
CONF_METER_NET_CONSUMPTION = "net_consumption"
CONF_PAUSED = "paused"
CONF_TARIFFS = "tariffs"
CONF_TARIFF = "tariff"
CONF_TARIFF_ENTITY = "tariff_entity"
2019-07-31 19:25:30 +00:00
ATTR_TARIFF = "tariff"
2019-07-31 19:25:30 +00:00
SIGNAL_START_PAUSE_METER = "utility_meter_start_pause"
SIGNAL_RESET_METER = "utility_meter_reset"
2019-07-31 19:25:30 +00:00
SERVICE_RESET = "reset"
SERVICE_SELECT_TARIFF = "select_tariff"
SERVICE_SELECT_NEXT_TARIFF = "next_tariff"