Skip to content

Instantly share code, notes, and snippets.

@rmarinho
Last active November 16, 2022 03:47
Show Gist options
  • Save rmarinho/ca8ef7a01e2decfb5261102269274e77 to your computer and use it in GitHub Desktop.
Save rmarinho/ca8ef7a01e2decfb5261102269274e77 to your computer and use it in GitHub Desktop.
mtqq configuration for HAN
mqtt:
sensor:
- name: "Contador - Power Import"
state_topic: "tele/edp_box/SENSOR"
value_template: '{{ value_json.EB.Pi|float }}'
unit_of_measurement: "W"
icon: mdi:flash
device_class: voltage
state_class: measurement
- name: "Contador - Corrente"
state_topic: "tele/edp_box/SENSOR"
value_template: '{{ value_json.EB.I|float }}'
unit_of_measurement: "A"
icon: mdi:power-socket
device_class: current
state_class: measurement
- name: "Contador - Frequência"
state_topic: "tele/edp_box/SENSOR"
value_template: '{{ value_json.EB.F|float }}'
unit_of_measurement: "Hz"
icon: mdi:current-ac
device_class: frequency
state_class: measurement
- name: "Contador - Tensão 1"
state_topic: "tele/edp_box/SENSOR"
value_template: '{{ value_json.EB.V1|float }}'
unit_of_measurement: "V"
icon: mdi:flash
device_class: voltage
state_class: measurement
- name: "Contador - Corrente 1"
state_topic: "tele/edp_box/SENSOR"
value_template: '{{ value_json.EB.I1|float }}'
unit_of_measurement: "A"
icon: mdi:power-socket
device_class: current
state_class: measurement
- name: "Contador - Fator de Potência 1"
state_topic: "tele/edp_box/SENSOR"
value_template: '{{ value_json.EB.PF1|float }}'
unit_of_measurement: "p.u."
icon: mdi:percent
device_class: power_factor
state_class: measurement
- name: "Contador - Tensão 2"
state_topic: "tele/edp_box/SENSOR"
value_template: '{{ value_json.EB.V2|float }}'
unit_of_measurement: "V"
icon: mdi:flash
device_class: voltage
state_class: measurement
- name: "Contador - Corrente 2"
state_topic: "tele/edp_box/SENSOR"
value_template: '{{ value_json.EB.I2|float }}'
unit_of_measurement: "A"
icon: mdi:power-socket
device_class: current
state_class: measurement
- name: "Contador - Fator de Potência 2"
state_topic: "tele/edp_box/SENSOR"
value_template: '{{ value_json.EB.PF2|float }}'
unit_of_measurement: "p.u."
icon: mdi:percent
device_class: power_factor
state_class: measurement
- name: "Contador - Tensão 3"
state_topic: "tele/edp_box/SENSOR"
value_template: '{{ value_json.EB.V3|float }}'
unit_of_measurement: "V"
icon: mdi:flash
device_class: voltage
state_class: measurement
- name: "Contador - Corrente 3"
state_topic: "tele/edp_box/SENSOR"
value_template: '{{ value_json.EB.I3|float }}'
unit_of_measurement: "A"
icon: mdi:power-socket
device_class: current
state_class: measurement
- name: "Contador - Fator de Potência 3"
state_topic: "tele/edp_box/SENSOR"
value_template: '{{ value_json.EB.PF3|float }}'
unit_of_measurement: "p.u."
icon: mdi:percent
device_class: power_factor
state_class: measurement
- name: "Contador - Potência Ativa 1"
state_topic: "tele/edp_box/SENSOR"
value_template: '{{ value_json.EB.Pi1|float }}'
unit_of_measurement: "W"
icon: mdi:power-plug
device_class: power
state_class: measurement
- name: "Contador - Potência Ativa 2"
state_topic: "tele/edp_box/SENSOR"
value_template: '{{ value_json.EB.Pi2|float }}'
unit_of_measurement: "W"
icon: mdi:power-plug
device_class: power
state_class: measurement
- name: "Contador - Potência Ativa 3"
state_topic: "tele/edp_box/SENSOR"
value_template: '{{ value_json.EB.Pi3|float }}'
unit_of_measurement: "W"
icon: mdi:power-plug
device_class: power
state_class: measurement
- name: "Contador - Total Vazio"
state_topic: "tele/edp_box/SENSOR"
value_template: '{{ value_json.EB.ET1|float }}'
unit_of_measurement: "kWh"
icon: mdi:transmission-tower
device_class: energy
state_class: total_increasing
- name: "Contador - Total Ponta"
state_topic: "tele/edp_box/SENSOR"
value_template: '{{ value_json.EB.ET2|float }}'
unit_of_measurement: "kWh"
icon: mdi:transmission-tower
device_class: energy
state_class: total_increasing
- name: "Contador - Total Cheia"
state_topic: "tele/edp_box/SENSOR"
value_template: '{{ value_json.EB.ET3|float }}'
unit_of_measurement: "kWh"
icon: mdi:transmission-tower
device_class: energy
state_class: total_increasing
- name: "Contador - Importada"
state_topic: "tele/edp_box/SENSOR"
value_template: '{{ value_json.EB.Ei|float }}'
unit_of_measurement: "kWh"
icon: mdi:transmission-tower
device_class: energy
state_class: total_increasing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment