我是一个小白,高手不要骂,我刚好最近上了X12的车,当然拿到货后第一件事就是刷机,刷机吗,当然是H大的(我心中的高人,你们懂的),注意:我刷机的时候,用手试了几次没有成功,最后还是用线焊上,一次就成功了,有技术的真的可以用焊接的方式,我手残没有办法只好这样,是用刷完后得通电试吧,如果用插上强电有一定的触电风险,我发现可以把TTL工具上的TXD和RXD拿掉,只能GND和VCC再插上U口,这样就可以用手机调试了,这样就不怕强电的风险了,最后说一下,我是一个小白,也是刚开始学的,说的不好,不要骂。在此谢谢H大,辛苦了。
sensor:
#电压
- platform: mqtt
name: “空调电压2”
state_topic: “irmqtt_x12_16/energy”
qos: 0
unit_of_measurement: “V”
icon: mdi:flash-outline
value_template: “{{ value_json.Voltage }}”
#电流 - platform: mqtt
name: “空调电流2”
state_topic: “irmqtt_x12_16/energy”
qos: 0
unit_of_measurement: “A”
icon: mdi:flash-auto
value_template: “{{ value_json.Current }}”
#功率 - platform: mqtt
name: “空调功率2”
state_topic: “irmqtt_x12_16/energy”
qos: 0
unit_of_measurement: “W”
value_template: “{{ value_json.ActivePower }}”
#功率因数 - platform: mqtt
name: “空调功率因数2”
state_topic: “irmqtt_x12_16/energy”
qos: 0
unit_of_measurement: “cosΦ”
value_template: “{{ value_json.PowerFactor }}”
#今日电量 - platform: mqtt
name: “今日电量2”
state_topic: “irmqtt_x12_16/energy”
qos: 0
unit_of_measurement: “度”
icon: mdi:minus-network
value_template: “{{ value_json.PowToday }}”
#昨日电量 - platform: mqtt
name: “昨日电量2”
state_topic: “irmqtt_x12_16/energy”
qos: 0
unit_of_measurement: “度”
icon: mdi:minus-network
value_template: “{{ value_json.PowYestoday }}”
#本月电量 - platform: mqtt
name: “本月电量2”
state_topic: “irmqtt_x12_16/energy”
qos: 0
unit_of_measurement: “度”
icon: mdi:server-network
value_template: “{{ value_json.PowMonth }}”
总用电量
- platform: mqtt
name: ‘总用电量2’
state_topic: ‘irmqtt_x12_16/energy’
unit_of_measurement: ‘度’
icon: mdi:server-network
value_template: ‘{{ value_json.PowTotal }}’
一定要记得把irmqtt_x12_16改成你自己的主题哦!
最后上一张我自己的效果图
QQ图片20200814184331|347x499