From c3ce722ed175aab315dce16f9f93bc5abe4b0159 Mon Sep 17 00:00:00 2001 From: balgerion <133121849+balgerion@users.noreply.github.com> Date: Sat, 28 Jun 2025 11:35:49 +0200 Subject: [PATCH] Update en.json --- custom_components/pstryk/translations/en.json | 132 ++++++++++++++++-- 1 file changed, 124 insertions(+), 8 deletions(-) diff --git a/custom_components/pstryk/translations/en.json b/custom_components/pstryk/translations/en.json index 87d8e6f..32cef49 100644 --- a/custom_components/pstryk/translations/en.json +++ b/custom_components/pstryk/translations/en.json @@ -2,20 +2,57 @@ "config": { "step": { "user": { - "title": "Pstryk Energy", - "description": "Configuration of Pstryk energy pricing integration", + "title": "API Configuration", + "description": "Connect to Pstryk Energy service", + "data": { + "api_key": "API Key" + }, + "data_description": { + "api_key": "Your Pstryk Energy API key for authentication" + } + }, + "price_settings": { + "title": "Price Monitoring", + "description": "Configure how many hours of best and worst prices to track", "data": { - "api_key": "API Key", "buy_top": "Number of best buy prices", "sell_top": "Number of best sell prices", "buy_worst": "Number of worst buy prices", - "sell_worst": "Number of worst sell prices", + "sell_worst": "Number of worst sell prices" + }, + "data_description": { + "buy_top": "Hours with cheapest buy prices to highlight (1-24)", + "sell_top": "Hours with highest sell prices to highlight (1-24)", + "buy_worst": "Hours with most expensive buy prices to highlight (1-24)", + "sell_worst": "Hours with lowest sell prices to highlight (1-24)" + } + }, + "mqtt_settings": { + "title": "MQTT Bridge", + "description": "Configure MQTT integration for external systems", + "data": { "mqtt_enabled": "Enable MQTT Bridge", "mqtt_topic_buy": "MQTT Topic for Buy Prices", "mqtt_topic_sell": "MQTT Topic for Sell Prices", - "mqtt_48h_mode": "Enable 48h mode for MQTT", - "retry_attempts": "API retry attempts", - "retry_delay": "API retry delay (seconds)" + "mqtt_48h_mode": "Enable 48h mode" + }, + "data_description": { + "mqtt_enabled": "Publish prices to MQTT for external systems like EVCC", + "mqtt_topic_buy": "MQTT topic where buy prices will be published", + "mqtt_topic_sell": "MQTT topic where sell prices will be published", + "mqtt_48h_mode": "Publish 48 hours of prices (today + tomorrow)" + } + }, + "api_retry": { + "title": "API Reliability", + "description": "Configure retry behavior for API failures", + "data": { + "retry_attempts": "Retry attempts", + "retry_delay": "Retry delay (seconds)" + }, + "data_description": { + "retry_attempts": "Number of times to retry failed API requests", + "retry_delay": "Wait time between retry attempts" } } }, @@ -28,6 +65,7 @@ "step": { "init": { "title": "Pstryk Energy Options", + "description": "Configure your Pstryk Energy integration", "data": { "buy_top": "Number of best buy prices", "sell_top": "Number of best sell prices", @@ -39,6 +77,62 @@ "mqtt_48h_mode": "Enable 48h mode for MQTT", "retry_attempts": "API retry attempts", "retry_delay": "API retry delay (seconds)" + }, + "data_description": { + "buy_top": "How many cheapest buy prices to highlight (1-24 hours)", + "sell_top": "How many highest sell prices to highlight (1-24 hours)", + "buy_worst": "How many most expensive buy prices to highlight (1-24 hours)", + "sell_worst": "How many lowest sell prices to highlight (1-24 hours)", + "mqtt_enabled": "Enable publishing prices to MQTT for external systems like EVCC", + "mqtt_topic_buy": "MQTT topic where buy prices will be published", + "mqtt_topic_sell": "MQTT topic where sell prices will be published", + "mqtt_48h_mode": "Publish 48 hours of prices (today + tomorrow) instead of just today", + "retry_attempts": "How many times to retry API requests on failure", + "retry_delay": "Wait time between API retry attempts" + } + }, + "price_settings": { + "title": "Price Monitoring Settings", + "description": "Configure how many hours of best and worst prices to track", + "data": { + "buy_top": "Number of best buy prices", + "sell_top": "Number of best sell prices", + "buy_worst": "Number of worst buy prices", + "sell_worst": "Number of worst sell prices" + }, + "data_description": { + "buy_top": "Hours with cheapest buy prices to highlight (1-24)", + "sell_top": "Hours with highest sell prices to highlight (1-24)", + "buy_worst": "Hours with most expensive buy prices to highlight (1-24)", + "sell_worst": "Hours with lowest sell prices to highlight (1-24)" + } + }, + "mqtt_settings": { + "title": "MQTT Bridge Configuration", + "description": "Configure MQTT integration for external systems", + "data": { + "mqtt_enabled": "Enable MQTT Bridge", + "mqtt_topic_buy": "MQTT Topic for Buy Prices", + "mqtt_topic_sell": "MQTT Topic for Sell Prices", + "mqtt_48h_mode": "Enable 48h mode" + }, + "data_description": { + "mqtt_enabled": "Publish prices to MQTT for external systems like EVCC", + "mqtt_topic_buy": "MQTT topic where buy prices will be published", + "mqtt_topic_sell": "MQTT topic where sell prices will be published", + "mqtt_48h_mode": "Publish 48 hours of prices (today + tomorrow)" + } + }, + "api_settings": { + "title": "API Configuration", + "description": "Configure API retry behavior for improved reliability", + "data": { + "retry_attempts": "API retry attempts", + "retry_delay": "API retry delay (seconds)" + }, + "data_description": { + "retry_attempts": "How many times to retry API requests on failure", + "retry_delay": "Wait time between API retry attempts" } } } @@ -57,8 +151,30 @@ "avg_price": "Average price today", "avg_price_remaining": "Average price (remaining)", "avg_price_full_day": "Average price (full day)", + "avg_price_sunrise_sunset": "Average price today s/s", "tomorrow_available": "Tomorrow prices available", - "mqtt_price_count": "MQTT price count" + "mqtt_price_count": "MQTT price count", + "last_reset": "Last reset", + "price_sum": "Price sum", + "period": "Period", + "period_monthly": "Monthly", + "period_yearly": "Yearly", + "financial_balance": "Financial Balance", + "buy_cost": "Buy cost", + "sell_revenue": "Sell revenue", + "energy_bought": "Energy bought", + "energy_sold": "Energy sold", + "balance": "Balance", + "period_daily": "Daily", + "buy_cost": "Buy cost", + "distribution_cost": "Distribution cost", + "excise": "Excise", + "vat": "VAT", + "calculation_method": "Calculation method", + "total_cost": "Total cost", + "total_revenue": "Total revenue", + "service_cost": "Service cost", + "is_live": "Current period" } }, "mqtt": {