xnicon / hassio-r4s Goto Github PK
View Code? Open in Web Editor NEWThis project forked from mavrikkk/ha_kettler
Redmond SkyKettle, SkyCooker and SkyHeat to your Home Assistant
This project forked from mavrikkk/ha_kettler
Redmond SkyKettle, SkyCooker and SkyHeat to your Home Assistant
При добавлении чайника через Yandex Smart Home неправильно отрабатывает голосовые команды.
Команды Поставь или Вскипяти чайник работают корректно, там он до 100 градусов кипятит.
Но, например, если сказать Нагрей или Подогрей чайник, то он не включается, меняется только температура (прибавляется один градус, до какой нужно поддерживать)
Друзья, всем привет! Подскажите пожалуйста, SkyOven будет поддержан? Какие у меня есть варианты по реализации управления голосом печки SkyOven?
Буду очень признателен за развернутый ответ!
Здравствуйте!
Не удается подключить чайник 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
Судя по документации, советуют везде использовать BLEDevice, поменял в btle.py на 53 строке на
device = await BleakScanner.find_device_by_address(self._mac, adapter=self._adapter)
self._conn = BleakClient(device)
соединение стало постабильнее, чайник быстрее отзывается на команды.
Чайник 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
В чем может быть проблема?
Добрый день! Пытаюсь прокинуть свой чайник в 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
Мультиварка 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`
Заметил такой баг,
если выключить подсветку light.rk_g200s_nightlight во время работы чайника,
то выключается water_heater.rk_g200s_kettle
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.