Plugwise core and custom_component

Happy spring time, we’ve been busy doing some spring cleaning with the custom_component and the python module. As a result we have a lot more ‘green badges’, updated the documentation and … the custom_component (plugwise-beta) is now actually tested against the latest Home Assistant Core :slight_smile:

(yeah, we might be overachieving there, but this solves a lot of our ‘what if we PR’ this - which takes a long time nowadays - for details, check the actions-tab on our GitHub repo’s example: `https://github.com/plugwise/plugwise-beta/actions/runs/6732017791)

:warning: Changes are mostly on the Smile/Stretch side, USB is still on our todolist :warning:

Anyway, no real changes or improvements for you as a user, but it’s highly appreciated if you are willing to give this early alpha release a spin through HACS.

Available through HACS as per usual (when you signed up for beta releases)

1 Like

Would it be possible to also have an entity for the total consumed kwh ? That one is a lot easier for creating graphs in Grafana

Could you provide more details where this is missing? Depending on the source, a P1 for instance already should present a sensor.p1_electricity_consumed_off_peak_cumulative and/or you could ‘wrap’ with utility_meter (e.g. https://www.home-assistant.io/integrations/utility_meter/#advanced-configuration-for-dsmr-users)?

For the circle devices.

Than @brefra (or maybe @bouwew) would be more likely candidates :slight_smile:

Unfortunately no, the Plugwise Stick does not report the requested parameter.

You can create such a sensor yourself using this: https://www.home-assistant.io/integrations/integration/

Please see this topic Plugwise Smile P1 integration DSMR4 slimme meter and futher down on how to achieve what you are looking for.

RELEASE v0.14.6

1 Like

Hi everyone,
I’ve just installed Home Assistant on a Raspberry Pi 3. The system has located my Plugwise Stretch but when I attempt to login I just get the spinning wheel and the integration never proceeds past the login screen. I can login to the Stretch web interface but can’t seem to get the login to work through Home Assistant.

I looked at the log and have this:

Logger: homeassistant.components.plugwise.config_flow
Source: components/plugwise/config_flow.py:65
Integration: Plugwise (documentation, issues)
First occurred: 3:42:18 PM (1 occurrences)
Last logged: 3:42:18 PM

Unexpected exception

Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/components/plugwise/config_flow.py”, line 122, in async_step_user_gateway api = await validate_gw_input(self.hass, user_input) File “/usr/src/homeassistant/homeassistant/components/plugwise/config_flow.py”, line 65, in validate_gw_input await api.connect() File “/usr/local/lib/python3.8/site-packages/plugwise/smile.py”, line 113, in connect result = await self.request(DOMAIN_OBJECTS) File “/usr/local/lib/python3.8/site-packages/plugwise/smile.py”, line 256, in request result = await resp.text() File “/usr/local/lib/python3.8/site-packages/aiohttp/client_reqrep.py”, line 1076, in text await self.read() File “/usr/local/lib/python3.8/site-packages/aiohttp/client_reqrep.py”, line 1032, in read self._body = await self.content.read() File “/usr/local/lib/python3.8/site-packages/aiohttp/streams.py”, line 370, in read block = await self.readany() File “/usr/local/lib/python3.8/site-packages/aiohttp/streams.py”, line 392, in readany await self._wait(“readany”) File “/usr/local/lib/python3.8/site-packages/aiohttp/streams.py”, line 306, in _wait await waiter File “/usr/local/lib/python3.8/site-packages/aiohttp/helpers.py”, line 656, in exit raise asyncio.TimeoutError from None asyncio.exceptions.TimeoutError

Any help very much appreciated.

Edit:
I’m not getting anywhere with this. I’ve tried several times to add the Stretch to HA core and no luck. I then attempted to use the beta version but when I try to add the repository the log is reporting an invalid repository.
Bit lost and could do with some help.

Just a quick update.

Thanks to the very kind help of @bouwew I was able to get this working. For some reason my Stretch would not connect to the core integration of Plugwise but after installing the beta version, the Stretch connected. I can now see my Circles & Stealth units in HA.

However my main aim is to use logging of the electricity consumption and I’m not sure how this can be done with the Stretch. I see there are a few Python scripts which use the Stick or direct connections to the Circles & Stealth units to poll for consumption data and then log this. If this could be incorporated into the beta version it would be fantastic as I lost all logging ability when Plugwise switched off their servers in January 2021 :rage:.

Perhaps this is possible but I’ve missed something?

Coming soon: support for Plugwise JIP.
A test-version, v0.16.0b1, with this support is available: Release Don't show deleted thermostats · plugwise/plugwise-beta · GitHub
This update also contains the fix for the missing Tom/Floor thermostats in v0.15.0.

RELEASE v0.16.0

Hi,

Does somebody know if I can use the Plugwise Floor directly with the conbee II stick?
Or has someone another solutions for easy controlling floor heating?

Greetings,

Dirk

I’m not sure, but now that Plugwise uses Xiaomi Aqara parts (Plug, Jip) in combination with their Adam, I would kind of expect that what you have in mind, should work.

Hello all,

I always used the Plugwise integration in a previous version of Home Assistant.
Last week my SD card in my RaspberryPi died, I do have backups but to be honest I never updated my HA so because of the version difference I don’t think it is possible to use those backups anymore.

This in itself is not a problem because I only had Plugwise and my SolarEdge inverter set up for it and a few automations.

Last week I did a clean install of VMware ESXi on my Intel NUC and now HA is running again.
I’m running core-2021.7.1 and supervisor-2021.06.8 right now.
My Plugwise Stretch 2.0 is connected via a network cable.
The Stretch is recognized by HA via Discovered Devices and when configured I replace ‘smile’ with ‘stretch’ and enter the ID of the stretch. This ID is correct because I can log in with this data via the browser.

After a while I get the following message: ‘Unexpected error

List item

.

In the log I see the following:

Logger: homeassistant.components.plugwise.config_flow
Source: components/plugwise/config_flow.py:65
Integration: Plugwise (documentation, issues)
First occurred: July 9, 2021 11:18:25 (3 occurrences)
Last logged: 9:34:02

Unexpected exception

Traceback (most recent call last):
  File '/usr/src/homeassistant/homeassistant/components/plugwise/config_flow.py', line 119, in async_step_user_gateway
    api = await validate_gw_input(self.hass, user_input)
  File '/usr/src/homeassistant/homeassistant/components/plugwise/config_flow.py', line 65, in validate_gw_input
    await api.connect()
  File '/usr/local/lib/python3.9/site-packages/plugwise/smile.py', line 113, in connect
    result = await self.request(DOMAIN_OBJECTS)
  File '/usr/local/lib/python3.9/site-packages/plugwise/smile.py', line 256, in request
    result = await resp.text()
  File '/usr/local/lib/python3.9/site-packages/aiohttp/client_reqrep.py', line 1076, in text
    await self.read()
  File '/usr/local/lib/python3.9/site-packages/aiohttp/client_reqrep.py', line 1032, in read
    self._body = await self.content.read()
  File '/usr/local/lib/python3.9/site-packages/aiohttp/streams.py', line 370, in read
    block = await self.readany()
  File '/usr/local/lib/python3.9/site-packages/aiohttp/streams.py', line 392, in readany
    await self._wait('readany')
  File '/usr/local/lib/python3.9/site-packages/aiohttp/streams.py', line 306, in _wait
    await waiter
  File '/usr/local/lib/python3.9/site-packages/aiohttp/helpers.py', line 656, in __exit__
    raise asyncio.TimeoutError from None
asyncio.exceptions.TimeoutError

I hope someone can help me with this, because I have quite a few of the Plugwise Circles at home so I hope to be able to get it working again.

I posted this question in another forum, thanks @bouwew for pointing me to this forum.

Grtz
Edwin

Hi Edwin,

I would suggest switching to Plugwise-beta, installed as a custom_component, see GitHub - plugwise/plugwise-beta: Custom-component / development version of the Plugwise Home Assistant platform
Most likely the issue you are experiencing is already solved in Plugwise-beta.
Read the instructions in the github on how to install.

Any questions/issues, let me know in this topic.

Tried this option this morning and it works really great! My problem seems to be completely solved with this! Thanks for the tip @bouwew

Nice! Enjoy using plugwise-beta :slight_smile:

Did you install it via HACS?

Yes, is there another option?

Ok great, then you will see any update we release, automatically.

Yes, the other option is installing manually, like you did with HACS. But then you don’t see when there’s an update so installed via HACS is the better option :slight_smile:

RELEASE Plugwise-beta v0.17.0

NEW Aug 2021 [0.17.0]

  • Link to plugwise v0.12.0 Release Energy support and bugfixes · plugwise/python-plugwise · GitHub
  • Stick:
    • Feature: Add “Energy Consumption Today” sensor to allow adding devices to the new ‘Energy’ dashboard introduced in Home-Assistant 2021.8
    • Bugfix: Make energy consumption monitoring more reliable and possible fixes reported issues #149 & #157
  • Smile:
    • Implement the new sensor attributes needed to support the HA Core Energy dashboard
    • Correct the unit_of_measurement for cumulative energy sensors (Wh → kWh)
1 Like