找回密码
 立即注册

微信扫码登录

搜索
查看: 221|回复: 4

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

[复制链接]

7

主题

31

回帖

516

积分

论坛分享达人

积分
516
金钱
478
HASS币
10
发表于 3 天前 | 显示全部楼层 |阅读模式
最近家里换了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

回帖

2192

积分

金牌会员

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

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

使用道具 举报

Awe7 手机认证

16

主题

259

回帖

2192

积分

金牌会员

积分
2192
金钱
1917
HASS币
0
发表于 3 天前 | 显示全部楼层
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

主题

31

回帖

516

积分

论坛分享达人

积分
516
金钱
478
HASS币
10
 楼主| 发表于 前天 13:55 | 显示全部楼层
本帖最后由 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

主题

148

回帖

2129

积分

金牌会员

积分
2129
金钱
1979
HASS币
0
发表于 昨天 11:17 | 显示全部楼层
刷了以后分控按钮没反应,hass里可以控制
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-9-11 03:56 , Processed in 0.252957 second(s), 8 queries , MemCached On.

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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