Plugwise Smile custom_component (BETA)

Legacy Anna (firmware 1.8) users, please see this:

1 Like

FYI version 0.2.13 is available on the github.
This version is very close to what will be available in HA Core once all PR’s have been merged.

Guys I can confirm the updates. The last couple of days I went from 1.8.0 -> 3.1.11 -> 4.0.19

1 Like

FYI v0.2.15 v0.2.14 is available:

  • more bugfixes and changes under the hood
  • fixes for bugs that have appeared recently,
  • changes under the hood, related to the process of getting the code into HA Core.

FYI, due to especially @CoMPaTech’s efforts, all our Plugwise-PR’s have been accepted and merged into the HA Core dev-branch.
This means that what you know as Plugwise-beta v0.2.15 will become available als Plugwise official in the next HA Core release: 0.111, replacing the present Plugwise official component.

The updated documentation is available here, for now: https://next.home-assistant.io/integrations/plugwise/

2 Likes

The updated Plugwise component is live in HA Core 0.111.0b0!!

2 Likes

And for those of you waiting for it … 0.111 is out and Plugwise Adam/Anna/P1 are (should?) be happily working for all of you. Feel free to stay on plugwise-beta, remove your integrations and re-add them using Plugwise in core itself or double-up. Enjoy it!

Do read the breaking section (as you should always do) before upgrading. Especially since you need the UI to add the component - other than that naming of the entities (which users probably would call sensors or devices) has changed.

1 Like

and are again gone in the core integration on 0.111? Forgive me for getting back to this, it just seems so odd…

and an icon issue:


where before this was showing a percentage icon? maybe a bug, or oversight?

Not sure what causes the first issue, I do see the available schematics in my system. I hope you do not run two Plugwise integrations in parallel? Is there anything shown in the HA Log?

On the icon-issue, looks like the code taking care of this is not in HA Core (yet).

Please create 2 separate Issues for these 2 bugs in the HA Core github, this will help getting the fixes in easier/faster.

Thanks! Nice work!

On the first issue, I just noticed we still need to remove one line of code.
If you create a 2nd schedule, the available ones will be there, sorry :slight_smile:

ok, thanks, you’ll fix it :wink:
so no need for an issue in the repo?

but it was there wasn’t it? Ive always seen the percentage icon on that ever since you added modulation.

The percentage-icon was in plugwise-beta, correct.
And it will return in HA Core.
But, you creating one issue for the missing icon will surely help getting the fix for this accepted.

consider it done: Plugwise: no icon for percentage modulation · Issue #36669 · home-assistant/core · GitHub

1 Like

The integration is not installing on my system.
After the installing window it pops back to the integration list. Rebooted everything, same result.

In what git should I report this, HA core or your Plugwise Smile?

I am currently running on 111.1

||amd64|

| --- | --- |
|dev|false|
|docker|false|
|hassio|false|
|installation_type|Home Assistant Core|
|os_name|FreeBSD|
|os_version|11.3-RELEASE-p9|
|python_version|3.7.6|
|timezone|Europe/Amsterdam|
|version|0.111.1|
|virtualenv|true|

Still dumping all info here.

2020-06-12 13:20:43 ERROR (SyncWorker_25) [homeassistant.util.package] Unable to install package Plugwise_Smile==0.2.13: ERROR: Command errored out with exit status 1:
     command: /srv/homeassistant/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ytzy5xzz/lxml/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ytzy5xzz/lxml/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-ytzy5xzz/lxml/pip-egg-info
         cwd: /tmp/pip-install-ytzy5xzz/lxml/
    Complete output (3 lines):
    Building lxml version 4.5.1.
    Building without Cython.
    Error: Please make sure the libxml2 and libxslt development packages are installed.
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
WARNING: You are using pip version 20.0.2; however, version 20.1.1 is available.
You should consider upgrading via the '/srv/homeassistant/bin/python3.7 -m pip install --upgrade pip' command.
2020-06-12 13:20:43 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 418, in start
    resp = await task
  File "/srv/homeassistant/lib/python3.7/site-packages/aiohttp/web_app.py", line 458, in _handle
    resp = await handler(request)
  File "/srv/homeassistant/lib/python3.7/site-packages/aiohttp/web_middlewares.py", line 119, in impl
    return await handler(request)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/http/real_ip.py", line 39, in real_ip_middleware
    return await handler(request)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/http/auth.py", line 127, in auth_middleware
    return await handler(request)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/http/view.py", line 129, in handle
    result = await result
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/config/config_entries.py", line 112, in post
    return await super().post(request)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/http/data_validator.py", line 60, in wrapper
    result = await method(view, request, *args, **kwargs)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/data_entry_flow.py", line 73, in post
    "show_advanced_options": data["show_advanced_options"],
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/data_entry_flow.py", line 117, in async_init
    flow = await self.async_create_flow(handler, context=context, data=data)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/config_entries.py", line 518, in async_create_flow
    await async_process_deps_reqs(self.hass, self._hass_config, integration)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 322, in async_process_deps_reqs
    hass, integration.domain
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/requirements.py", line 78, in async_get_integration_with_requirements
    hass, integration.domain, integration.requirements
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/requirements.py", line 130, in async_process_requirements
    raise RequirementsNotFound(name, [req])
homeassistant.requirements.RequirementsNotFound: Requirements for plugwise not found: ['Plugwise_Smile==0.2.13'].

According to the information in the log you need to install above packages, these are missing on your system.

I had not updated the HA plugin in Freenas (FreeBSD jail) in a while.
That update installed al the missing packages and the integration is running now.

Great news :+1:

A heads-up on what @CoMPaTech and I are working on: OPTIONS and zeroconf discovery.

In the Plugwise-beta integration there will be an additional “button”:


Clicking this OPTIONS-button will allow you to change the scan_interval for the integration.

Auto-discovery via zeroconf: the Smile(s) will be auto-detected, only the Plugwise-password(s) will need to be entered.

Coming soon to Plugwise-beta 0.3.

To follow up on the announcement of Plugwise-beta v0.3.0, we are looking for testers for this release.

Are you able and willing to manual edit a Core-file (homeassistant/generated/zeroconf.py) before installing this update, then you are what we are looking for!

When the testing is successful, we will roll out these updates into Core so all Plugwise users can enjoy the new functions.

Please respond in this topic if you can help in testing the v0.3.0-update.