Git Product home page Git Product logo

Comments (8)

stackia avatar stackia commented on September 20, 2024 3

我把德业除湿机封装了个独立插件,欢迎尝试
https://github.com/stackia/ha-deye-dehumidifier

from homeassistant-components.

yongman avatar yongman commented on September 20, 2024

是的,但是需要获取到mqtt的相关配置,具体可以参考下:https://xiking.win/2020/11/12/3-deye-dehumidifer-add-to-homeassistant/

from homeassistant-components.

itispip avatar itispip commented on September 20, 2024

是的,但是需要获取到mqtt的相关配置,具体可以参考下:https://xiking.win/2020/11/12/3-deye-dehumidifer-add-to-homeassistant/

谢谢,我去看了您的博客。其中模拟Post,没提到appid, extend两个关键字是怎么获得的。请问是我必须去自己反编译德业的APP才能获得吗?

from homeassistant-components.

yongman avatar yongman commented on September 20, 2024

@itispip pushtype可以填“Ali”,extend字段{"cid":"111111122223333","type":"0"},其中cid应该可以随便填写。

from homeassistant-components.

itispip avatar itispip commented on September 20, 2024

谢谢,果然可以。想接入德业很久了,全网就只找到你这唯一的一篇。

from homeassistant-components.

yongman avatar yongman commented on September 20, 2024

谢谢,果然可以。想接入德业很久了,全网就只找到你这唯一的一篇。

我也尝试看社区有没有现成的方案,奈何德业除湿机可能受众比较小,只能自己动手了。:-)

from homeassistant-components.

itispip avatar itispip commented on September 20, 2024

修改版的mqtt component无法启动

Logger: homeassistant.core
Source: custom_components/mqtt/init.py:164
First occurred: 下午2:51:49 (1 occurrences)
Last logged: 下午2:51:49

Error executing service: <ServiceCall homeassistant.restart (c:1fa8070b20c5c2fc8f0119f5641bee9d)>
Traceback (most recent call last):
File "/root/homeassistant/lib/python3.8/site-packages/homeassistant/core.py", line 1461, in catch_exceptions
await coro_or_task
File "/root/homeassistant/lib/python3.8/site-packages/homeassistant/core.py", line 1480, in _execute_service
await handler.job.target(service_call)
File "/root/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/service.py", line 663, in admin_handler
await result
File "/root/homeassistant/lib/python3.8/site-packages/homeassistant/components/homeassistant/init.py", line 117, in async_handle_core_service
errors = await conf_util.async_check_ha_config_file(hass)
File "/root/homeassistant/lib/python3.8/site-packages/homeassistant/config.py", line 874, in async_check_ha_config_file
res = await check_config.async_check_ha_config_file(hass)
File "/root/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/check_config.py", line 123, in async_check_ha_config_file
component = integration.get_component()
File "/root/homeassistant/lib/python3.8/site-packages/homeassistant/loader.py", line 416, in get_component
cache[self.domain] = importlib.import_module(self.pkg_path)
File "/usr/local/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 783, in exec_module
File "", line 219, in _call_with_frames_removed
File "/root/.homeassistant/custom_components/mqtt/init.py", line 164, in
cv.deprecated(CONF_TLS_VERSION, invalidation_version="0.115"),
TypeError: deprecated() got an unexpected keyword argument 'invalidation_version'

Logger: aiohttp.server
Source: custom_components/mqtt/init.py:164
First occurred: 下午2:50:22 (2 occurrences)
Last logged: 下午2:51:31

Error handling request
Traceback (most recent call last):
File "/root/homeassistant/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
resp = await self._request_handler(request)
File "/root/homeassistant/lib/python3.8/site-packages/aiohttp/web_app.py", line 499, in _handle
resp = await handler(request)
File "/root/homeassistant/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 118, in impl
return await handler(request)
File "/root/homeassistant/lib/python3.8/site-packages/homeassistant/components/http/security_filter.py", line 56, in security_filter_middleware
return await handler(request)
File "/root/homeassistant/lib/python3.8/site-packages/homeassistant/components/http/request_context.py", line 18, in request_context_middleware
return await handler(request)
File "/root/homeassistant/lib/python3.8/site-packages/homeassistant/components/http/ban.py", line 72, in ban_middleware
return await handler(request)
File "/root/homeassistant/lib/python3.8/site-packages/homeassistant/components/http/auth.py", line 127, in auth_middleware
return await handler(request)
File "/root/homeassistant/lib/python3.8/site-packages/homeassistant/components/http/view.py", line 129, in handle
result = await result
File "/root/homeassistant/lib/python3.8/site-packages/homeassistant/components/config/core.py", line 29, in post
errors = await async_check_ha_config_file(request.app["hass"])
File "/root/homeassistant/lib/python3.8/site-packages/homeassistant/config.py", line 874, in async_check_ha_config_file
res = await check_config.async_check_ha_config_file(hass)
File "/root/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/check_config.py", line 123, in async_check_ha_config_file
component = integration.get_component()
File "/root/homeassistant/lib/python3.8/site-packages/homeassistant/loader.py", line 416, in get_component
cache[self.domain] = importlib.import_module(self.pkg_path)
File "/usr/local/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 783, in exec_module
File "", line 219, in _call_with_frames_removed
File "/root/.homeassistant/custom_components/mqtt/init.py", line 164, in
cv.deprecated(CONF_TLS_VERSION, invalidation_version="0.115"),
TypeError: deprecated() got an unexpected keyword argument 'invalidation_version'

from homeassistant-components.

yongman avatar yongman commented on September 20, 2024

@itispip 估计和homeassistant的版本有关系,你可以直接拷贝你正在运行版本的源码中的mqtt组件,然后根据 https://xiking.win/2020/11/12/3-deye-dehumidifer-add-to-homeassistant/ 修改一下源码

from homeassistant-components.

Related Issues (7)

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.