Atm90e32 pf fix (#841)

* correct set_pf_sensor to set_power_factor_senor

* remove junk files added in error

* correct sensors.yaml reference to set_reactive_power

* Fixes
This commit is contained in:
Mark 2019-11-13 18:49:59 +11:00 committed by Otto Winter
parent a386bb476f
commit 092bca0d63
2 changed files with 6 additions and 2 deletions

View file

@ -74,10 +74,10 @@ def to_code(config):
cg.add(var.set_power_sensor(i, sens))
if CONF_REACTIVE_POWER in conf:
sens = yield sensor.new_sensor(conf[CONF_REACTIVE_POWER])
cg.add(var.set_react_pow_sensor(i, sens))
cg.add(var.set_reactive_power_sensor(i, sens))
if CONF_POWER_FACTOR in conf:
sens = yield sensor.new_sensor(conf[CONF_POWER_FACTOR])
cg.add(var.set_pf_sensor(i, sens))
cg.add(var.set_power_factor_sensor(i, sens))
if CONF_FREQUENCY in config:
sens = yield sensor.new_sensor(config[CONF_FREQUENCY])
cg.add(var.set_freq_sensor(sens))

View file

@ -261,6 +261,10 @@ sensor:
name: "EMON CT1 Current"
power:
name: "EMON Active Power CT1"
reactive_power:
name: "EMON Reactive Power CT1"
power_factor:
name: "EMON Power Factor CT1"
gain_voltage: 47660
gain_ct: 12577
phase_b: