Giter VIP home page Giter VIP logo

hassio-r4s's People

Contributors

7olstoy avatar mavrikkk avatar notabene01 avatar pxe-la avatar shulyaka avatar siriuske avatar xnicon avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

hassio-r4s's Issues

Некорректно добавляется SkyCooker

Судя по коду исходной репы, в мультиварке должно быть переключение режимов, включение таймера

По факту, при подключении добавляется какое-то ограниченное по функционалу устройство

image image

Некорректная работа подогрева через Yandex Smart Home

При добавлении чайника через Yandex Smart Home неправильно отрабатывает голосовые команды.
Команды Поставь или Вскипяти чайник работают корректно, там он до 100 градусов кипятит.
Но, например, если сказать Нагрей или Подогрей чайник, то он не включается, меняется только температура (прибавляется один градус, до какой нужно поддерживать)

SkyOven Support

Друзья, всем привет! Подскажите пожалуйста, SkyOven будет поддержан? Какие у меня есть варианты по реализации управления голосом печки SkyOven?
Буду очень признателен за развернутый ответ!

Не подключается чайник G200S

Здравствуйте!

Не удается подключить чайник G200S (прошивка 4.21).

Интеграция добавляется без девайса, в логах ошибка

Logger: homeassistant.config_entries
Source: components/system_log/__init__.py:96
First occurred: 9:22:08 PM (2 occurrences)
Last logged: 9:25:45 PM

Error setting up entry F1:FB:63:C2:BE:30 for ready4sky
Traceback (most recent call last):
  File "/config/custom_components/ready4sky/__init__.py", line 62, in async_setup_entry
    await kettler.firstConnect()
  File "/config/custom_components/ready4sky/__init__.py", line 530, in firstConnect
    async with self._conn as conn:
  File "/config/custom_components/ready4sky/btle.py", line 81, in __aenter__
    raise ex
  File "/config/custom_components/ready4sky/btle.py", line 69, in __aenter__
    await self._conn.connect()
  File "/usr/src/homeassistant/homeassistant/components/bluetooth/models.py", line 291, in connect
    return await super().connect(**kwargs)
  File "/usr/local/lib/python3.10/site-packages/bleak/__init__.py", line 392, in connect
    return await self._backend.connect(**kwargs)
  File "/usr/local/lib/python3.10/site-packages/bleak/backends/bluezdbus/client.py", line 179, in connect
    assert_reply(reply)
  File "/usr/local/lib/python3.10/site-packages/bleak/backends/bluezdbus/utils.py", line 22, in assert_reply
    raise BleakDBusError(reply.error_name, reply.body)
bleak.exc.BleakDBusError: [org.bluez.Error.Failed] le-connection-abort-by-local

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 365, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/config/custom_components/ready4sky/__init__.py", line 64, in async_setup_entry
    _LOGGER.error("Connect to %s through device %s failed", mac)
  File "/usr/local/lib/python3.10/logging/__init__.py", line 1506, in error
    self._log(ERROR, msg, args, **kwargs)
  File "/usr/local/lib/python3.10/logging/__init__.py", line 1624, in _log
    self.handle(record)
  File "/usr/local/lib/python3.10/logging/__init__.py", line 1634, in handle
    self.callHandlers(record)
  File "/usr/local/lib/python3.10/logging/__init__.py", line 1696, in callHandlers
    hdlr.handle(record)
  File "/usr/local/lib/python3.10/logging/__init__.py", line 968, in handle
    self.emit(record)
  File "/usr/src/homeassistant/homeassistant/components/system_log/__init__.py", line 179, in emit
    entry = LogEntry(
  File "/usr/src/homeassistant/homeassistant/components/system_log/__init__.py", line 96, in __init__
    self.message = deque([record.getMessage()], maxlen=5)
  File "/usr/local/lib/python3.10/logging/__init__.py", line 368, in getMessage
    msg = msg % self.args
TypeError: not enough arguments for format string

Из нескольких десятков попыток несколько раз устройство все же добавлялось, и даже работало, но переставало сразу же после перезагрузки НА или через некоторое время.

HomeAssistant 2022.10.1 на raspberry pi 4

(WARNING) Detected integration that attempted to call BleakClient with an address instead of a BLEDevice.

Судя по документации, советуют везде использовать BLEDevice, поменял в btle.py на 53 строке на

                device = await BleakScanner.find_device_by_address(self._mac, adapter=self._adapter)
                self._conn = BleakClient(device)

соединение стало постабильнее, чайник быстрее отзывается на команды.

'float' object has no attribute 'to_bytes'

Чайник RK-G201S при попытке задать температуру выводил это сообщение, в питоне не силен, пофиксил так:

    def decToHex(self, num) -> str:
        if isinstance(num, float):
            num = int(num)
        return num.to_bytes((num.bit_length() + 7) // 8, 'little').hex() or '00'

Ошибка настройки интеграции

Homeassistant - 2022.7.7
Получаю ошибку при попытке добавить интеграцию - Не удалось загрузить мастер настройки: undefined
В чем может быть проблема?

Не удаётся добавить чайник RK-G212S

Добрый день! Пытаюсь прокинуть свой чайник в HA, но при его добавлении в логах вылезает ошибка, что тип устройства не поддерживается. При этом, после этапа, якобы, сопряжения, который длится секунды 3, HA пишет, что интеграция успешно добавлена, но чайник даже не пищит. Раньше я длительное время использовал интеграцию R4S от "mavrikkk", но после обновления HA до версии 2022.7 (сейчас использую 2022.7.5) она перестала работать. А этот форк не удаётся настроить :(

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 353, in async_setup
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/ready4sky/init.py", line 62, in async_setup_entry
await kettler.setNameAndType()
File "/config/custom_components/ready4sky/init.py", line 156, in setNameAndType
await self._conn.setNameAndType()
File "/config/custom_components/ready4sky/btle.py", line 39, in setNameAndType
raise BleakError('type device not supported')
bleak.exc.BleakError: type device not supported

image

Ошибка при подключении мультиварки RMC-M225S

Мультиварка RMC-M225S имеет блютуз имя RFS-KMC002 добавил его в константы.
При добавление интеграции, перевожу в сопряжение, но сыпет ошибку.
Подскажите, пожалуйста, в какую сторону копать?

`2024-01-23 23:02:03.183 DEBUG (MainThread) [custom_components.ready4sky.btle] IS CONNECTED: False
2024-01-23 23:02:03.183 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Connecting to device @ D8:20:57:38:0C:63
2024-01-23 23:02:03.185 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Connecting to BlueZ path /org/bluez/hci0/dev_D8_20_57_38_0C_63
2024-01-23 23:02:13.185 DEBUG (MainThread) [bleak.backends.bluezdbus.client] _cleanup_all(/org/bluez/hci0/dev_D8_20_57_38_0C_63)
2024-01-23 23:02:13.186 ERROR (MainThread) [custom_components.ready4sky.btle] Unable to connect
2024-01-23 23:02:13.186 ERROR (MainThread) [custom_components.ready4sky.btle]
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/bleak/backends/bluezdbus/client.py", line 209, in connect
reply = await self._bus.call(
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/dbus_fast/aio/message_bus.py", line 375, in call
await future
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/config/custom_components/ready4sky/btle.py", line 70, in aenter
await self._conn.connect()
File "/usr/local/lib/python3.11/site-packages/habluetooth/wrappers.py", line 295, in connect
connected = await super().connect(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/bleak/init.py", line 605, in connect
return await self._backend.connect(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/bleak/backends/bluezdbus/client.py", line 146, in connect
async with async_timeout(timeout):
File "/usr/local/lib/python3.11/asyncio/timeouts.py", line 111, in aexit
raise TimeoutError from exc_val
TimeoutError
2024-01-23 23:02:15.191 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Disconnecting ({/org/bluez/hci0/dev_D8_20_57_38_0C_63})
2024-01-23 23:02:15.192 DEBUG (MainThread) [bleak.backends.bluezdbus.client] already disconnected ({/org/bluez/hci0/dev_D8_20_57_38_0C_63})
2024-01-23 23:02:15.192 ERROR (MainThread) [custom_components.ready4sky] Connect to D8:20:57:38:0C:63 failed
2024-01-23 23:02:15.192 ERROR (MainThread) [custom_components.ready4sky]
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/bleak/backends/bluezdbus/client.py", line 209, in connect
reply = await self._bus.call(
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/dbus_fast/aio/message_bus.py", line 375, in call
await future
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/config/custom_components/ready4sky/init.py", line 74, in async_setup_entry
await kettler.firstConnect()
File "/config/custom_components/ready4sky/init.py", line 541, in firstConnect
async with self._conn as conn:
File "/config/custom_components/ready4sky/btle.py", line 82, in aenter
raise ex
File "/config/custom_components/ready4sky/btle.py", line 70, in aenter
await self._conn.connect()
File "/usr/local/lib/python3.11/site-packages/habluetooth/wrappers.py", line 295, in connect
connected = await super().connect(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/bleak/init.py", line 605, in connect
return await self._backend.connect(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/bleak/backends/bluezdbus/client.py", line 146, in connect
async with async_timeout(timeout):
File "/usr/local/lib/python3.11/asyncio/timeouts.py", line 111, in aexit
raise TimeoutError from exc_val
TimeoutError`

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.