I have followed the configuration on ESPHome for the ATM90E26 Energy sensor. The sensor values appear in the ESP device log but do not appear as entities in home assitant. Can someone advise what i am missing:
This is the code in the device.yaml
# ATM90E26 single phase energy Meter
substitutions:
plconst_cal: '1429876' # default: 1429876, compute as 838860800 * (gain_pga * < sampled voltage (mV) at 1Amp current> * < sampled voltage (mV) at reference voltage> / (<pulse constant (e.g. 3200 pulses/kWh)> * <reference voltage, e.g. 230V>))
current_cal: '32801' # default: 31251
voltage_cal: '17528' # default: 26400 - Application note says this should be < 32768, maybe for some internal computation?
metering_cal: '7481' # default: 7481 - Calibrate this to match your meter based on the CF1 (CFx) pulse.
spi:
clk_pin: 3
miso_pin: 4
mosi_pin: 5
sensor:
- platform: atm90e26
cs_pin: 6
voltage:
name: E_volt
accuracy_decimals: 1
current:
name: E_amp
power:
name: E_watt
accuracy_decimals: 1
reactive_power:
name: E_ReaPower
power_factor:
name: E_pf
accuracy_decimals: 2
forward_active_energy:
name: E_Fpower
reverse_active_energy:
name: E_RevPower
frequency:
name: E_freq
line_frequency: 50Hz
pl_const: ${plconst_cal}
meter_constant: '3200.0'
gain_metering: ${metering_cal}
gain_voltage: ${voltage_cal}
gain_ct: ${current_cal}
gain_pga: 1X
update_interval: '10s'
when I download the yaml to the device it operates fine as shown in the screenshot:
none of the sensors (E_volt, E_current, etc) appear in home Assistant.
any ideas?