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

 找回密码
 立即注册
查看: 3768|回复: 5

新版本Tasmota是可以接三路PZEM-004T-100A(V3.0)的。但是具体怎...

[复制链接]

35

主题

153

帖子

1078

积分

金牌会员

Rank: 6Rank: 6

积分
1078
金钱
925
HASS币
10
发表于 2019-12-17 20:13:42 | 显示全部楼层 |阅读模式
本帖最后由 boyyao 于 2019-12-18 03:48 编辑

三个模块其中一个已经可以正常显示了。.另外两个是需要串联还是并联到不同的gpio口?尝试这只多个RX/TX口连接不同的模块只有一个起作用。
串联不是说容易烧设备么?更新:
已经解决这个问题了。看github上直接设置模块地址后并联就可以。、

现在不知道如何读取mqtt传过来的数组数据。configuration可以定义数组变量么?
回复

使用道具 举报

2

主题

291

帖子

1502

积分

论坛积极会员

积分
1502
金钱
1211
HASS币
0
发表于 2019-12-18 09:23:46 | 显示全部楼层
把相关GitHub的说明放上来
回复

使用道具 举报

26

主题

2096

帖子

8510

积分

论坛元老

Rank: 8Rank: 8

积分
8510
金钱
6409
HASS币
30

论坛元老

发表于 2019-12-18 09:56:46 | 显示全部楼层
本帖最后由 情非殇 于 2019-12-18 09:58 编辑

论坛里不是有人发过esphome接PZEM的教程了么,拿来用不就好了
多路 PZEM-004T-100A(V3.0) 用於 ESPHome

回复

使用道具 举报

12

主题

328

帖子

1792

积分

论坛技术达人

积分
1792
金钱
1459
HASS币
40
发表于 2019-12-18 21:01:39 | 显示全部楼层
我已经成功搞定了,3个并联,3个二极管接到TX上就可以,我没用上拉电阻一样稳定
回复

使用道具 举报

12

主题

328

帖子

1792

积分

论坛技术达人

积分
1792
金钱
1459
HASS币
40
发表于 2019-12-18 21:02:51 | 显示全部楼层
希望如下配置能帮到你
  - platform: mqtt
    name: "zong"
    state_topic: "tele/Zhoupower/SENSOR"
    value_template: "{{value_json['ENERGY'].Total }}"
    unit_of_measurement: "KWH"
  - platform: mqtt
    name: "zuotian"
    state_topic: "tele/Zhoupower/SENSOR"
    value_template: "{{value_json['ENERGY'].Yesterday }}"
    unit_of_measurement: "KWH"
  - platform: mqtt
    name: "jintian"
    state_topic: "tele/Zhoupower/SENSOR"
    value_template: "{{value_json['ENERGY'].Today }}"
    unit_of_measurement: "KWH"
  - platform: mqtt
    name: "gonglv1"
    state_topic: "tele/Zhoupower/SENSOR"
    value_template: "{{value_json['ENERGY'].Power[0] }}"
    unit_of_measurement: "W"
  - platform: mqtt
    name: "yinshu1"
    state_topic: "tele/Zhoupower/SENSOR"
    value_template: "{{value_json['ENERGY'].Factor[0] }}"
    unit_of_measurement: " "
  - platform: mqtt
    name: "dianya1"
    state_topic: "tele/Zhoupower/SENSOR"
    value_template: "{{value_json['ENERGY'].Voltage[0] }}"
    unit_of_measurement: "V"
  - platform: mqtt
    name: "dianliu1"
    state_topic: "tele/Zhoupower/SENSOR"
    value_template: "{{value_json['ENERGY'].Current[0] }}"
    unit_of_measurement: "A"

  - platform: mqtt
    name: "gonglv2"
    state_topic: "tele/Zhoupower/SENSOR"
    value_template: "{{value_json['ENERGY'].Power[1] }}"
    unit_of_measurement: "W"
  - platform: mqtt
    name: "yinshu2"
    state_topic: "tele/Zhoupower/SENSOR"
    value_template: "{{value_json['ENERGY'].Factor[1] }}"
    unit_of_measurement: " "
  - platform: mqtt
    name: "dianya2"
    state_topic: "tele/Zhoupower/SENSOR"
    value_template: "{{value_json['ENERGY'].Voltage[1] }}"
    unit_of_measurement: "V"
  - platform: mqtt
    name: "dianliu2"
    state_topic: "tele/Zhoupower/SENSOR"
    value_template: "{{value_json['ENERGY'].Current[1] }}"
    unit_of_measurement: "A"

  - platform: mqtt
    name: "gonglv3"
    state_topic: "tele/Zhoupower/SENSOR"
    value_template: "{{value_json['ENERGY'].Power[2] }}"
    unit_of_measurement: "W"
  - platform: mqtt
    name: "yinshu3"
    state_topic: "tele/Zhoupower/SENSOR"
    value_template: "{{value_json['ENERGY'].Factor[2] }}"
    unit_of_measurement: " "
  - platform: mqtt
    name: "dianya3"
    state_topic: "tele/Zhoupower/SENSOR"
    value_template: "{{value_json['ENERGY'].Voltage[2] }}"
    unit_of_measurement: "V"
  - platform: mqtt
    name: "dianliu3"
    state_topic: "tele/Zhoupower/SENSOR"
    value_template: "{{value_json['ENERGY'].Current[2] }}"
    unit_of_measurement: "A"
回复

使用道具 举报

0

主题

43

帖子

511

积分

论坛积极会员

积分
511
金钱
468
HASS币
0
发表于 2020-7-8 17:20:33 | 显示全部楼层
linlingzi 发表于 2019-12-18 21:02
希望如下配置能帮到你
  - platform: mqtt
    name: "zong"

请问要如何设置不同模块的地址?
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-4-26 23:18 , Processed in 0.052130 second(s), 28 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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