Giter VIP home page Giter VIP logo

ha-cc-cometblue's People

Contributors

danielkucera avatar hy3n4 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ha-cc-cometblue's Issues

Problems with installation

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

org.freedesktop.DBus.Error.UnknownObject: Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist

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?

Exception in callback _chain_future

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

Doesn't work with HASS 0.89.1

Describe the bug
It doesn't work with HASS 0.89.1

To Reproduce
Steps to reproduce the behavior:

  1. Upgrade to HASS to 0.89.1
  2. Start it
  3. See error in ~/.homeassistant/home-assistant.log

Expected behavior
I'd like it to work

Version of component

Homeassistant (please complete the following information):

  • Browser Firefox
  • Version 0.89.1

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.