Skip to content

Commit 55424cf

Browse files
authored
Merge pull request #1 from plugwise/initial
Initial split
2 parents dfbe457 + 409daaa commit 55424cf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+827
-6410
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## Versions from 0.4x
4+
5+
### 0.41x
6+
7+
- Release of standalone USB plugwise_usb-beta `custom_component`
8+
- More formal Split between Networked and USB code
9+
- Refactoring where necessary
10+
311
## Versions from 0.30 and up
412

513
### NEW APR 2023 [0.34.10] Implement latest Core PR's

README.md

Lines changed: 33 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
1-
# Plugwise custom_component (BETA)
1+
# Plugwise USB/Stick custom_component (BETA)
22

3-
:no_entry::no_entry::no_entry: If you are **not** using USB based Plugwise equipment or have no intention to beta-test our integration, please defer to the **supported** release of this integration **natively** available in [Home Assistant](https://www.home-assistant.io/integrations/plugwise/)! :no_entry::no_entry::no_entry:
4-
5-
:warning::warning::warning: Always **read** the [release notes](https://github.com/plugwise/plugwise-beta/releases) before upgrading, in case there are BREAKING changes! **Do note** the release title on alpha releases and only install them if specifically instructed by our team! :warning::warning::warning:
3+
:warning::warning::warning: Always **read** the [release notes](https://github.com/plugwise/plugwise_usb-beta/releases) before upgrading, in case there are BREAKING changes! **Do note** the release title on alpha releases and only install them if specifically instructed by our team! :warning::warning::warning:
64

75
## About
86

97
A fully asynchronous approach to supporting Plugwise devices in Home-Assistant. This repository is **meant** for use of beta-testing. As of March 2021 we include testing against latest `dev` in Home-Assistant Core, the above batches should indicate compatibility and compliance.
108

119
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/plugwise)
12-
[![Generic badge](https://img.shields.io/github/v/release/plugwise/plugwise-beta)](https://github.com/plugwise/plugwise-beta)
10+
[![Generic badge](https://img.shields.io/github/v/release/plugwise/plugwise_usb-beta)](https://github.com/plugwise/plugwise_usb-beta)
1311

14-
[![HASSfest](https://github.com/plugwise/plugwise-beta/workflows/Validate%20with%20hassfest/badge.svg)](https://github.com/plugwise/plugwise-beta/actions)
15-
[![HA-Core](https://github.com/plugwise/plugwise-beta/workflows/Test%20with%20HA-core/badge.svg)](https://github.com/plugwise/plugwise-beta/actions)
16-
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/plugwise/plugwise-beta/main.svg)](https://results.pre-commit.ci/latest/github/plugwise/plugwise-beta/main)
12+
[![HASSfest](https://github.com/plugwise/plugwise_usb-beta/workflows/Validate%20with%20hassfest/badge.svg)](https://github.com/plugwise/plugwise_usb-beta/actions)
13+
[![HA-Core](https://github.com/plugwise/plugwise_usb-beta/workflows/Test%20with%20HA-core/badge.svg)](https://github.com/plugwise/plugwise_usb-beta/actions)
14+
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/plugwise/plugwise_usb-beta/main.svg)](https://results.pre-commit.ci/latest/github/plugwise/plugwise_usb-beta/main)
1715

18-
[![CodeFactor](https://www.codefactor.io/repository/github/plugwise/plugwise-beta/badge)](https://www.codefactor.io/repository/github/plugwise/plugwise-beta)
16+
[![CodeFactor](https://www.codefactor.io/repository/github/plugwise/plugwise_usb-beta/badge)](https://www.codefactor.io/repository/github/plugwise/plugwise_usb-beta)
1917

2018
Always first attempt to use the native [Home Assistant](https://www.home-assistant.io/integrations/plugwise/)-component using this button
2119

@@ -25,17 +23,17 @@ If you don't mind a bug now and then and are interested in helping us test new f
2523

2624
## Required python module (status)
2725

28-
Our [`python-plugwise`](https://github.com/plugwise/python-plugwise) python module accompanies both the native and the `custom_component`. It's status is is:
26+
Our [`python-plugwise-usb`](https://github.com/plugwise/python-plugwise-usb) python module accompanies both the native and the `custom_component`. It's status is is:
2927

3028
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/plugwise)
3129
[![PyPI version fury.io](https://badge.fury.io/py/plugwise.svg)](https://pypi.python.org/pypi/plugwise/)
3230

33-
[![Latest release](https://github.com/plugwise/python-plugwise/workflows/Latest%20release/badge.svg)](https://github.com/plugwise/python-plugwise/actions)
34-
[![Newest commit](https://github.com/plugwise/python-plugwise/workflows/Latest%20commit/badge.svg)](https://github.com/plugwise/python-plugwise/actions)
35-
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/plugwise/python-plugwise/main.svg)](https://results.pre-commit.ci/latest/github/plugwise/python-plugwise/main)
31+
[![Latest release](https://github.com/plugwise/python-plugwise-usb/workflows/Latest%20release/badge.svg)](https://github.com/plugwise/python-plugwise-usb/actions)
32+
[![Newest commit](https://github.com/plugwise/python-plugwise-usb/workflows/Latest%20commit/badge.svg)](https://github.com/plugwise/python-plugwise-usb/actions)
33+
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/plugwise/python-plugwise-usb/main.svg)](https://results.pre-commit.ci/latest/github/plugwise/python-plugwise-usb/main)
3634

37-
[![CodeFactor](https://www.codefactor.io/repository/github/plugwise/python-plugwise/badge)](https://www.codefactor.io/repository/github/plugwise/python-plugwise)
38-
[![codecov](https://codecov.io/gh/plugwise/python-plugwise/branch/main/graph/badge.svg)](https://codecov.io/gh/plugwise/python-plugwise)
35+
[![CodeFactor](https://www.codefactor.io/repository/github/plugwise/python-plugwise-usb/badge)](https://www.codefactor.io/repository/github/plugwise/python-plugwise-usb)
36+
[![codecov](https://codecov.io/gh/plugwise/python-plugwise-usb/branch/main/graph/badge.svg)](https://codecov.io/gh/plugwise/python-plugwise-usb)
3937

4038
## Changelog
4139

@@ -45,21 +43,18 @@ Our [Changelog](CHANGELOG.MD) is available as a [separate file](CHANGELOG.md) in
4543

4644
### What do we support (in short)?
4745

48-
- Thermostats
49-
- Adam (firmware 2.x and 3.x) and the accompanying Lisa's, Tom's, Floor's, Koen's and Plugs.
50-
- Anna (firmware 1.x, 3.x and 4.x)
51-
- Notifications for both types
5246
- Power-related
53-
- Smile P1 (firmware 2.x, 3.x and 4.x)
54-
- Stretch (firmware 2.x and 3.x, legacy Circle's and Stealth's)
5547
- Stick (legacy Circle's, Stealth's and Scan's)
5648

49+
#### USB notes
50+
51+
Up to spring of 2023 the `custom_component` `plugwise-beta` [plugwise-beta](https://github.com/plugwise/plugwise-beta/) supported both Networked and USB Plugwise products, as of that time we have split both the backend (python module) and the frontend into separate instances as per recent discussion with the Core team. The `plugwise` integration in HA Core (and therefore `plugwise-beta`) will remain supporting networked Plugwise products under an envisioned `plugwise_bv` Brand umbrella. This paves the way for this repository as upcoming `plugwise_usb-beta` `custom_integration` to being refactored and again upstream to HA Core (which was originally planned but there was no branding umbrella in Core back then).
52+
53+
As such we ask USB users, who are tied in with the `custom_component` as there is no Core integration available yet, for a little patience so we can split and refactor all repositories without loss of functionality for the end users. For our USB users that will however mean some **breaking changes** or customizing under the hood as the `custom_component` name will change and the appropriate naming in HA will do so accordingly. It is for the best though as this will ensure a way forward to HA Core integration, which has been our goal since starting to write Plugwise supporting code for Home Assistant.
54+
5755
### What can I expect in HA Core from this component
5856

59-
- `binary_sensor` and `sensor`: A number of sensoric values depending on your hardware: outdoor temperature, Anna's illuminance, Tom's valve position, Plug's and Circle/Stealth's power-values, P1 power- and gas-values, Plugwise Notifications.
60-
- `climate`: A (number of) thermostat(s) visible in HA, including temperature, presets and heating-demand status, per thermostat. Also, setting of temperature, preset and switching the active schedule on and off. Cooling is only supported in combination with an Anna (fw 3.1 and 4.0).
61-
- `number`: Numerical indication on boiler setpoints.
62-
- `select`: Input selector to choose the active schedule.
57+
- `binary_sensor` and `sensor`: A number of sensoric values depending on your hardware: Plug's and Circle/Stealth's power-values.
6358
- `switch`: The switch-parts of Plugs/Circles are available as switches, also switching them on/off is supported.
6459

6560
### How to install?
@@ -71,35 +66,16 @@ Our [Changelog](CHANGELOG.MD) is available as a [separate file](CHANGELOG.md) in
7166

7267
#### How to add the integration to HA Core
7368

74-
For each Plugwise Smile (i.e. gateway) you will have to add it as an integration. For instance if you have an Adam and a Smile P1, you have to add them individually. If you have an Anna and an Adam, **do not add the Anna**, only add the Adam.
75-
76-
- [ ] In Home Assistant click on `Configuration`
77-
- [ ] Click on `Integrations`
78-
- [ ] You should see one or more discovered Smiles
79-
- [ ] Click the `Configure` button and enter the Smile ID
80-
- [ ] Click Add to see the magic happens
81-
82-
If there is no discovered Smile present or you are using the USB stick:
69+
If you are using the USB stick:
8370

8471
- [ ] Hit the `+` button in the right lower corner
85-
- [ ] Search or browse for 'Plugwise beta' and click it
86-
- [ ] Select the type of integration: Network or USB
72+
- [ ] Search or browse for 'Plugwise USB' and click it
8773

88-
- For the Network-selection:
89-
- [ ] Enter your Smile IP-address and the 8 character ID of the smile
90-
- [ ] Click SUBMIT and FINISH and hopefully the magic happens
91-
- [ ] Repeat this process to add more Smiles
92-
93-
- For the USB-selection:
9474
- [ ] Select or enter the USB-path
9575
- [ ] Click SUBMIT and FINISH
9676

9777
The config flow will then continue to ask you if you want to put your Smile and detected other devices in area's and presto, things should be available to configure in lovelace.
9878

99-
#### Options
100-
101-
Using the OPTIONS-button, the default Smile-data refresh-interval can be modified. There are no OPTIONS available for the Stick. The refresh interval of the devices connected to the Stick is automatically determined on the number of devices connecteda
102-
10379
## Frequently Asked Questions (FAQ)
10480

10581
### I don't like the name of the sensor or the icon
@@ -114,20 +90,18 @@ Please note that you can also click the cogwheel right top corner to rename all
11490

11591
If you notice issues please create an issue in the appropriate repository, while we are on Discord and on the [Community forums](https://community.home-assistant.io/t/plugwise-core-and-custom-component/236250) this is not where we are actively checking for support requests.
11692

117-
- [plugwise-beta](https://github.com/plugwise/plugwise-beta/issues/new/choose) - the beta `custom_component` for HA Core we use for testing (also required for USB as Plugwise USB support is not available in Home Assistant Core yet).
118-
- [python-plugwise](https://github.com/plugwise/python-plugwise/issues/new/choose) - the python module interfacing with the plugwise Smile or USB-stick
119-
120-
### Why 'Smile'?
121-
122-
We use the term Smile for the 'device connected to your home network', called Smile P1 for their power-meter, Smile if you have an Anna or Adam.
93+
- [plugwise_usb-beta](https://github.com/plugwise/plugwise_usb-beta/issues/new/choose) - the beta `custom_component` for HA Core we use for testing (also required for USB as Plugwise USB support is not available in Home Assistant Core yet).
94+
- [python-plugwise-usb](https://github.com/plugwise/python-plugwise-usb/issues/new/choose) - the python module interfacing with the plugwise Smile or USB-stick
12395

12496
### Is it tested?
12597

126-
While we try to make sure that everything works as intended, we can't really test out changes happening to hardware devices. Our testing is done through testing against files from community members (see [python-plugwise tests](https://github.com/plugwise/python-plugwise/tree/main/tests)) and if you have a setup you are willing to share we highly welcome that. Just send us the files or submit a PR. Including your test code into the `tests/test_Smile.py` code is highly recommended.
98+
Disclaimer: Not yet (fully)
99+
100+
While we try to make sure that everything works as intended, we can't really test out changes happening to hardware devices. Our testing is done through testing against files from community members (see [python-plugwise-usb tests](https://github.com/plugwise/python-plugwise-usb/tree/main/tests)) and if you have a setup you are willing to share we highly welcome that. Just send us the files or submit a PR. Including your test code into the `tests/test_Smile.py` code is highly recommended.
127101

128102
Ensuring our commits work `scripts/core-testing.sh` will create a local clone of the Home Assistant Core dev-branch to test against. For full visibility of tests run this as `DEBUG=1 scripts/core-testing.sh` (or export DEBUG to something other than none). `pytest` will show full log by default when tests are failing.
129103

130-
Results of our tests are checked by GitHub Actions against Home Assistant (dev-branch), click the button 'Test with HA-core' in this repository or the 'Latest release'/'Latest commit' buttons on our [python-plugwise repository](https://github.com/plugwise/python-plugwise/).
104+
Results of our tests are checked by GitHub Actions against Home Assistant (dev-branch), click the button 'Test with HA-core' in this repository or the 'Latest release'/'Latest commit' buttons on our [python-plugwise-usb repository](https://github.com/plugwise/python-plugwise-usb/).
131105

132106
### There is Plugwise / used to be Anna support in HA Core already?
133107

@@ -139,8 +113,10 @@ As things like async were in high demand from HA Core, desired by the original a
139113

140114
With the three combined forces we now support, maintain and improve on:
141115

142-
- `plugwise-beta` (this repository) for beta-testing new features to go into the `plugwise`-integration for HA
143-
- [`python-plugwise`](https://github.com/plugwise/python-plugwise) for connecting to Plugwise products
144-
- [`progress`](https://github.com/plugwise/progress) showing what are the differences between HA-core and this `custom_component` on [our progress page](https://plugwise.github.io/progress/)
116+
- `plugwise-beta` (the network devices repository) for beta-testing new features to go into the Core `plugwise`-integration for HA
117+
- [`python-plugwise`](https://github.com/plugwise/python-plugwise-usb) for connecting to Networked Plugwise products
118+
- `plugwise_usb-beta` (this repository) for beta-testing new features to eventually go upstream to Core into the `plugwise_usb`-integration for HA
119+
- [`python-plugwise-usb`](https://github.com/plugwise/python-plugwise-usb) for connecting to Plugwise products via USB
120+
- [`progress`](https://github.com/plugwise/progress) showing what are the differences between HA-core and the network `custom_component` on [our progress page](https://plugwise.github.io/progress/) (marked as todo for this repo as well)
145121

146122
And yes anna-ha with haanna (to some degree) support Anna v1.8 - but they don't support Adam nor the Smile P1.

SECURITY.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ As spare-time/free-time developers we support this custom_component as best
66
as we can. We will support released versions as old as the module version
77
included in the `manifest.json` of the current and previous releases of
88
[Home Assistant Core](https://github.com/home-assistant/core) and/or
9-
[`plugwise-beta`](https://github.com/plugwise/plugwise-beta)
9+
[`plugwise_usb-beta`](https://github.com/plugwise/plugwise_usb-beta)
1010
(whichever used release is the oldest).
1111

1212
## Reporting a Vulnerability
@@ -18,7 +18,7 @@ github aliases for quicker response, but always file an issue so other
1818
users are also informed.
1919

2020
(Security) fixes will always be pre-released and released through
21-
[`plugwise-beta`](https://github.com/plugwise/plugwise-beta) for
21+
[`plugwise_usb-beta`](https://github.com/plugwise/plugwis_usbe-beta) for
2222
testing. A PR to HA Core will follow either in parallel or as soon as
2323
possible.
2424

archive/TESTS.md

Lines changed: 0 additions & 73 deletions
This file was deleted.

custom_components/plugwise/__init__.py

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)