Bom dia de manhã / tarde / noite (dependendo da hora que vão estar a ler isto ^^
PZEM para quem está com a rede wifi sobrecarregada…
Código a adicionar no configurations.yaml
PZEM
mqtt:
sensor:
- name: “PZEM Volt R”
state_topic: “zigbee2mqtt/PZEM_01”
unit_of_measurement: “V”
value_template: “{{ value_json.voltage_l1 | round(1) }}”
- name: “PZEM Amp R”
state_topic: “zigbee2mqtt/PZEM_01”
unit_of_measurement: “A”
value_template: “{{ value_json.current_l1 | round(1) }}”
- name: “PZEM Watt R”
state_topic: “zigbee2mqtt/PZEM_01”
unit_of_measurement: “W”
value_template: “{{ value_json.power_l1 | round(1) }}”
- name: “PZEM Power Factor R”
state_topic: “zigbee2mqtt/PZEM_01”
unit_of_measurement: “”
value_template: “{{ value_json.power_factor_l1 | round(1) }}”
- name: “PZEM Frequency R”
state_topic: “zigbee2mqtt/PZEM_01”
unit_of_measurement: “Hz”
value_template: “{{ value_json.frequency_l1 | round(1) }}”
- name: “PZEM Energy R”
state_topic: “zigbee2mqtt/PZEM_01”
unit_of_measurement: “kWh”
value_template: “{{ value_json.energy_l1 / 1000 | round(1) }}”
Resultado final:
Links:
Firmware PTVO ( https://ptvo.info/cc2530-based-zigbee-coordinator-and-router-112/ )
Flash Programmer não o 2( https://www.ti.com/tool/FLASH-PROGRAMMER#downloads )