hy3n4 / ha-cc-cometblue Goto Github PK
View Code? Open in Web Editor NEWHomeAssistant Custom Component for CometBlue Thermostat
HomeAssistant Custom Component for CometBlue Thermostat
Hi,
I followed the steps but all the time i see this error :
Unable to find component platform
Unable to find component devices
You don't need to copy system libraries iniside venv. You can either create venv with switch --system-site-packages
or if you already have venv created just delete your_venv_dir/lib/pythonXXX/no-global-site-packages.txt
I'm referring to this:
https://github.com/Hy3n4/ha-cc-cometblue/blame/master/README.md#L59
I get this three logentries:
First:
Logger: homeassistant.loader
Source: loader.py:786
First occurred: 20:17:45 (1 occurrences)
Last logged: 20:17:45
No 'version' key in the manifest file for custom integration 'cometblue'. As of Home Assistant 2021.6, this integration will no longer be loaded. Please report this to the maintainer of 'cometblue'
second:
Logger: homeassistant.components.climate
Source: components/climate/__init__.py:557
Integration: Klima (documentation, issues)
First occurred: 20:17:45 (1 occurrences)
Last logged: 20:17:45
ClimateDevice is deprecated, modify CometBlueThermostat to extend ClimateEntity
third:
Logger: homeassistant.components.climate
Source: custom_components/cometblue/climate.py:85
Integration: Klima (documentation, issues)
First occurred: 20:17:45 (1 occurrences)
Last logged: 20:17:45
Error while setting up cometblue platform for climate
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/entity_platform.py", line 205, in _async_setup_platform
await asyncio.shield(task)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/homeassistant/.homeassistant/custom_components/cometblue/climate.py", line 85, in setup_platform
from cometblue import device as cometblue_dev
ModuleNotFoundError: No module named 'cometblue'
Like frist two logs, it seems, the extension is loaded
commonucation by shell woks:
(homeassistant) homeassistant@raspberrypi:~/.homeassistant/custom_components $ cometblue device -p 0 XX:XX:XX:XX:XX:XX get temperatures
Current temperature: 17.0 °C
Temperature for manual mode: 8.0 °C
Target temperature low: 8.0 °C
Target temperature high: 27.0 °C
Offset temperature: 0.0 °C
Window open sensitivity: 4 (1 = low, 4 = high, 8 = mid)
Window open minutes: 10
Hi,
I hope that somebody recognizes the error i see when using the component.
It probably has something to do with that i run Home Assistant in a Docker container without the "network_type=host" setting. But in the container "bluetoothctl" does work. So i'm hoping to do get it up&running.
If i run the command in the container: "cometblue discover"
This error gets outputted:
E|2019-11-17 08:12:15,543|2371:140190419204896| Command processing returned exception: org.freedesktop.DBus.Error.UnknownObject: Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist
any ideas?
Hi @Hy3n4 ,
do you have any idea what can cause this? It uses to happen few days after starting hass and I have to restart hass to get it working. I suspect the update thread to stuck on some blocking call. Can we somehow limit the update function execution time?
May 27 10:26:38 localhost hass[21620]: 2019-05-27 10:26:38 INFO (Thread-16) [custom_components.cometblue.climate] Update called B7:1E:5A:99:BF:21
May 27 10:26:38 localhost hass[21620]: 2019-05-27 10:26:38 INFO (Thread-16) [cometblue.device] Connecting to device "B7:1E:5A:99:BF:21"...
May 27 10:26:42 localhost hass[21620]: 2019-05-27 10:26:42 INFO (Thread-22) [cometblue.device] Unknown characteristics discovered on "B7:1E:5A:99:BF:21": ['00002a05-0000-1000-8000-00805f9b34fb', '47e9ee40-47e9-11e4-8939-164230d1df67']
May 27 10:26:48 localhost hass[21620]: 2019-05-27 10:26:48 WARNING (MainThread) [homeassistant.helpers.entity] Update of climate.living_room is taking over 10 seconds
May 27 10:27:07 localhost hass[21620]: 2019-05-27 10:27:07 ERROR (Thread-22) [cometblue.device] Value write failed for characteristic "47e9ee30-47e9-11e4-8939-164230d1df67" with error "Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken."
May 27 10:27:07 localhost hass[21620]: 2019-05-27 10:27:07 DEBUG (Thread-16) [custom_components.cometblue.climate] _current.target_temp: 22.5
May 27 10:27:08 localhost hass[21620]: 2019-05-27 10:27:08 DEBUG (Thread-16) [custom_components.cometblue.climate] _current.target_temp diff: False
May 27 10:27:08 localhost hass[21620]: 2019-05-27 10:27:08 DEBUG (Thread-16) [custom_components.cometblue.climate] _current.target_temp_h diff: True
May 27 10:27:08 localhost hass[21620]: 2019-05-27 10:27:08 DEBUG (Thread-16) [custom_components.cometblue.climate] _current.target_temp_l diff: True
May 27 10:27:08 localhost hass[21620]: 2019-05-27 10:27:08 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback _chain_future.<locals>._set_state(<Future pendi...sk._wakeup()]>, <Future at 0x...StopIteration>) at /usr/lib/python3.5/asyncio/futures.py:446
May 27 10:27:08 localhost hass[21620]: Traceback (most recent call last):
May 27 10:27:08 localhost hass[21620]: File "/usr/lib/python3.5/asyncio/events.py", line 126, in _run
May 27 10:27:08 localhost hass[21620]: self._callback(*self._args)
May 27 10:27:08 localhost hass[21620]: File "/usr/lib/python3.5/asyncio/futures.py", line 448, in _set_state
May 27 10:27:08 localhost hass[21620]: _copy_future_state(other, future)
May 27 10:27:08 localhost hass[21620]: File "/usr/lib/python3.5/asyncio/futures.py", line 424, in _copy_future_state
May 27 10:27:08 localhost hass[21620]: dest.set_exception(exception)
May 27 10:27:08 localhost hass[21620]: File "/usr/lib/python3.5/asyncio/futures.py", line 364, in set_exception
May 27 10:27:08 localhost hass[21620]: raise TypeError("StopIteration interacts badly with generators "
May 27 10:27:08 localhost hass[21620]: TypeError: StopIteration interacts badly with generators and cannot be raised into a Future
May 27 10:31:31 localhost hass[21620]: 2019-05-27 10:31:31 WARNING (MainThread) [homeassistant.components.climate] Updating cometblue climate took longer than the scheduled update interval 0:05:00
May 27 10:36:32 localhost hass[21620]: 2019-05-27 10:36:32 WARNING (MainThread) [homeassistant.components.climate] Updating cometblue climate took longer than the scheduled update interval 0:05:00
May 27 10:41:33 localhost hass[21620]: 2019-05-27 10:41:33 WARNING (MainThread) [homeassistant.components.climate] Updating cometblue climate took longer than the scheduled update interval 0:05:00
May 27 10:43:51 localhost hass[21620]: 2019-05-27 10:43:51 ERROR (MainThread) [homeassistant.components.upc_connect.device_tracker] Error on 123
May 27 10:43:51 localhost hass[21620]: 2019-05-27 10:43:51 WARNING (MainThread) [homeassistant.components.upc_connect.device_tracker] Can't read device from 192.168.0.1
May 27 10:46:34 localhost hass[21620]: 2019-05-27 10:46:34 WARNING (MainThread) [homeassistant.components.climate] Updating cometblue climate took longer than the scheduled update interval 0:05:00
May 27 10:51:35 localhost hass[21620]: 2019-05-27 10:51:35 WARNING (MainThread) [homeassistant.components.climate] Updating cometblue climate took longer than the scheduled update interval 0:05:00
May 27 10:56:36 localhost hass[21620]: 2019-05-27 10:56:36 WARNING (MainThread) [homeassistant.components.climate] Updating cometblue climate took longer than the scheduled update interval 0:05:00
May 27 11:01:37 localhost hass[21620]: 2019-05-27 11:01:37 WARNING (MainThread) [homeassistant.components.climate] Updating cometblue climate took longer than the scheduled update interval 0:05:00
May 27 11:04:25 localhost hass[21620]: 2019-05-27 11:04:25 ERROR (MainThread) [homeassistant.components.upc_connect.device_tracker] Error on 123
May 27 11:04:25 localhost hass[21620]: 2019-05-27 11:04:25 WARNING (MainThread) [homeassistant.components.upc_connect.device_tracker] Can't read device from 192.168.0.1
May 27 11:06:38 localhost hass[21620]: 2019-05-27 11:06:38 WARNING (MainThread) [homeassistant.components.climate] Updating cometblue climate took longer than the scheduled update interval 0:05:00
May 27 11:11:39 localhost hass[21620]: 2019-05-27 11:11:39 INFO (Thread-11) [custom_components.cometblue.climate] Update called B7:1E:5A:99:BF:21
May 27 11:11:39 localhost hass[21620]: 2019-05-27 11:11:39 INFO (Thread-11) [cometblue.device] Connecting to device "B7:1E:5A:99:BF:21"...
May 27 11:11:39 localhost hass[21620]: 2019-05-27 11:11:39 DEBUG (Thread-11) [custom_components.cometblue.climate] _current.target_temp: 22.5
May 27 11:11:39 localhost hass[21620]: 2019-05-27 11:11:39 DEBUG (Thread-11) [custom_components.cometblue.climate] _current.target_temp diff: False
May 27 11:11:39 localhost hass[21620]: 2019-05-27 11:11:39 DEBUG (Thread-11) [custom_components.cometblue.climate] _current.target_temp_h diff: True
May 27 11:11:39 localhost hass[21620]: 2019-05-27 11:11:39 DEBUG (Thread-11) [custom_components.cometblue.climate] _current.target_temp_l diff: True
May 27 11:11:39 localhost hass[21620]: 2019-05-27 11:11:39 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback _chain_future.<locals>._set_state(<Future pendi...sk._wakeup()]>, <Future at 0x...StopIteration>) at /usr/lib/python3.5/asyncio/futures.py:446
May 27 11:11:39 localhost hass[21620]: Traceback (most recent call last):
May 27 11:11:39 localhost hass[21620]: File "/usr/lib/python3.5/asyncio/events.py", line 126, in _run
May 27 11:11:39 localhost hass[21620]: self._callback(*self._args)
May 27 11:11:39 localhost hass[21620]: File "/usr/lib/python3.5/asyncio/futures.py", line 448, in _set_state
May 27 11:11:39 localhost hass[21620]: _copy_future_state(other, future)
May 27 11:11:39 localhost hass[21620]: File "/usr/lib/python3.5/asyncio/futures.py", line 424, in _copy_future_state
May 27 11:11:39 localhost hass[21620]: dest.set_exception(exception)
May 27 11:11:39 localhost hass[21620]: File "/usr/lib/python3.5/asyncio/futures.py", line 364, in set_exception
May 27 11:11:39 localhost hass[21620]: raise TypeError("StopIteration interacts badly with generators "
May 27 11:11:39 localhost hass[21620]: TypeError: StopIteration interacts badly with generators and cannot be raised into a Future
Describe the bug
It doesn't work with HASS 0.89.1
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I'd like it to work
Version of component
Homeassistant (please complete the following information):
Error message
2019-03-08 10:49:10 ERROR (MainThread) [homeassistant.loader] Error loading custom_components.climate.cometblue. Make sure all dependencies are installed
Traceback (most recent call last):
File "/opt/hass/lib/python3.5/site-packages/homeassistant/loader.py", line 166, in _load_file
module = importlib.import_module(path)
File "/opt/hass/lib/python3.5/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 986, in _gcd_import
File "<frozen importlib._bootstrap>", line 969, in _find_and_load
File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 673, in exec_module
File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
File "/root/.homeassistant/custom_components/climate/cometblue.py", line 16, in <module>
from homeassistant.components.climate import (
ImportError: cannot import name 'STATE_AUTO'
2019-03-08 10:49:10 ERROR (MainThread) [homeassistant.loader] Unable to find platform cometblue.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.