20 lines
625 B
Python
20 lines
625 B
Python
"""Constants for the Pstryk Energy integration."""
|
|
|
|
DOMAIN = "pstryk"
|
|
API_URL = "https://api.pstryk.pl/integrations/"
|
|
API_TIMEOUT = 60
|
|
|
|
BUY_ENDPOINT = "pricing/?resolution=hour&window_start={start}&window_end={end}"
|
|
SELL_ENDPOINT = "prosumer-pricing/?resolution=hour&window_start={start}&window_end={end}"
|
|
|
|
ATTR_BUY_PRICE = "buy_price"
|
|
ATTR_SELL_PRICE = "sell_price"
|
|
ATTR_HOURS = "hours"
|
|
|
|
# MQTT related constants
|
|
DEFAULT_MQTT_TOPIC_BUY = "energy/forecast/buy"
|
|
DEFAULT_MQTT_TOPIC_SELL = "energy/forecast/sell"
|
|
CONF_MQTT_ENABLED = "mqtt_enabled"
|
|
CONF_MQTT_TOPIC_BUY = "mqtt_topic_buy"
|
|
CONF_MQTT_TOPIC_SELL = "mqtt_topic_sell"
|