I did solve this isssue at my local installation by making sure the backend lib “pushes” a value update and present the updated value of 0. This changes the state value from unknown to 0.
Currently busy to get all the bits and pieces ready to have an updated integration (and depending backend library) available in HACS.
The upcoming version will expose two additional sensors for both the inbound and outbound signal strength levels. Both sensors are disabled by default, so you have to enable them from the UI manually.
I’ve now installed it via HACS! Works great and now with the new plugwise images
Actual power usage read is the thing I mostly use, as you said this is still giving a lot of times Unknown.
Only thing to complain about is the Plugwise logo being used. It seems the logo has a white background instead of transparant. On default white theme this is fine, but when using a dark theme it looks like this:
PS another minor thing, the Stealth devices are still detected as Circle
Ok, you’re apparently running the 114 beta release. Indeed I have to fix the logo background. Thanks for reporting.
I’m still busy to figure out a different way to detect the difference between the Circle and Stealth devices. Currently the device type is based on reported hardware ID, which is the circle one for your stealth devices.
After updating to the new version, I’m seeing this in Logs:
Log Details (ERROR)
Logger: python-plugwise
Source: /usr/local/lib/python3.8/site-packages/plugwise/stick.py:81
First occurred: 9:57:23 AM (1 occurrences)
Last logged: 9:57:23 AM
###>- dept version -<###
forgot to remove this log entry before building/publishing the backend lib
Fortunately it doesn’t harm in any way. It’s only one log entry during startup. Please ignore it for now, I’ll fix it in next release.
Thanks for reporting
After updating to Core 0.114.0, I’m seeing this in Logs:
Log Details (ERROR)
Logger: root
Source: /usr/src/homeassistant/homeassistant/bootstrap.py:313
First occurred: 2:57:56 PM (1 occurrences)
Last logged: 2:57:56 PM
Uncaught thread exception
Traceback (most recent call last):
File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.8/site-packages/plugwise/stick.py", line 701, in _watchdog_loop
if not self.connection.read_thread_alive():
File "/usr/local/lib/python3.8/site-packages/plugwise/connections/connection.py", line 103, in read_thread_alive
return self._reader_thread.isAlive() if run_reader_thread else False
NameError: name 'run_reader_thread' is not defined
@brefa, an observation and some feedback, if you don’t mind
I see you are showing as an attribute the “today_energy_kwh” value. When looking at the value: 0.002 at the moment, and looking at my own sensor for the same entity: 2.2, it looks like your value is a factor 1000 wrong.
Nice catch, the today_energy_kwh is definitely miscalculated. I have fixed it in the latest version 1.2.2.
I have assigned the “outlet” device_class according to this development page. Apparently the user documentation is kind of missing the switch entity.
Do you experience any negative behavior due to this device_class setting?
Just FYI, not to steal your thunder @brefa , initial support for the Plugwise Stretch with firmware 3.1 is available in Plugwise-beta. Please leave a message in the Plugwise Smile custom_component (BETA) topic if you are interested in helping us test.
@bouwew, sorry I cannot reproduce the problem you are reporting. Do you experience this for all plugs and do the values remain at 0 even after one day?
If possible could you collect some debug logging of the startup process (first few minutes should be enough) so I’m able to investigate this.
Hi, first off thank you for all your hard work. I was very excited to see that my plugs aren’t useless anymore. I do have a problem with configuring the USB stick. It gives me the following error: ‘Initialization of Plugwise USB-stick failed’ when selecting the stick. I followed the 3 steps written in the first post, anything I overlooked? thanks.