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:
John 2019-11-20 11:47:34 -05:00 committed by Otto Winter
parent b7b23ffdb2
commit 6a0268b852
2 changed files with 11 additions and 1 deletions

View file

@ -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]))

View file

@ -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