mool / home-assistant-bgh-smart Goto Github PK
View Code? Open in Web Editor NEWBGH Smart integration for Home Assistant
BGH Smart integration for Home Assistant
Hola, primero que nada, muchas gracias por crear esta integración para Home Assistant. Hacía tiempo estaba buscando algo similar.
Por otro lado, quería saber si había forma de utilizar el valor de "current_temperature" en un automatismo para encender el aire acondicionado basado (entre otras cosas) en la temperatura actual.
Gracias.
Jose
The entity is not available and in the plataform BGH its ok
hola hace unos dias no se sincronizan los estados de los aires en HA , por ejemplo se enciendo con el c remoto en HA no no mostraba prendido, si lo enciendo de HA prende... encontre en el log la siguiente advertencia... alguna idea q es? muchas gracias. saludos Cesar
Logger: homeassistant.components.climate
Source: components/climate/init.py:354
Integration: Climatización (documentation, issues)
First occurred: 13:15:09 (4 occurrences)
Last logged: 13:15:09
Entity None (<class 'custom_components.bgh_smart.climate.BghHVAC'>) implements HVACMode(s): auto, cool, heat, dry, fan_only, off and therefore implicitly supports the turn_on/turn_off methods without setting the proper ClimateEntityFeature. Please create a bug report at https://github.com/mool/home-assistant-bgh-smart/issues
Quería avisar que Home Assistant está arrojando un nuevo error en la integración debido a un nuevo cambio:
No 'version' key in the manifest file for custom integration 'bgh_smart'. This will not be allowed in a future version of Home Assistant. Please report this to the maintainer of 'bgh_smart'
Ver más info acá: https://developers.home-assistant.io/docs/creating_integration_manifest/#version
Hi,
First of all, I want to thank your addon. It was very useful to me.
I would like to report a small issue (and a possible solution) when trying to set up the fan mode to 'medium' with the Home Assistant web UI. I couldn't configure it and saw the following log error:
2021-03-14 12:48:24 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2938816712] 'medium'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 136, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1455, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1490, in _execute_service
await handler.job.target(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await self.hass.helpers.service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 595, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 664, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 632, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 422, in async_set_fan_mode
await self.hass.async_add_executor_job(self.set_fan_mode, fan_mode)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/bgh_smart/climate.py", line 207, in set_fan_mode
self.set_mode()
File "/config/custom_components/bgh_smart/climate.py", line 180, in set_mode
self._client.set_mode(
File "/usr/local/lib/python3.8/site-packages/pybgh/__init__.py", line 142, in set_mode
'fanMode': FAN_MODE[fan],
KeyError: 'medium'
I have been able to fix this problem replacing this code line:
home-assistant-bgh-smart/custom_components/bgh_smart/climate.py
@@ -31,7 +31,7 @@
FAN_AUTO = 'auto'
FAN_LOW = 'low'
-FAN_MEDIUM = 'mid'
+FAN_MEDIUM = 'medium'
FAN_HIGH = 'high'
I suppose the problem is because the pybgh library uses 'mid' instead of 'medium' key.
I hope this helps,
Damian.
Hola, intente instalar la integracionistas según instrucciones via HACS pero estoy recibiendo el siguiente error:
Hi, I tried to install this integration acceding to the instruction provided via HACS but I'm getting the following error:
"2023-01-06 16:58:29.510 ERROR (MainThread) [homeassistant.components.climate] Error adding entities for domain climate with platform bgh_smart
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 438, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 709, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 804, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 556, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 597, in _async_write_ha_state
state = self._stringify_state(available)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 562, in _stringify_state
if (state := self.state) is None:
File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 245, in state
return HVACMode(self.hvac_mode).value
File "/usr/local/lib/python3.10/enum.py", line 385, in call
return cls.new(cls, value)
File "/usr/local/lib/python3.10/enum.py", line 710, in new
raise ve_exc
ValueError: 'unknown' is not a valid HVACMode
2023-01-06 16:58:29.512 ERROR (MainThread) [homeassistant.components.climate] Error while setting up bgh_smart platform for climate
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 297, in _async_setup_platform
await asyncio.gather(*pending)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 438, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 709, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 804, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 556, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 597, in _async_write_ha_state
state = self._stringify_state(available)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 562, in _stringify_state
if (state := self.state) is None:
File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 245, in state
return HVACMode(self.hvac_mode).value
File "/usr/local/lib/python3.10/enum.py", line 385, in call
return cls.new(cls, value)
File "/usr/local/lib/python3.10/enum.py", line 710, in new
raise ve_exc
ValueError: 'unknown' is not a valid HVACMode"
Alguien podría ayudarme a validar que esta pasando?, seguí las instrucciones según lo descrito pero no he logrado levantan el componente. muchas gracias!!!
Does anyone can help me t figured out what's happening , thank !!!
Buenas Tardes Mool
Primero q nada gracias por la integracion
Estoy teniendo problemas en home assistant me da el siguiente error
This error originated from a custom integration.
Logger: custom_components.bgh_smart.climate
Source: custom_components/bgh_smart/climate.py:67
Integration: bgh_smart (documentation)
First occurred: 2:29:00 PM (1 occurrences)
Last logged: 2:29:00 PM
Could not connect to BGH Smart cloud
Hola.
Estoy teniendo este mensaje en el registro desde hace varios días (probablemente coincidiendo con la actualización de HA a 2021.6.4, pero no podría asegurarlo)
Logger: homeassistant.components.climate
Source: helpers/entity_platform.py:693
Integration: Climatización (documentation, issues)
First occurred: 20:08:27 (7 occurrences)
Last logged: 20:14:27
Updating bgh_smart climate took longer than the scheduled update interval 0:01:00
Si puedo conectarme y controlar los equipos desde la aplicación BGH Smart Control.
Entity None (<class 'custom_components.bgh_smart.climate.BghHVAC'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <ClimateEntityFeature.TARGET_TEMPERATURE|FAN_MODE: 9>, please create a bug report at https://github.com/mool/home-assistant-bgh-smart/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
Ha dejado de funcionar. Mirando un poco el retorno del servicio de solidmation, el objeto que vuelve tiene la informacion de los dispositivos, pero no del detalle (si esta prendido, temperatura, etc), solo ID y nombre. Raw_data viene vacio, y ahi debiera venir la informacion faltante. Sin embargo la aplicacion de BGH funciona ok, y no fue actualizada hace muchisimo tiempo. Puede ser que haya mas de un endpoint que la aplicacion utiliza y si falla uno usa otro ? O cual puede ser el problema?
Edit: Cuando esta caído el servidor la app funciona de modo local, con lo cual intentare hacer ingeniería inversa para llevar a HA el funcionamiento solo local de los dispositivos.
Hola,
En el día de hoy me apareció esto:
Con este error en el registro de Home Assistant:
Home Assistant 0.112.3
Logger: homeassistant.components.websocket_api.http.connection.140318281651600
Source: custom_components/bgh_smart/climate.py:184
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 9:19:26 (4 occurrences)
Last logged: 9:19:35
'unknown'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 130, in handle_call_service
connection.context(msg),
File "/usr/src/homeassistant/homeassistant/core.py", line 1260, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1295, in _execute_service
await handler.func(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 209, in handle_service
self._platforms.values(), func, call, required_features
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 454, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 595, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 485, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 430, in async_set_hvac_mode
await self.hass.async_add_executor_job(self.set_hvac_mode, hvac_mode)
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/bgh_smart/climate.py", line 202, in set_hvac_mode
self.set_mode()
File "/config/custom_components/bgh_smart/climate.py", line 184, in set_mode
self._fan_speed)
File "/usr/local/lib/python3.7/site-packages/pybgh/__init__.py", line 142, in set_mode
'fanMode': FAN_MODE[fan],
KeyError: 'unknown'
Atribuyo este problema cuando el servidor de Solidmation demora demasiado en dar una respuesta. Lo mismo pasa en la aplicación Smart Control, donde figuran todos los equipos con estado "desconocido" para luego reportar el estado correcto (con una demora aproximada de 40-60 segundos).
Error while setting up bgh_smart platform for climate
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
await asyncio.shield(task)
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/bgh_smart/climate.py", line 77, in setup_platform
add_entities(BghHVAC(device, client) for device in devices)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 321, in _schedule_add_entities
list(new_entities),
File "/config/custom_components/bgh_smart/climate.py", line 77, in
add_entities(BghHVAC(device, client) for device in devices)
File "/config/custom_components/bgh_smart/climate.py", line 97, in init
self._parse_data()
File "/config/custom_components/bgh_smart/climate.py", line 113, in _parse_data
self._mode = MAP_MODE_ID[self._device['data']['mode_id']]
KeyError: 255
Hola, antes que todo muchas gracias por el add.
Tengo un inconveniente raro, modifico cualquier valor desde la entidad de home assistant Core y no se ve reflejado en la pagina ni en el dispositivo, pero para verificar que el Loguin si se realiza de forma correcta, cambie el nombre del dispositivo desde la pagina de bgh y si efectivamente la entidad (climate.<Nombre_dispositivo>) cambia al reiniciar el servidor.
Alguna recomendación?
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.