Skip to content

Commit

Permalink
renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
Tihomir Heidelberg committed Dec 26, 2021
1 parent 68d6a54 commit 54ac275
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 35 deletions.
39 changes: 17 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
[![hacs_badge](https://img.shields.io/badge/HACS-Default-orange.svg)](https://github.com/custom-components/hacs)
![Maintenance](https://img.shields.io/maintenance/yes/2021.svg)

# hass-peltec
# hass-centrometal-boiler

Home Assistant custom component integration for Centrometal Boiler System with CM WiFi-Box.
Home Assistant custom component integration for Centrometal Boiler System (with CM WiFi-Box).

<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
**Table of Contents**
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
To visualize boiler display as card use https://github.com/9a4gl/lovelace-centrometal-boiler-card card.

## About

This component is originally based on
https://github.com/9a4gl/py-peltec

The integration / component is created to support Centrometal Boiler System with CM WiFi-Box in Home Assistant.
This component is based on https://github.com/9a4gl/py-centrometal-web-boiler library to connect to Centrometal web boiler system.
The integration is created to support Centrometal Boiler System with CM WiFi-Box in Home Assistant.

## Installation

Expand All @@ -25,27 +20,27 @@ Requires Home Assistant core-2021.11.3 or newer.

If you have not yet installed HACS, go get it at https://hacs.xyz/ and walk through the installation and configuration.

Use "https://github.com/9a4gl/hass-peltec" as URL for a new HACS custom repository.
Use "https://github.com/9a4gl/hass-centrometal-boiler" as URL for a new HACS custom repository.

Then find the Centrometal Boiler System integration in HACS and install it.

Install the new integration through *Configuration -> Integrations* in HA (see below).

### Manual installation

Copy the sub-path `/hass-peltec/custom_components/peltec` of this repo into the path `/config/custom_components/peltec` of your HA installation.
Copy the sub-path `/hass-centrometal-boiler/custom_components/centrometal_boiler` of this repo into the path `/config/custom_components/centrometal_boiler` of your HA installation.

Alternatively use the following commands within an SSH shell into your HA system.
Do NOT try to execute these commands directly your PC on a mounted HA file system. The resulting symlink would be broken for the HA file system.
```
cd /config
git clone https://github.com/9a4gl/hass-peltec.git
git clone https://github.com/9a4gl/hass-centrometal-boiler.git
# if folder custom_components does not yet exist:
mkdir custom_components
cd custom_components
ln -s ../hass-peltec/custom_components/peltec
ln -s ../hass-centrometal-boiler/custom_components/centrometal_boiler
```

## Configuration
Expand All @@ -60,17 +55,17 @@ Even though this integration can be installed and configured via the Home Assist

The following devices are supported, other may work with CM WiFi-Box.

* peltec (PelTec)
* peltec-lambda (PelTec-lambda)
* cmpelet (Cm Pelet-set Touch)
* BioTec-L ?
* BioTec-Plus ?
* EKO-CSK P Unit ?
* EKO-CKS Multi Plus ?
* peltec ? (need tester) ?
* BioTec-L ? (need tester) ?
* BioTec-Plus ? (need tester) ?
* EKO-CSK P Unit ? (need tester) ?
* EKO-CKS Multi Plus ? (need tester) ?

## Services

`peltec.turn`
`centrometal_boiler.turn`
Start or stop the bolier..

## Development
Expand All @@ -85,8 +80,8 @@ file. Example:
logger:
default: info
logs:
custom_components.peltec: debug
peltec: debug
custom_components.centrometal_boiler: debug
centrometal_web_boiler: debug
```

After a restart detailed log entries will appear in `/config/home-assistant.log`.
2 changes: 1 addition & 1 deletion custom_components/centrometal_boiler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import logging
import datetime

from peltec import WebBoilerClient
from centrometal_web_boiler import WebBoilerClient

from homeassistant.config_entries import ConfigEntry

Expand Down
10 changes: 5 additions & 5 deletions custom_components/centrometal_boiler/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from collections import OrderedDict
import logging

from peltec import WebBoilerClient
from centrometal_web_boiler import WebBoilerClient

import voluptuous as vol

Expand All @@ -21,7 +21,7 @@
# pylint: disable=broad-except


class PeltecConfigFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
class CentrometalBoilerConfigFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a config flow for Centrometal boiler."""

VERSION = 1
Expand All @@ -45,9 +45,9 @@ async def async_step_user(self, user_input=None):
return await self._show_setup_form()

errors = {}
pelTecDeviceCollection = None
deviceCollection = None
try:
pelTecDeviceCollection = await try_connection(
deviceCollection = await try_connection(
user_input[CONF_EMAIL], user_input[CONF_PASSWORD]
)
except Exception:
Expand All @@ -60,7 +60,7 @@ async def async_step_user(self, user_input=None):
await self.async_set_unique_id(unique_id)
self._abort_if_unique_id_configured()

device = list(pelTecDeviceCollection.values())[0]
device = list(deviceCollection.values())[0]
title = device["product"] + ": " + device["address"] + ", " + device["place"]

return self.async_create_entry(
Expand Down
2 changes: 1 addition & 1 deletion custom_components/centrometal_boiler/const.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
DOMAIN = "peltec"
DOMAIN = "centrometal_boiler"
WEB_BOILER_CLIENT = "web_boiler_client"
WEB_BOILER_SYSTEM = "web_boiler_system"

Expand Down
10 changes: 5 additions & 5 deletions custom_components/centrometal_boiler/manifest.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"domain": "peltec",
"domain": "centrometal_boiler",
"name": "Centrometal Boiler System integration",
"version": "0.0.6",
"version": "0.0.7",
"config_flow": true,
"documentation": "https://github.com/9a4gl/hass-peltec",
"issue_tracker": "https://github.com/9a4gl/hass-peltec/issues",
"documentation": "https://github.com/9a4gl/hass-centrometal-boiler",
"issue_tracker": "https://github.com/9a4gl/hass-centrometal-boiler/issues",
"dependencies": [],
"codeowners": ["@9a4gl"],
"requirements": ["py-peltec==0.0.36"],
"requirements": ["py-centrometal-web-boiler==0.0.39"],
"iot_class": "cloud_push"
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from homeassistant.components.sensor import SensorEntity

from .WebBoilerGenericSensor import WebBoilerGenericSensor
from peltec.WebBoilerDeviceCollection import WebBoilerParameter
from centrometal_web_boiler.WebBoilerDeviceCollection import WebBoilerParameter


class WebBoilerWorkingTableSensor(WebBoilerGenericSensor):
Expand Down

0 comments on commit 54ac275

Please sign in to comment.