Hi folks,
I’m trying to have my power meter device showing on Energy Dashboard and I’m stuck on my configuration.
This is the device I have running ESPHome (no more Tuya ): https://pt.aliexpress.com/item/1005004190441810.html?spm=a2g0o.productlist.main.23.48a23905YRhAPO&algo_pvid=47dcf09f-ce4e-4e73-bb72-17b0287e8a4c&algo_exp_id=47dcf09f-ce4e-4e73-bb72-17b0287e8a4c-11&pdp_ext_f={"sku_id"%3A"12000028330294490"}&pdp_npi=3%40dis!BRL!304.57!243.65!!!!!%40211bda9b16804759898108343d078a!12000028330294490!sea!BR!0&curPageLogUid=bFTJiyiUNswq
This is my device ESPHome config:
---
substitutions:
ipaddress: 192.168.2.49
device: medidor
friendly_name: "Medidor Energia"
esphome:
name: $device
platform: ESP8266
board: esp01_1m
<<: !include common/basic.yaml
<<: !include common/wifi.yaml
logger:
baud_rate: 0
uart:
rx_pin: GPIO3
tx_pin: GPIO1
baud_rate: 9600
tuya:
time:
- platform: sntp
id: my_time
binary_sensor:
- platform: gpio
pin: 16
id: button
# on_press:
# then:
# - switch.toggle:
sensor:
- platform: "tuya"
name: "${friendly_name} Current"
id: current
sensor_datapoint: 18
accuracy_decimals: 2
unit_of_measurement: A
icon: "mdi:flash"
filters:
- multiply: 0.001
- platform: "tuya"
name: "${friendly_name} Power"
sensor_datapoint: 19
accuracy_decimals: 1
unit_of_measurement: W
icon: "mdi:flash"
filters:
- multiply: 0.1
- platform: "tuya"
name: "${friendly_name} Voltage"
id: voltage
sensor_datapoint: 20
accuracy_decimals: 1
unit_of_measurement: V
icon: "mdi:flash"
filters:
- multiply: 0.1
- platform: "tuya"
name: "${friendly_name} kWh +"
sensor_datapoint: 101
accuracy_decimals: 3
unit_of_measurement: kWh
icon: "mdi:flash"
device_class: power
id: my_power
filters:
- multiply: 0.01
- platform: "tuya"
name: "${friendly_name} kWh -"
sensor_datapoint: 9
accuracy_decimals: 3
unit_of_measurement: "kWh"
icon: "mdi:flash"
device_class: power
filters:
- multiply: 0.01
- platform: total_daily_energy
name: "Total Daily Power"
power_id: my_power
unit_of_measurement: kWh
device_class: power
state_class: measurement
This is basic.yaml file:
---
logger:
level: DEBUG
api:
ota:
And this is wifi.yaml file:
---
wifi:
ssid: !secret wifinetwork
password: !secret wifipassword
fast_connect: on
manual_ip:
static_ip: ${ipaddress}
gateway: 192.168.2.1
subnet: 255.255.255.0
dns1: 1.1.1.1
dns2: 8.8.8.8
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: ${device}
password: ""
captive_portal:
web_server:
port: 80
When I go to Energy Configuration and click on Add Consumption under Grid consumption, it is not showing my device, but I can see all readings on Home Assistant:
Can someone help me?
Thanks in advice