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

 找回密码
 立即注册
查看: 8719|回复: 12

[进阶教程] 易维联改装模块_触摸模块刷esphome

[复制链接]

8

主题

270

帖子

1333

积分

金牌会员

Rank: 6Rank: 6

积分
1333
金钱
1063
HASS币
0
发表于 2019-8-11 16:43:32 | 显示全部楼层 |阅读模式
本帖最后由 671792320 于 2019-10-28 09:53 编辑

前些日子一直想折腾下灯的开关,但是无奈单火一直没有下手。终于前些天的时候下手了。购买清单如下

单火单开模块*2

三开触摸面板*1

四开触摸面板*1


购买回来的易微联单火模块WiFi芯片写的是psf-b01或者psf-b05其实内部都是ESP8285芯片,好了开始刷机。
同时也适用于论坛改装模块或者触摸面板

模块已经引出了tx rx只需要按下按钮即可进入刷机模块,还是很简单的。

重点说下4开模块(坑苦我了)esp8285的rx tx没有引出来、需要自己飞线放图,4开模块有一个刮掉点的就是gpio0

4开3.jpg 4开2.jpg 4开1.jpg

然后是三开模块

3开2.jpg 3开1.jpg

。欧克剩下没有图了。产品图借用淘宝的。


                               
登录/注册后可看大图

改装模块还有这个东西其实都跟论坛的长的一样。


正题。esphome配置

改装模块搭配机械双控单开开关内容如下



esphome:
  name: light_ciwo
  platform: ESP8266
  board: esp8285

wifi:
  ssid: "xxx"
  password: "xxx"
  reboot_timeout: 0s # 无wifi连接自动重启时间,默认5min
  power_save_mode: none # 节能模式,启用的话不会一直连接wifi
  fast_connect: on # 快速连接,不执行完整的wifi扫描,当存在多个相同wifi可能会直接连接到最弱的信号

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:
  safe_mode: true # 连续10次启动失败,进入安全模式,只加载Serial Logging+WiFi+OTA组件

light:
  - platform: binary
    name: "light_ciwo"
    id: light_ciwo
    output: relay

output:
  - platform: gpio
    pin: GPIO12
    id: relay
    
binary_sensor:
  - platform: gpio
    pin: 
      number: GPIO0
      mode: INPUT_PULLUP

    name: "light_ciwo wuli kai guan"
    internal: true
    on_press:
      then:
        - light.toggle: light_ciwo
    on_release:
      then:
        - light.toggle: light_ciwo

status_led:
  pin:
    number: GPIO13
    inverted: yes
    

    
三开触摸开关(用来改的卫生间的浴霸。一共三个开关、照明、风暖、换气、双电机。这个开关说的最大支持2000W但是我的浴霸是2069w的。希望不会挂模块,模块是用的零活模块,取零线方便就是任性啊)



esphome:
  name: toilet
  platform: ESP8266
  board: esp8285
  on_boot:
    priority: -10
    then:
      - light.turn_on: blue_led_light

wifi:
  ssid: "xxx"
  password: "xxx"
  reboot_timeout: 0s # 无wifi连接自动重启时间,默认5min
  power_save_mode: none # 节能模式,启用的话不会一直连接wifi
  fast_connect: on # 快速连接,不执行完整的wifi扫描,当存在多个相同wifi可能会直接连接到最弱的信号

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:
  safe_mode: true # 连续10次启动失败,进入安全模式,只加载Serial Logging+WiFi+OTA组件


light:
  - platform: binary
    name: "yuba_light"
    id: yuba_light
    output: relay
  - platform: monochromatic
    name: "Sonoff T1 UK 3 Gang Blue LED"
    output: blue_led
    internal: true
    id: blue_led_light
fan:
  - platform: binary
    name: "yuba_fengnuan"
    id: yuba_fengnuan
    output: relay1
  - platform: binary
    name: "yuba_huanqi"
    id: yuba_huanqi
    output: relay2


output:
  - platform: gpio
    pin: GPIO12
    id: relay
  - platform: gpio
    pin: GPIO5
    id: relay1
  - platform: gpio
    pin: GPIO4
    id: relay2
  - platform: esp8266_pwm
    id: blue_led
    pin: GPIO13
    inverted: True
    
binary_sensor:
  - platform: gpio
    pin: 
      number: GPIO0
      mode: INPUT_PULLUP
    name: "yuba_light Physical Switch Sensor"
    internal: true
    on_press:
      then:
        - light.toggle: yuba_light
  - platform: gpio
    pin: 
      number: GPIO9
      mode: INPUT_PULLUP
    name: "yuba_fengnuan Physical Switch Sensor"
    internal: true
    on_press:
      then:
        - fan.toggle: yuba_fengnuan
  - platform: gpio
    pin: 
      number: GPIO10
      mode: INPUT_PULLUP
    name: "yuba_huanqi Physical Switch Sensor"
    internal: true
    on_press:
      then:
        - fan.toggle: yuba_huanqi




四开(接的客厅灯,单火由于客厅灯功率为100W所以没有并联电容也不闪烁或者发生其它的问题)



esphome:
  name: living_room
  platform: ESP8266
  board: esp8285
  on_boot:
    priority: -10
    then:
      - light.turn_on: blue_led_light

wifi:
  ssid: "xxx"
  password: "xxx"
  reboot_timeout: 0s # 无wifi连接自动重启时间,默认5min
  power_save_mode: none # 节能模式,启用的话不会一直连接wifi
  fast_connect: on # 快速连接,不执行完整的wifi扫描,当存在多个相同wifi可能会直接连接到最弱的信号

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:
  safe_mode: true # 连续10次启动失败,进入安全模式,只加载Serial Logging+WiFi+OTA组件



light:
  - platform: binary
    name: "light_keting"
    id: light_keting
    output: relay
  - platform: binary
    name: "light_keting_tongdeng"
    id: light_keting_tongdeng
    output: relay1
  - platform: binary
    name: "light_keting_dengdai"
    id: light_keting_dengdai
    output: relay2
  - platform: binary
    name: "light_keting_xuanguan"
    id: light_keting_xuanguan
    output: relay3
  - platform: monochromatic
    name: "Sonoff T1 UK 3 Gang Blue LED"
    output: blue_led
    internal: true
    id: blue_led_light

output:
  - platform: gpio
    pin: GPIO12
    id: relay
  - platform: gpio
    pin: GPIO5
    id: relay1
  - platform: gpio
    pin: GPIO4
    id: relay2
  - platform: gpio
    pin: GPIO15
    id: relay3
  - platform: esp8266_pwm
    id: blue_led
    pin: GPIO13
    inverted: True
    
binary_sensor:
  - platform: gpio
    pin: 
      number: GPIO0
      mode: INPUT_PULLUP
    name: "light_keting Physical Switch Sensor"
    internal: true
    on_press:
      then:
        - light.toggle: light_keting
  - platform: gpio
    pin: 
      number: GPIO9
      mode: INPUT_PULLUP
    name: "light_keting_dengdai Physical Switch Sensor"
    internal: true
    on_press:
      then:
        - light.toggle: light_keting_tongdeng
  - platform: gpio
    pin: 
      number: GPIO10
      mode: INPUT_PULLUP
    name: "light_keting_tongdeng Physical Switch Sensor"
    internal: true
    on_press:
      then:
        - light.toggle: light_keting_dengdai
  - platform: gpio
    pin: 
      number: GPIO14
      mode: INPUT_PULLUP
    name: "light_keting_xuanguan Physical Switch Sensor"
    internal: true
    on_press:
      then:
        - light.toggle: light_keting_xuanguan

以上直接ha发现并自动接入homekit下。完毕


回复

使用道具 举报

6

主题

737

帖子

5582

积分

论坛元老

Rank: 8Rank: 8

积分
5582
金钱
4840
HASS币
20
发表于 2019-8-11 17:06:21 | 显示全部楼层
楼主买的不是囧牌的,差评
其实囧牌从做工,用料等各方面都不错,我家里已经换了10个了,运行稳定,没有出现任何问题。
回复

使用道具 举报

26

主题

2096

帖子

8506

积分

论坛元老

Rank: 8Rank: 8

积分
8506
金钱
6405
HASS币
30

论坛元老

发表于 2019-8-11 17:34:41 | 显示全部楼层
mitu 发表于 2019-8-11 17:06
楼主买的不是囧牌的,差评
其实囧牌从做工,用料等各方面都不错,我家里已经换了1 ...

分布式的底盒配件,我也觉得囧的做工很好,不过我喜欢集中控制,要是囧搞个类似modbus板子的集成板子就好了
回复

使用道具 举报

8

主题

270

帖子

1333

积分

金牌会员

Rank: 6Rank: 6

积分
1333
金钱
1063
HASS币
0
 楼主| 发表于 2019-8-11 17:57:55 | 显示全部楼层
mitu 发表于 2019-8-11 17:06
楼主买的不是囧牌的,差评
其实囧牌从做工,用料等各方面都不错,我家里已经换了1 ...

是啊,没有买囧死的模块。这个模块其实跟论坛模块差不多,也是分布式底盒。
我分享的是改装模块和触摸模块刷esphome
回复

使用道具 举报

18

主题

688

帖子

3764

积分

元老级技术达人

积分
3764
金钱
3066
HASS币
60
发表于 2019-8-11 18:14:52 | 显示全部楼层
不喜欢触摸的,体验很差。另外,单火的貌似也很容易坏。我能补零线的全补了,不能补的用sonoff 改装模块直接装灯那头,开关位置用射频或者用aqara的无线开关,做完自动化来控制。
回复

使用道具 举报

1

主题

15

帖子

50

积分

注册会员

Rank: 2

积分
50
金钱
35
HASS币
0
发表于 2019-9-23 09:11:13 | 显示全部楼层
mitu 发表于 2019-8-11 17:06
楼主买的不是囧牌的,差评
其实囧牌从做工,用料等各方面都不错,我家里已经换了1 ...

囧牌?听不懂啊!!!!
回复

使用道具 举报

2

主题

49

帖子

201

积分

中级会员

Rank: 3Rank: 3

积分
201
金钱
152
HASS币
0
发表于 2019-10-15 11:24:23 | 显示全部楼层
这个 我买的是双开 哪里修改参数
回复

使用道具 举报

2

主题

287

帖子

996

积分

论坛积极会员

积分
996
金钱
709
HASS币
0
发表于 2019-10-30 23:03:30 | 显示全部楼层
做个记号
回复

使用道具 举报

2

主题

287

帖子

996

积分

论坛积极会员

积分
996
金钱
709
HASS币
0
发表于 2019-10-31 10:52:16 | 显示全部楼层
单开模块刷机了怎么机械开关没反应?
回复

使用道具 举报

1

主题

59

帖子

288

积分

论坛积极会员

积分
288
金钱
229
HASS币
0
发表于 2019-12-18 22:16:40 | 显示全部楼层
做个记号
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-4-25 07:56 , Processed in 1.779800 second(s), 35 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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