Skip to content

Commit

Permalink
cm pelet set mods
Browse files Browse the repository at this point in the history
  • Loading branch information
Tihomir Heidelberg committed Dec 26, 2021
1 parent 01dfb65 commit 432767e
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 9 deletions.
2 changes: 1 addition & 1 deletion custom_components/peltec/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"domain": "peltec",
"name": "Centrometal Boiler System integration",
"version": "0.0.4",
"version": "0.0.5",
"config_flow": true,
"documentation": "https://github.com/9a4gl/hass-peltec",
"issue_tracker": "https://github.com/9a4gl/hass-peltec/issues",
Expand Down
45 changes: 37 additions & 8 deletions custom_components/peltec/sensors/generic_sensors_cm_pelet_set.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,35 @@
from homeassistant.const import (
DEVICE_CLASS_TEMPERATURE,
TEMP_CELSIUS,
)
from homeassistant.const import DEVICE_CLASS_TEMPERATURE, TEMP_CELSIUS, TIME_MINUTES

CM_PELET_SET_SENSOR_TEMPERATURES = {
"B_Tk1": [
TEMP_CELSIUS,
"mdi:thermometer",
DEVICE_CLASS_TEMPERATURE,
"Boiler Temperature",
],
"C1B_Tpol1": [
TEMP_CELSIUS,
"mdi:thermometer",
DEVICE_CLASS_TEMPERATURE,
"Circuit 1 Flow Temperature",
],
"C2B_Tpol1": [
TEMP_CELSIUS,
"mdi:thermometer",
DEVICE_CLASS_TEMPERATURE,
"Circuit Flow 1 Temperature",
"Circuit 2 Flow Temperature",
],
"B_Tak1": [
TEMP_CELSIUS,
"mdi:thermometer",
DEVICE_CLASS_TEMPERATURE,
"Buffer Tank Temparature Up",
"Buffer Tank Up",
],
"B_Tak2": [
TEMP_CELSIUS,
"mdi:thermometer",
DEVICE_CLASS_TEMPERATURE,
"Buffer Tank Temparature Down",
"Buffer Tank Down",
],
"B_Tva1": [
TEMP_CELSIUS,
Expand All @@ -33,8 +42,28 @@

CM_PELET_SET_SENSOR_MISC = {
"B_KONF_STR": ["", "mdi:information", None, "Setup"],
"C1B_CircType": ["", "mdi:information", None, "Heating type"],
"B_netMon": ["", "mdi:remote", None, "Remote Start Enabled"],
"B_cmsr100": ["", "mdi:information", None, "Pellet Tank Level"],
"C1B_CircType": ["", "mdi:information", None, "Circuit 1 Heating Type"],
"C2B_CircType": ["", "mdi:information", None, "Circuit 2 Heating Type"],
"C1B_misC": ["", "mdi:pipe-valve", None, "Circ1 Mix-Valve Closing"],
"C1B_misO": ["", "mdi:pipe-valve", None, "Circ1 Mix-Valve Opening"],
"C2B_misC": ["", "mdi:pipe-valve", None, "Circ2 Mix-Valve Closing"],
"C2B_misO": ["", "mdi:pipe-valve", None, "Circ2 Mix-Valve Ipening"],
"B_Pk": ["", "mdi:pump", None, "Boiler Pump"],
"C1B_P": ["", "mdi:pump", None, "Circuit 1 Pump"],
"C1B_onOff": ["", "mdi:information", None, "Circuit 1 State"],
"C2B_P": ["", "mdi:pump", None, "Circuit 2 Pump"],
"C2B_onOff": ["", "mdi:information", None, "Circuit 2 State"],
"B_fan": ["", "mdi:fan", None, "Heater Fan State"],
"B_gri": ["", "mdi:fire", None, "Heater State"],
"CNT_0": [TIME_MINUTES, "mdi:fire", None, "Heater State Counter"],
"CNT_3": ["", "mdi:fire", None, "Heater Start Counter (?)"],
"CNT_4": [TIME_MINUTES, "mdi:fan", None, "Heater Fan Counter"],
"CNT_5": [TIME_MINUTES, "mdi:fire", None, "Heater State Counter"],
"CNT_6": ["", "mdi:fire", None, "Heater ukljuèenje (?)"],
"CNT_7": [TIME_MINUTES, "mdi:information", None, "Pellet Transporter Counter"],
"CNT_8": [TIME_MINUTES, "mdi:pump", None, "Boiler Pump Counter"],
}

CM_PELET_SET_GENERIC_SENSORS = {
Expand Down
7 changes: 7 additions & 0 deletions hacs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "Centrometal Boiler System",
"domains": ["sensor", "switch", "binary_sensor"],
"render_readme": true,
"homeassistant": "2021.11.3",
"iot_class": "Cloud Push"
}

0 comments on commit 432767e

Please sign in to comment.