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

 找回密码
 立即注册
123
返回列表 发新帖
楼主: XCray

[修仙教程] 感谢n大!ESP Home基于蓝牙网关-TTL的米家蓝牙设备接入,好用

[复制链接]

4

主题

105

帖子

819

积分

高级会员

Rank: 4

积分
819
金钱
714
HASS币
0
发表于 2020-6-27 11:56:33 来自手机 | 显示全部楼层
XCray 发表于 2020-6-27 11:18
不好意思,是我的问题。在esp32上那句话也出错。

我上传时为了去掉我家的wifi密码,结果就搞错了,把带病 ...

可以了,谢谢!
回复

使用道具 举报

4

主题

105

帖子

819

积分

高级会员

Rank: 4

积分
819
金钱
714
HASS币
0
发表于 2020-6-29 10:58:37 | 显示全部楼层
我的网关接进来了,但是所有传感器状态都是不可用!
回复

使用道具 举报

105

主题

2954

帖子

1万

积分

超级版主

智能家居&单板滑雪痴迷爱好者

Rank: 8Rank: 8

积分
12103
金钱
9084
HASS币
460

教程狂人突出贡献

 楼主| 发表于 2020-6-29 11:17:01 | 显示全部楼层
caoxi1988 发表于 2020-6-29 10:58
我的网关接进来了,但是所有传感器状态都是不可用!

怀疑是线没接好或者没接对,SHOW LOGS能看到什么输出?程序里很多信息都是会输出到日志的
回复

使用道具 举报

4

主题

105

帖子

819

积分

高级会员

Rank: 4

积分
819
金钱
714
HASS币
0
发表于 2020-6-29 15:59:37 | 显示全部楼层
XCray 发表于 2020-6-29 11:17
怀疑是线没接好或者没接对,SHOW LOGS能看到什么输出?程序里很多信息都是会输出到日志的 ...

还麻烦大神帮忙看看,我的锁跟您是一样一样的。


[07:57:33][C][wifi:291]:   Signal strength: -25 dB ▂▄▆█
[07:57:33][C][wifi:295]:   Channel: 13
[07:57:33][C][wifi:296]:   Subnet: 255.255.255.0
[07:57:33][C][wifi:297]:   Gateway: 192.168.1.1
[07:57:33][C][wifi:298]:   DNS1: 192.168.1.1
[07:57:33][C][wifi:299]:   DNS2: (IP unset)
[07:57:33][C][uart:140]: UART Bus:
[07:57:33][C][uart:145]:   RX Pin: GPIO3
[07:57:33][C][uart:147]:   Baud Rate: 115200 baud
[07:57:33][C][uart:148]:   Stop bits: 1
[07:57:33][C][uart:150]:   Using hardware serial interface.
[07:57:33][C][logger:175]: Logger:
[07:57:33][C][logger:176]:   Level: DEBUG
[07:57:33](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic)
[07:57:33][C][captive_portal:169]: Captive Portal:
[07:57:33](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic)
[07:57:33](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic)
[07:57:33](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic)
[07:57:33](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic)
[07:57:33](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic)
[07:57:33][C][wifi_signal.sensor:009]: WiFi Signal 'WiFi node32s'
[07:57:33][C][wifi_signal.sensor:009]:   Unit of Measurement: 'dB'
[07:57:33][C][wifi_signal.sensor:009]:   Accuracy Decimals: 0
[07:57:33][C][wifi_signal.sensor:009]:   Icon: 'mdi:wifi'
[07:57:37][E][uart:229]: Reading from UART timed out at byte 0!
[07:57:37][E][uart:229]: Reading from UART timed out at byte 0!
[07:57:37][E][uart:229]: Reading from UART timed out at byte 0!
[07:57:37][E][uart:229]: Reading from UART timed out at byte 0!
[07:57:38][E][uart:229]: Reading from UART timed out at byte 0!
[07:57:38][E][uart:229]: Reading from UART timed out at byte 0!
[07:57:38][E][uart:229]: Reading from UART timed out at byte 0!
[07:57:38][E][uart:229]: Reading from UART timed out at byte 0!
[07:57:38][E][uart:229]: Reading from UART timed out at byte 0!
[07:57:38][E][uart:229]: Reading from UART timed out at byte 0!
WARNING Disconnected from API: Timeout while waiting for message response!
WARNING Error resolving IP address of esp8266.local. Is it connected to WiFi?
WARNING (If this error persists, please set a static IP address: https://esphome.io/components/wifi.html#manual-ips)
WARNING Couldn't connect to API (Error resolving IP address: Error resolving address with mDNS: Did not respond. Maybe the device is offline., [Errno -2] Name or service not known). Trying to reconnect in 1 seconds
WARNING Error resolving IP address of esp8266.local. Is it connected to WiFi?
WARNING (If this error persists, please set a static IP address: https://esphome.io/components/wifi.html#manual-ips)
WARNING Couldn't connect to API (Error resolving IP address: Error resolving address with mDNS: Did not respond. Maybe the device is offline., [Errno -2] Name or service not known). Trying to reconnect in 1 seconds
WARNING Error resolving IP address of esp8266.local. Is it connected to WiFi?
WARNING (If this error persists, please set a static IP address: https://esphome.io/components/wifi.html#manual-ips)
WARNING Couldn't connect to API (Error resolving IP address: Error resolving address with mDNS: Did not respond. Maybe the device is offline., [Errno -2] Name or service not known). Trying to reconnect in 2 seconds
WARNING Error resolving IP address of esp8266.local. Is it connected to WiFi?
WARNING (If this error persists, please set a static IP address: https://esphome.io/components/wifi.html#manual-ips)
WARNING Couldn't connect to API (Error resolving IP address: Error resolving address with mDNS: Did not respond. Maybe the device is offline., [Errno -2] Name or service not known). Trying to reconnect in 3 seconds
WARNING Error resolving IP address of esp8266.local. Is it connected to WiFi?
WARNING (If this error persists, please set a static IP address: https://esphome.io/components/wifi.html#manual-ips)
WARNING Couldn't connect to API (Error resolving IP address: Error resolving address with mDNS: Did not respond. Maybe the device is offline., [Errno -2] Name or service not known). Trying to reconnect in 5 seconds
WARNING Error resolving IP address of esp8266.local. Is it connected to WiFi?
WARNING (If this error persists, please set a static IP address: https://esphome.io/components/wifi.html#manual-ips)
WARNING Couldn't connect to API (Error resolving IP address: Error resolving address with mDNS: Did not respond. Maybe the device is offline., [Errno -2] Name or service not known). Trying to reconnect in 7 seconds

回复

使用道具 举报

105

主题

2954

帖子

1万

积分

超级版主

智能家居&单板滑雪痴迷爱好者

Rank: 8Rank: 8

积分
12103
金钱
9084
HASS币
460

教程狂人突出贡献

 楼主| 发表于 2020-6-29 16:20:03 | 显示全部楼层
caoxi1988 发表于 2020-6-29 15:59
还麻烦大神帮忙看看,我的锁跟您是一样一样的。

你的ESP没有连上WiFI???
~~~~~~~~~~~~~~~~~~~~
这套代码我自己也只是尝试(3个思路中的第二个),只是摸通了esphome这个思路,但从稳定性和实用性方面,更推荐用arduino编译的版本(3个思路中的第一个):
https://bbs.hassbian.com/thread-10218-1-1.html
~~~~~~~~~~~~~~~~~~~~~~~
第三个思路我还没付诸实施,就是esp这边只做最基本的消息筛选,把pdid/did/eid/edata转发出来,所有的逻辑都在node-red上完成。
这样esp的负担最小、适应性最好(其实都是node-red负责适配)。
回复

使用道具 举报

4

主题

105

帖子

819

积分

高级会员

Rank: 4

积分
819
金钱
714
HASS币
0
发表于 2020-6-29 18:21:30 来自手机 | 显示全部楼层
XCray 发表于 2020-6-29 16:20
你的ESP没有连上WiFI???
~~~~~~~~~~~~~~~~~~~~
这套代码我自己也只是尝试(3个思路中的第二个),只是 ...

嗯呢,明白了,期待你的nodred思路早日实现!
回复

使用道具 举报

7

主题

367

帖子

2119

积分

金牌会员

Rank: 6Rank: 6

积分
2119
金钱
1752
HASS币
0
发表于 2020-8-16 11:44:35 | 显示全部楼层
本帖最后由 bjy2005 于 2020-8-16 12:29 编辑

呃  变异通过啦 呵呵  先试试 多谢楼主


QQ浏览器截图20200816114327.png
回复

使用道具 举报

105

主题

2954

帖子

1万

积分

超级版主

智能家居&单板滑雪痴迷爱好者

Rank: 8Rank: 8

积分
12103
金钱
9084
HASS币
460

教程狂人突出贡献

 楼主| 发表于 2020-8-16 21:48:44 | 显示全部楼层
bjy2005 发表于 2020-8-16 11:44
呃  变异通过啦 呵呵  先试试 多谢楼主

恭喜!

其实这个思路我现在也没有用,用的是我签名贴里那个,可以部署在多个蓝牙网关上、支持所有的蓝牙设备(ESP不负责适配,所有的适配工作都在HA/NR上完成)。

倒是还有个想法,把签名贴里的思路移植到ESPHome上,但现在懒症发作。。。
回复

使用道具 举报

105

主题

2954

帖子

1万

积分

超级版主

智能家居&单板滑雪痴迷爱好者

Rank: 8Rank: 8

积分
12103
金钱
9084
HASS币
460

教程狂人突出贡献

 楼主| 发表于 2021-5-27 11:18:48 | 显示全部楼层
感谢n大,建议采用类似 mqttl 或LOCK2MQTT固件的同学都切换到这个方案来,这应该是ttl思路的终极了。
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-27 04:27 , Processed in 0.076041 second(s), 33 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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