找回密码
 立即注册

微信扫码登录

搜索
查看: 375|回复: 6

[经验分享] phicomm DC1适配esphome 2025.7.3版本

[复制链接]

7

主题

32

回帖

522

积分

论坛分享达人

积分
522
金钱
483
HASS币
10
发表于 7 天前 | 显示全部楼层 |阅读模式
最近家里换了WiFi,需要重新连下DC1,才发现旧版本的https://github.com/Samuel-0-0/phicomm_dc1-esphome项目已经好久没更新,编译不过了。看到论坛中有人改了一版https://bbs.hassbian.com/thread-23996-1-1.html,我试了下能工作,但是日志中有很多I2C报错。于是在老的项目中,适配esphome新的API改了一版。需要的话请自取。地址:https://github.com/msmarks/phicomm_dc1-esphome/tree/esphome_2025.7.5
回复

使用道具 举报

Awe7 手机认证

16

主题

259

回帖

2196

积分

金牌会员

积分
2196
金钱
1921
HASS币
0
发表于 7 天前 | 显示全部楼层
本帖最后由 Awe7 于 2025-9-8 22:27 编辑

ok,马上刷上试试原来的dc1会重启死机
回复

使用道具 举报

Awe7 手机认证

16

主题

259

回帖

2196

积分

金牌会员

积分
2196
金钱
1921
HASS币
0
发表于 7 天前 | 显示全部楼层
Awe7 发表于 2025-9-8 22:14
ok,马上刷上试试原来的dc1会重启死机

出现以下报错  esphome 2025.8.3 Documentation

[update_interval] is an invalid option for [sensor.cse7766]. Please check the indentation.


'tuple' object is not callable
ESPHome's Over-The-Air (OTA) platform allows you to remotely install modified/updated firmware binaries onto your ESPHome devices over their network (Wi-Fi or Ethernet) interface.

See also: ESPHome OTA Updates

No quick fixes available
回复

使用道具 举报

7

主题

32

回帖

522

积分

论坛分享达人

积分
522
金钱
483
HASS币
10
 楼主| 发表于 6 天前 | 显示全部楼层
本帖最后由 msmmbl 于 2025-9-9 14:00 编辑
Awe7 发表于 2025-9-8 22:36
出现以下报错  esphome 2025.8.3 Documentation

[update_interval] is an invalid option for [sensor.c ...

感谢回复, yaml中还有一段忘记改了,cse7766的配置应该是,github库中已更新

sensor:
  - platform: cse7766
    voltage:
      name: "${device_name} voltage"
      entity_category: diagnostic
      filters:
        - throttle_average: $cse7766_update_interval
    current:
      name: "${device_name} current"
      entity_category: diagnostic
      filters:
        - throttle_average: $cse7766_update_interval
    power:
      name: "${device_name} power"
      entity_category: diagnostic
      filters:
        - throttle_average: $cse7766_update_interval



ota部分也药改下

ota:
  - platform: esphome
    password: !secret ota_password


回复

使用道具 举报

2

主题

154

回帖

2151

积分

金牌会员

积分
2151
金钱
1995
HASS币
0
发表于 5 天前 | 显示全部楼层
刷了以后分控按钮没反应,hass里可以控制
回复

使用道具 举报

7

主题

32

回帖

522

积分

论坛分享达人

积分
522
金钱
483
HASS币
10
 楼主| 发表于 4 天前 | 显示全部楼层
adamjensen 发表于 2025-9-10 11:17
刷了以后分控按钮没反应,hass里可以控制

感谢试用,因为本人的DC1都是放在摸不到的地方,所以没注意到分控开关的问题。经过排查,是代码中ISR没有处理,现已修复,请试用。
回复

使用道具 举报

2

主题

154

回帖

2151

积分

金牌会员

积分
2151
金钱
1995
HASS币
0
发表于 4 天前 | 显示全部楼层
msmmbl 发表于 2025-9-11 10:25
感谢试用,因为本人的DC1都是放在摸不到的地方,所以没注意到分控开关的问题。经过排查,是代码中ISR没有 ...

更新后可以了,但有的时候按下还是会报错,继电器没反应,得多按几下
[W][component:289]: cat9554 set Warning flag: unspecified
[10:47:30][D][binary_sensor:026]: 'shadow3': New state is OFF
[10:47:30][D][binary_sensor:026]: 'key0': New state is OFF
[10:47:41][D][cat9554:050]: IRQ triggered, updating GPIO inputs
[10:47:41][E][cat9554:116]: read_inputs_(): I2C I/O error: 2
[10:47:41][D][cat9554:050]: IRQ triggered, updating GPIO inputs
[10:47:41][W][component:317]: cat9554 cleared Warning flag
[10:47:42][D][cat9554:050]: IRQ triggered, updating GPIO inputs
[10:47:42][D][cat9554:050]: IRQ triggered, updating GPIO inputs
[10:47:42][E][cat9554:116]: read_inputs_(): I2C I/O error: 2
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian ( 晋ICP备17001384号-1 )

GMT+8, 2025-9-15 13:12 , Processed in 0.054363 second(s), 7 queries , MemCached On.

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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