smartHomeHub / SmartIR

Integration for Home Assistant to control climate, TV and fan devices via IR/RF controllers (Broadlink, Xiaomi, MQTT, LOOKin, ESPHome)
MIT License
2.04k stars 1k forks source link

Integration stopped working in 2024.2.1 #1214

Open remontti opened 8 months ago

remontti commented 8 months ago

Home Assistant version Core 2024.2.1 Supervisor 2024.01.1 Operating System 11.5 Front-end 20240207.1

SmartIR version 1.17.9

SmartIR configuration

configuration.yaml
smartir:

media_player:
  - platform: smartir
    name: TV OLED
    unique_id: tv_sala_oled
    device_code: 1042
    controller_data: remote.broadlinkcinema_remote
    power_sensor: media_player.tv_da_sala_4  
  - platform: smartir
    name: Monitor Escritorio
    unique_id: monitor_escritorio
    device_code: 1062
    controller_data: remote.rmc4proescritorio

climate:
  - platform: smartir
    name: "Climatizador"
    unique_id: climatizador
    device_code: 1360
    controller_data: remote.broadlinksuite_remote
    temperature_sensor: sensor.suite_temperatura
    humidity_sensor: sensor.suite_umidade
  - platform: smartir
    name: "Ar da Cozinha"
    unique_id: arcozinha
    device_code: 1702
    controller_data: remote.broadlinksala_remote
    temperature_sensor: sensor.temperatura_cozinha
    humidity_sensor: sensor.umidade_cozinha
  - platform: smartir
    name: "Ar da Sala"
    unique_id: arsala
    device_code: 1702
    controller_data: remote.broadlinkcinema_remote
    temperature_sensor: sensor.temperatura_cozinha
    humidity_sensor: sensor.umidade_cozinha
  - platform: smartir
    name: "Ar do Escritório"
    unique_id: arescritorio
    device_code: 1241
    controller_data: remote.rmc4proescritorio
    temperature_sensor: sensor.temperatura_cozinha
    humidity_sensor: sensor.umidade_cozinha

fan:
  - platform: smartir
    name:  Ventilação quarto
    unique_id: ar_do_aquirto
    device_code: 1999
    controller_data: remote.broadlinksuite_remote

Describe the bug Integration stopped working. Note: I already downloaded and reinstalled. I've already restarted the device too. (ha host reboot)

Debug log

2024-02-11 17:17:27.479 WARNING (MainThread) [homeassistant.components.fan] SUPPORT_OSCILLATE was used from smartir, this is a deprecated constant which will be removed in HA Core 2025.1. Use FanEntityFeature.OSCILLATE instead, please report it to the author of the 'smartir' custom integration
2024-02-11 17:17:40.980 WARNING (MainThread) [homeassistant.setup] Setup of smartir is taking over 10 seconds.
2024-02-11 17:18:33.420 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: smartir
2024-02-11 17:19:33.530 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: smartir
2024-02-11 17:20:33.613 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: smartir
2024-02-11 17:21:33.686 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: smartir
2024-02-11 17:22:24.228 ERROR (MainThread) [homeassistant.setup] Setup of 'smartir' is taking longer than 300 seconds. Startup will proceed without waiting any longer
2024-02-11 17:22:24.231 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform 'smartir.climate': Unable to set up component.
2024-02-11 17:22:24.232 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform 'smartir.climate': Unable to set up component.
2024-02-11 17:22:24.233 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform 'smartir.climate': Unable to set up component.
2024-02-11 17:22:24.233 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform 'smartir.climate': Unable to set up component.
2024-02-11 17:22:24.234 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform 'smartir.media_player': Unable to set up component.
2024-02-11 17:22:24.235 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform 'smartir.media_player': Unable to set up component.
2024-02-11 17:22:24.235 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform 'smartir.fan': Unable to set up component.
root@core-ssh:~/config/custom_components/smartir# tree | grep -v json
.
├── __init__.py
├── __pycache__
│   ├── __init__.cpython-312.pyc
│   ├── climate.cpython-312.pyc
│   ├── controller.cpython-312.pyc
│   ├── fan.cpython-312.pyc
│   └── media_player.cpython-312.pyc
├── climate.py
├── codes
│   ├── climate
│   ├── fan
│   └── media_player
├── controller.py
├── fan.py
├── media_player.py
└── services.yaml

Additional context

erro erro2

remontti commented 8 months ago

When commenting the line with "smartir:" the application started working again. Like this? 🤌🤌🤌 # smartir: