neffs / ha-cometblue Goto Github PK
View Code? Open in Web Editor NEWHome Assistant Integration for Eurotronics Comet Blue thermostats
Home Assistant Integration for Eurotronics Comet Blue thermostats
Due to changes in the HaBleakScannerWrapper, the plugin is no longer able to detect devices:
'HaBleakScannerWrapper' has no attribute 'find_device_by_address'
The problem has been discussed here: https://community.home-assistant.io/t/eurotronic-cometblue-xavax-hama-sygonix/47783/85
The problem might be located in HaBleakScannerWrapper itself, since I do not see changes in the corresponding Bleak API.
Sorry, I'm new to HA and probably I'm messing HA terminology.
Since CometBlue has a built-in thermometer could your integration provide also a sensor for current temperature so I can put some graphs on a dashboard?
Thanks
On graph time to time I see drops to temp -47,5 and then back to normal. Probably related to #6
Hi
I'm getting this on HA launch:
[homeassistant.loader] No 'version' key in the manifest file for custom integration 'cometblue'. This will not be allowed in a future version of Home Assistant. Please report this to the maintainer of 'cometblue'
Can’t get it to work even with the HACS component (I removed the original one beforehand). I do have the entity in the UI, but it’s Unavailable and I’m getting “can’t read the data, is your PIN correct?”
The PIN always works with the Europrog iPhone apps just fine.
I’ve tried
I did change the config yaml and restarted HA each time.
Mac address is correct, the entity wouldn’t work at all with wrong addres.
HA 0.100.3 on RPI 4 with the built-in BT hardware.
In Home Assistant 2022.7 the bluepy library is not working anymore.
https://www.home-assistant.io/blog/2022/07/06/release-20227/#breaking-changes
do you plan to migrate this great plugin to the bleak library?
https://pypi.org/project/bleak/
Errors in log:
2022-09-14 23:57:31.486 ERROR (SyncWorker_1) [homeassistant.util.package] Unable to install package cometblue_lite==0.4.1: error: subprocess-exited-with-error × python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [8 lines of output] /usr/local/lib/python3.10/site-packages/setuptools/dist.py:772: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead warnings.warn( running bdist_wheel running build running build_py Working dir is /tmp/pip-install-oj9gi1v9/bluepy_fc238c469c4046dfbac1e7d85a2175f7 execute make -C ./bluepy clean error: [Errno 2] No such file or directory: 'make' [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for bluepy error: subprocess-exited-with-error × Running setup.py install for bluepy did not run successfully. │ exit code: 1 ╰─> [10 lines of output] /usr/local/lib/python3.10/site-packages/setuptools/dist.py:772: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead warnings.warn( running install /usr/local/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running build running build_py Working dir is /tmp/pip-install-oj9gi1v9/bluepy_fc238c469c4046dfbac1e7d85a2175f7 execute make -C ./bluepy clean error: [Errno 2] No such file or directory: 'make' [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure × Encountered error while trying to install package. ╰─> bluepy note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.
Since updating to 2024.1 of HA , the Integration doesn't work anymore. The Errors I get in the Logs are :
Logger: custom_components.cometblue.climate
Source: custom_components/cometblue/climate.py:243
Integration: cometblue (documentation)
First occurred: 21:50:50 (150 occurrences)
Last logged: 22:14:50
Updating the state for D5:15:61:D4:65:7C failed: Argument 'address' has incorrect type (expected str, got NodeStrClass)
Updating the state for E8:C9:CA:B3:BB:AC failed: Argument 'address' has incorrect type (expected str, got NodeStrClass)
Updating the state for 60:9B:32:2F:B9:DB failed: Argument 'address' has incorrect type (expected str, got NodeStrClass)
Updating the state for 26:44:32:A1:CD:DF failed: Argument 'address' has incorrect type (expected str, got NodeStrClass)
Updating the state for 3C:A8:0B:75:FC:30 failed: Argument 'address' has incorrect type (expected str, got NodeStrClass)
Logger: homeassistant.helpers.entity
Source: helpers/entity.py:1520
First occurred: 21:49:50 (19 occurrences)
Last logged: 21:49:51
Entity None (<class 'custom_components.cometblue.climate.CometBlueThermostat'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <ClimateEntityFeature.TARGET_TEMPERATURE: 1>, please report it to the author of the 'cometblue' custom integration and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
Entity None (<class 'custom_components.hacs.update.HacsRepositoryUpdateEntity'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <UpdateEntityFeature.INSTALL|PROGRESS|RELEASE_NOTES: 21>, please create a bug report at https://github.com/hacs/integration/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
I hope this Integration is still under Maintenance. It served me so well during the last Year using ESP32 Bluetooth Proxies....
Thx in Advance if anyone can correct this ...
I have added your repository to the Addon-Store of Hassio. But the repository is listed as unknown. Hassio cannot find any repository.json.
Is this repository intended to be added to the Addon-Store? Or how could this plugin be installed?
Hi,
How can i determine the MAC-addresses of my Comet Blue devices?
I am really thankful for your work on this add on for HA, loving it really,
im using 2 older Sygonix Thermostat (old Firmeware, external Bluetooth board on the thermostat, aka using the old handles) and 2 newer thermostats with integrated Bluetooth that is using the new handles.
The two old ones are working perfectly, instant response, always update, no problem at all.
The newer ones are however not working as intended. They display the correct value, but as soon as i try to set a new target temp the thermostat in HA goes to -64° C and will only show the proper termperature after the next update cycle. not a big deal, but some times the thermostat does not update at all. E.g. when i use the thermostat on the Lovelace UI it wont do anything, only if i open the entity and set the temperature manually with the up and down arrows. unfortunately with automations it also only works 50% of the time.
The new ones work quite ok with the add on from https://github.com/floxdeveloper/ha-cometblue which is based on your previous code. it however does miss features such as battery level.
Here is the error log i get.
if you have time i'd really appreciate you taking a look into this as i would like to get some more the thermostats for the other heaters i have.
Logger: homeassistant.helpers.entity
Source: custom_components/cometblue/climate.py:175
First occured: 8:17:09 PM (19 occurences)
Last logged: 8:35:09 PM
Update for climate.thermostatbed fails
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/cometblue_lite/cometblue.py", line 274, in update
self.connect()
File "/usr/local/lib/python3.7/site-packages/cometblue_lite/cometblue.py", line 196, in connect
self._conn.connect(self._address)
File "/usr/local/lib/python3.7/site-packages/bluepy/btle.py", line 445, in connect
self._connect(addr, addrType, iface)
File "/usr/local/lib/python3.7/site-packages/bluepy/btle.py", line 433, in _connect
self._writeCmd("conn %s %s\n" % (addr, addrType))
File "/usr/local/lib/python3.7/site-packages/bluepy/btle.py", line 305, in _writeCmd
self._helper.stdin.flush()
BrokenPipeError: [Errno 32] Broken pipe
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 476, in async_device_update
await self.hass.async_add_executor_job(self.update)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/cometblue/climate.py", line 175, in update
self._thermostat.update()
File "/usr/local/lib/python3.7/site-packages/cometblue_lite/cometblue.py", line 304, in update
self.disconnect()
File "/usr/local/lib/python3.7/site-packages/cometblue_lite/cometblue.py", line 226, in disconnect
self._conn.disconnect()
File "/usr/local/lib/python3.7/site-packages/bluepy/btle.py", line 453, in disconnect
self._writeCmd("disc\n")
File "/usr/local/lib/python3.7/site-packages/bluepy/btle.py", line 305, in _writeCmd
self._helper.stdin.flush()
BrokenPipeError: [Errno 32] Broken pipe
Home Assistant 2022.8.7
Supervisor 2022.08.3
Operating System 8.5
Thermostat model_type: COBL0133
Error Log:
Traceback (most recent call last): File "/usr/local/lib/python3.10/asyncio/events.py", line 80, in _run self._context.run(self._callback, *self._args) File "/usr/local/lib/python3.10/site-packages/cometblue_lite/cometblue.py", line 418, in _disconnect asyncio.create_task(self._execute_disconnect()) AttributeError: 'CometBlue' object has no attribute '_execute_disconnect'
device_state_attribute
was replaced with extra_state_attribute
Home Assistant 2022.8.7
Supervisor 2022.08.3
Operating System 8.5
Thermostat model_type: COBL0133
After set HVAC_MODE to off by thermostat card on the thermostat state is OK (setting to off), but state of entity in hassio is incorrect because is set to heat
DEBUG (MainThread) [custom_components.cometblue.climate] HVAC_MODE to set: off DEBUG (MainThread) [cometblue_lite.cometblue] Updating Temperatures to {'current_temp': -128, 'manual_temp': 15, 'target_temp_l': -128, 'target_temp_h': -128, 'offset_temp': -128, 'window_open_detection': -128, 'window_open_minutes': -128} DEBUG (MainThread) [cometblue_lite.cometblue] Successfully updated Temperatures for device b0:36:27:55:eb:70 DEBUG (MainThread) [cometblue_lite.cometblue] Updating Status to {'manual_mode': True} DEBUG (MainThread) [cometblue_lite.cometblue] Updating Status to {'manual_mode': True} DEBUG (MainThread) [cometblue_lite.cometblue] Successfully updated status for device b0:36:27:55:eb:70 DEBUG (MainThread) [cometblue_lite.cometblue] Got invalid Temperatures: (-128, 15, -128, -128, -128, -128, -128) DEBUG (MainThread) [cometblue_lite.cometblue] Successfully fetched new readings for device b0:36:27:55:eb:70
Hi,
i just tried to add you repo neffs/ha-cometblue to hacs, but it does not exist in the search of the hacs integrations.
HassOS 4.17
Supervisor 2020.11.0
What am i doing wrong?
kind regards, Max
Hallo, first thank you for the integration for those old Bluetooth thermostat devices.
I'm reporting here diverse warnings that should be handled until next year in matter of HA Core 2025.1 compatibility
1:
Entity None (<class 'custom_components.cometblue.climate.CometBlueThermostat'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <ClimateEntityFeature.TARGET_TEMPERATURE: 1>, please report it to the author of the 'cometblue' custom integration and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
2:
HVAC_MODE_HEAT was used from cometblue, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.HEAT instead, please report it to the author of the 'cometblue' custom integration
HVAC_MODE_AUTO was used from cometblue, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.AUTO instead, please report it to the author of the 'cometblue' custom integration
HVAC_MODE_OFF was used from cometblue, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.OFF instead, please report it to the author of the 'cometblue' custom integration
SUPPORT_TARGET_TEMPERATURE was used from cometblue, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.TARGET_TEMPERATURE instead, please report it to the author of the 'cometblue' custom integration
3:
TEMP_CELSIUS was used from cometblue, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please report it to the author of the 'cometblue' custom integration
Greetings!
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.