『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
楼主: Yonsm

[插件集成] ZhiSaswell - 地暖控制面板插件

  [复制链接]

26

主题

176

帖子

726

积分

高级会员

Rank: 4

积分
726
金钱
550
HASS币
0
发表于 2018-4-17 22:51:20 | 显示全部楼层
我这里log报:

Component not found:     password
Component not found:     #scan_interval
Invalid config for [climate.saswell]: required key not provided @ data['password']. Got None
required key not provided @ data['username']. Got None. (See ?, line ?). Please check the docs at [url]https://home-assistant.io/components/climate.saswell/[/url]
Component not found:     username
Component not found:     devices


我是把saswell.py放到 /home/homeassistant/.homeassistant/custom_components/climate 里边了,是有什么问题吗?
回复

使用道具 举报

21

主题

294

帖子

2551

积分

论坛技术达人

积分
2551
金钱
2207
HASS币
180

教程狂人

 楼主| 发表于 2018-4-18 06:22:40 | 显示全部楼层
hdcola 发表于 2018-4-17 22:51
我这里log报:

[code]Component not found:     password

配置文件缩进有问题
回复

使用道具 举报

21

主题

294

帖子

2551

积分

论坛技术达人

积分
2551
金钱
2207
HASS币
180

教程狂人

 楼主| 发表于 2018-4-18 06:23:51 | 显示全部楼层
linuxzlj 发表于 2018-4-12 09:21
突然想起来,水地暖上温控器的话,在分水器上需要用哪些东西?

面板跟跟分水器无关,通用的(至少我的是,我是沃茨)
回复

使用道具 举报

21

主题

294

帖子

2551

积分

论坛技术达人

积分
2551
金钱
2207
HASS币
180

教程狂人

 楼主| 发表于 2018-4-18 06:24:52 | 显示全部楼层
遥远 发表于 2018-4-11 23:54
y大,我有海林的wifi面板,按您这个思路能不能搞,谢谢

换面板就能搞,不换的话你得看下你的能不能网络控制啊,能的话要分析一下切入方法
回复

使用道具 举报

21

主题

294

帖子

2551

积分

论坛技术达人

积分
2551
金钱
2207
HASS币
180

教程狂人

 楼主| 发表于 2018-4-18 06:28:16 | 显示全部楼层
cxlwill 发表于 2018-4-12 10:27
感谢楼主分享,另外感谢楼主近期的一系列 PR。

感谢你的系列分享,我是看着你的文章入坑的,到现在每次升级HA还养成了去你第一篇文章里面copy指令的习惯,记不住:)

最近PR了两个homekit传感器支持,已并入dev但还没在最新发布版本中,一直在忙着改造空调之类的,后面有空会继续搞别的。话说,我竟然又要搞好通用的modbus空调组件了...
回复

使用道具 举报

26

主题

176

帖子

726

积分

高级会员

Rank: 4

积分
726
金钱
550
HASS币
0
发表于 2018-4-18 08:03:31 | 显示全部楼层
Yonsm 发表于 2018-4-18 06:22
配置文件缩进有问题

卧槽,我在atom目测没问题啊,等下我一个一个看一遍。
回复

使用道具 举报

26

主题

176

帖子

726

积分

高级会员

Rank: 4

积分
726
金钱
550
HASS币
0
发表于 2018-4-18 08:29:29 | 显示全部楼层
linuxzlj 发表于 2018-4-12 09:21
突然想起来,水地暖上温控器的话,在分水器上需要用哪些东西?

看你的锅炉了,有些是带循环泵的,有些是不带的(现在大多数都带),不带的就会在分水器上装个循环泵。
回复

使用道具 举报

12

主题

396

帖子

2277

积分

金牌会员

Rank: 6Rank: 6

积分
2277
金钱
1881
HASS币
10
发表于 2018-4-18 08:30:06 | 显示全部楼层
谢谢楼主
回复

使用道具 举报

59

主题

731

帖子

4221

积分

论坛元老

Rank: 8Rank: 8

积分
4221
金钱
3485
HASS币
20
发表于 2018-4-18 08:38:25 | 显示全部楼层
先看看。。。。。。。。。。。
回复

使用道具 举报

26

主题

176

帖子

726

积分

高级会员

Rank: 4

积分
726
金钱
550
HASS币
0
发表于 2018-4-18 21:06:07 | 显示全部楼层
Yonsm 发表于 2018-4-18 06:22
配置文件缩进有问题

自己把所有的空格处理后确实好了。第一次启动会报一些exception,给你发上来参考

Apr 18 21:01:50 hassbian hass[525]: #033[31m2018-04-18 21:01:50 ERROR (Thread-4) [custom_components.climate.saswell] Exception: Traceback (most recent call last):
Apr 18 21:01:50 hassbian hass[525]:   File "/home/homeassistant/.homeassistant/custom_components/climate/saswell.py", line 203, in update
Apr 18 21:01:50 hassbian hass[525]:     json = self.list()
Apr 18 21:01:50 hassbian hass[525]:   File "/home/homeassistant/.homeassistant/custom_components/climate/saswell.py", line 227, in list
Apr 18 21:01:50 hassbian hass[525]:     return self.request(LIST_URL)
Apr 18 21:01:50 hassbian hass[525]:   File "/home/homeassistant/.homeassistant/custom_components/climate/saswell.py", line 277, in request
Apr 18 21:01:50 hassbian hass[525]:     return requests.get(url, headers=headers).json()
Apr 18 21:01:50 hassbian hass[525]:   File "/srv/homeassistant/lib/python3.5/site-packages/requests/models.py", line 892, in json
Apr 18 21:01:50 hassbian hass[525]:     return complexjson.loads(self.text, **kwargs)
Apr 18 21:01:50 hassbian hass[525]:   File "/usr/lib/python3.5/json/__init__.py", line 319, in loads
Apr 18 21:01:50 hassbian hass[525]:     return _default_decoder.decode(s)
Apr 18 21:01:50 hassbian hass[525]:   File "/usr/lib/python3.5/json/decoder.py", line 339, in decode
Apr 18 21:01:50 hassbian hass[525]:     obj, end = self.raw_decode(s, idx=_w(s, 0).end())
Apr 18 21:01:50 hassbian hass[525]:   File "/usr/lib/python3.5/json/decoder.py", line 357, in raw_decode
Apr 18 21:01:50 hassbian hass[525]:     raise JSONDecodeError("Expecting value", s, err.value) from None
Apr 18 21:01:50 hassbian hass[525]: json.decoder.JSONDecodeError: Expecting value: line 6 column 1 (char 10)
Apr 18 21:01:50 hassbian hass[525]: #033[0m
Apr 18 21:01:50 hassbian hass[525]: #033[32m2018-04-18 21:01:50 INFO (MainThread) [homeassistant.core] Bus:Handling <Event system_log_event[L]: message=Exception: Traceback (most recent call last):
Apr 18 21:01:50 hassbian hass[525]:   File "/home/homeassistant/.homeassistant/custom_components/climate/saswell.py", line 203, in update
Apr 18 21:01:50 hassbian hass[525]:     json = self.list()
Apr 18 21:01:50 hassbian hass[525]:   File "/home/homeassistant/.homeassistant/custom_components/climate/saswell.py", line 227, in list
Apr 18 21:01:50 hassbian hass[525]:     return self.request(LIST_URL)
Apr 18 21:01:50 hassbian hass[525]:   File "/home/homeassistant/.homeassistant/custom_components/climate/saswell.py", line 277, in request
Apr 18 21:01:50 hassbian hass[525]:     return requests.get(url, headers=headers).json()
Apr 18 21:01:50 hassbian hass[525]:   File "/srv/homeassistant/lib/python3.5/site-packages/requests/models.py", line 892, in json
Apr 18 21:01:50 hassbian hass[525]:     return complexjson.loads(self.text, **kwargs)
Apr 18 21:01:50 hassbian hass[525]:   File "/usr/lib/python3.5/json/__init__.py", line 319, in loads
Apr 18 21:01:50 hassbian hass[525]:     return _default_decoder.decode(s)
Apr 18 21:01:50 hassbian hass[525]:   File "/usr/lib/python3.5/json/decoder.py", line 339, in decode
Apr 18 21:01:50 hassbian hass[525]:     obj, end = self.raw_decode(s, idx=_w(s, 0).end())
Apr 18 21:01:50 hassbian hass[525]:   File "/usr/lib/python3.5/json/decoder.py", line 357, in raw_decode
Apr 18 21:01:50 hassbian hass[525]:     raise JSONDecodeError("Expecting value", s, err.value) from None
Apr 18 21:01:50 hassbian hass[525]: json.decoder.JSONDecodeError: Expecting value: line 6 column 1 (char 10)
Apr 18 21:01:50 hassbian hass[525]: , level=ERROR, exception=, timestamp=1524056510.6886714, source=custom_components/climate/saswell.py>#033[0m
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-4-26 17:10 , Processed in 0.099504 second(s), 31 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表