mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 13:34:54 +01:00
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:
parent
a386bb476f
commit
092bca0d63
2 changed files with 6 additions and 2 deletions
|
@ -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))
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue