mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 13:34:54 +01:00
fix chip_temperature for atm90e32 component (#865)
* Added more data to atm90e32 component * ignore * correction * Delete 6chan_energy_meter.yaml * PR request changes * repository test branch * Update setup.py * Update const.py * delete test yaml * fix chip_temperature_sensor This was throwing an error if chip_temperature was used. It needed to be changed from temp to temperature. * default * Update test1.yaml
This commit is contained in:
parent
b7b23ffdb2
commit
6a0268b852
2 changed files with 11 additions and 1 deletions
|
@ -83,6 +83,6 @@ def to_code(config):
|
||||||
cg.add(var.set_freq_sensor(sens))
|
cg.add(var.set_freq_sensor(sens))
|
||||||
if CONF_CHIP_TEMPERATURE in config:
|
if CONF_CHIP_TEMPERATURE in config:
|
||||||
sens = yield sensor.new_sensor(config[CONF_CHIP_TEMPERATURE])
|
sens = yield sensor.new_sensor(config[CONF_CHIP_TEMPERATURE])
|
||||||
cg.add(var.set_chip_temp_sensor(sens))
|
cg.add(var.set_chip_temperature_sensor(sens))
|
||||||
cg.add(var.set_line_freq(config[CONF_LINE_FREQUENCY]))
|
cg.add(var.set_line_freq(config[CONF_LINE_FREQUENCY]))
|
||||||
cg.add(var.set_pga_gain(config[CONF_GAIN_PGA]))
|
cg.add(var.set_pga_gain(config[CONF_GAIN_PGA]))
|
||||||
|
|
|
@ -272,6 +272,10 @@ sensor:
|
||||||
name: "EMON CT2 Current"
|
name: "EMON CT2 Current"
|
||||||
power:
|
power:
|
||||||
name: "EMON Active Power CT2"
|
name: "EMON Active Power CT2"
|
||||||
|
reactive_power:
|
||||||
|
name: "EMON Reactive Power CT2"
|
||||||
|
power_factor:
|
||||||
|
name: "EMON Power Factor CT2"
|
||||||
gain_voltage: 47660
|
gain_voltage: 47660
|
||||||
gain_ct: 12577
|
gain_ct: 12577
|
||||||
phase_c:
|
phase_c:
|
||||||
|
@ -279,10 +283,16 @@ sensor:
|
||||||
name: "EMON CT3 Current"
|
name: "EMON CT3 Current"
|
||||||
power:
|
power:
|
||||||
name: "EMON Active Power CT3"
|
name: "EMON Active Power CT3"
|
||||||
|
reactive_power:
|
||||||
|
name: "EMON Reactive Power CT3"
|
||||||
|
power_factor:
|
||||||
|
name: "EMON Power Factor CT3"
|
||||||
gain_voltage: 47660
|
gain_voltage: 47660
|
||||||
gain_ct: 12577
|
gain_ct: 12577
|
||||||
frequency:
|
frequency:
|
||||||
name: "EMON Line Frequency"
|
name: "EMON Line Frequency"
|
||||||
|
chip_temperature:
|
||||||
|
name: "EMON Chip Temp A"
|
||||||
line_frequency: 50Hz
|
line_frequency: 50Hz
|
||||||
gain_pga: 2X
|
gain_pga: 2X
|
||||||
- platform: bh1750
|
- platform: bh1750
|
||||||
|
|
Loading…
Reference in a new issue