From f375b6ed6ddc4fe48108d728f8763d5eb56bce8e Mon Sep 17 00:00:00 2001 From: jontofront <37038426+jontofront@users.noreply.github.com> Date: Thu, 21 Dec 2023 08:47:07 +0000 Subject: [PATCH] add binary sensors keys for developing binary_sensor from api --- custom_components/econet300/const.py | 14 ++++++++------ custom_components/econet300/translations/en.json | 7 ++++++- custom_components/econet300/translations/pl.json | 11 ++++++++--- 3 files changed, 22 insertions(+), 10 deletions(-) diff --git a/custom_components/econet300/const.py b/custom_components/econet300/const.py index b6f64f2..ca4fc51 100644 --- a/custom_components/econet300/const.py +++ b/custom_components/econet300/const.py @@ -109,15 +109,17 @@ "1794": "boilerPower", "1795": "fanPower", "1280": "tempCOSet", + # Binary sensors for testing + "111": "weatherControl", + "113": "unseal", + "118": "pumpCOWorks", + "1536": "fanWorks", + "1540": "aditionalFeeder", + "1541": "pumpFireplaceWorks", + "1542": "pumpCWUWorks", } -# Unknown ID's -# tempBack: "tempBack", pas mane nera tokio parametro -# "1025": "tempCOSet", pas mane nera i6jungtas :( -# quality - - # Sensors units from econet dev REG_PARAM_UNIT = { "tempCO": UnitOfTemperature.CELSIUS, diff --git a/custom_components/econet300/translations/en.json b/custom_components/econet300/translations/en.json index 0f92051..b305749 100644 --- a/custom_components/econet300/translations/en.json +++ b/custom_components/econet300/translations/en.json @@ -26,6 +26,8 @@ "sensor": { "boiler_power": { "name": "Boiler power" }, "fuel_level": { "name": "Fuel level" }, + "fan_power": { "name": "Fan power" }, + "fan_works": { "name": "Fan" }, "lambda_status": { "name": "Lambda status" }, "lambda_set": { "name": "Lambda set" }, "lambda_level": { "name": "Lambda level" }, @@ -33,6 +35,8 @@ "mode": { "name": "Boiler mode" }, "mixer_temp1": { "name": "Mixer 1 temperature" }, "mixer_set_temp1": { "name": "Mixer target temperature" }, + "pump_cwu_works": { "name": "HUW pump" }, + "pump_fireplace_works": { "name": "Boiler pump" }, "signal": { "name": "Signal quality" }, "servo_mixer1": { "name": "Mixer 1 servo position" }, "status_wifi": { "name": "Wireless network connected" }, @@ -45,8 +49,9 @@ "temp_feeder": {"name": "Feeder temperature"}, "temp_co_set": { "name": "Heating target temperature" }, "thermostat": { "name": "Thermostat" }, + "unseal": { "name": "Unseal" }, "valve_mixer1": { "name": "Mixer 1 valve % open" }, - "fan_power": { "name": "Fan power" } + "weather_control": {"name": "Weather control the boiler"} } } } diff --git a/custom_components/econet300/translations/pl.json b/custom_components/econet300/translations/pl.json index b9d2b34..1f7d64f 100644 --- a/custom_components/econet300/translations/pl.json +++ b/custom_components/econet300/translations/pl.json @@ -26,6 +26,8 @@ "sensor": { "boiler_power": { "name": "Moc kotła" }, "fuel_level": { "name": "Poziom paliwa" }, + "fan_works": { "name": "Fan" }, + "fan_power": { "name": "Moc nadmuchu" }, "lambda_status": { "name": "Lambda status" }, "lambda_set": { "name": "Lambda set" }, "lambda_level": { "name": "Czujnik Lambda" }, @@ -33,12 +35,13 @@ "mixer_set_temp1": { "name": "Temp. zadana mieszacza 1" }, "main_server": { "name": "Główny serwer" }, "mode": { "name": "Tryb pracy" }, - "fan_power": { "name": "Moc nadmuchu" }, - "temp_co_set": { "name": "Heating target temperature" }, + "pump_cwu_works": { "name": "HUW pump" }, + "pump_fireplace_works": { "name": "Boiler pump" }, "valve_mixer1": { "name": "Zawór mieszacza 1" }, "servo_Mixer1": { "name": "Siłownik mieszacza 1" }, "signal": { "name": "Siła sygnału" }, "status_wifi": { "name": "Połączenie z siecią bezprzewodową" }, + "temp_co_set": { "name": "Heating target temperature" }, "temp_co": { "name": "Temperatura kotła" }, "temp_cwu": { "name": "Temperatura CWU" }, "temp_upper_buffer": { "name": "Temperatura bufora górna" }, @@ -46,7 +49,9 @@ "temp_flue_gas": { "name": "Temperatura spalin" }, "temp_external_sensor": { "name": "Temperatura zewnętrzna" }, "temp_feeder": {"name": "Temperatura podajnika"}, - "thermostat": { "name": "Thermostat" } + "unseal": { "name": "Unseal" }, + "thermostat": { "name": "Thermostat" }, + "weather_control": {"name": "Weather control the boiler"} } } }