Giter Site home page Giter Site logo

home-assistant-bgh-smart's Introduction

BGH Smart integration for Home Assistant

hacs_badge

This integration will let you control your BGH Smart HVAC from Home Assistant.

Installation

Manual

Copy the bgh_smart folder to <config_dir>/custom_components/bgh_smart/.

HACS

  1. Go to the Home Assistant Community Store (HACS)
  2. Go to Integrations
  3. Click in the menu with 3 dots on the top right of the screen and select "Custom repositories"
  4. Add mool/home-assistant-bgh-smart as a custom repository and select the Integration category
  5. Search for "BGH Smart"
  6. Install the integration

Configuration

Add the following entry in your configuration.yaml:

climate:
  - platform: bgh_smart
    username: your_username
    password: your_secret_password

home-assistant-bgh-smart's People

Contributors

mool avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

home-assistant-bgh-smart's Issues

No carga la información si hay un retraso desde la web de Solidmation

Hola,

En el día de hoy me apareció esto:
imagen

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).

[Automatismo] Obtener temperatura para encender el A/A

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

Updating bgh_smart climate took longer than the scheduled update interval 0:01:00

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.

No ejecuta cambios sobre el server

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?

Stop working. Entity not available

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.

Cannot set up fan mode to medium

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.

Could not connect to BGH Smart cloud

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

Advertencia en el Log y no sincroniza estado

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

[FR] Agregar a que zona corresponde cada A/A

Quisiera saber si es posible agregar la posibilidad de agregar a que zona corresponde cada A/A detectado. Actualmente HA arroja el siguiente error:
imagen

Si se puede hacer a traves de la configuración yaml por favor si alguien me indica como hacerlo.
Gracias.

Error adding entities for domain climate with platform bgh_smart

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 !!!

Not work anymore Homeassistant 2022.3.8

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

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.