mirror of
https://github.com/esphome/esphome.git
synced 2025-09-05 12:52:19 +01:00
pzemac total energy support (#933)
* add energy support in pzemac sensor Co-authored-by: Sergio Mayoral Martinez <sergiomayoralmartinez@gmail.com> Co-authored-by: t151602 <sergio.mayoralmartinez@telefonica.com> Co-authored-by: Otto Winter <otto@otto-winter.com>
This commit is contained in:
@@ -145,6 +145,7 @@ CONF_EFFECTS = 'effects'
|
||||
CONF_ELSE = 'else'
|
||||
CONF_ENABLE_PIN = 'enable_pin'
|
||||
CONF_ENABLE_TIME = 'enable_time'
|
||||
CONF_ENERGY = 'energy'
|
||||
CONF_ENTITY_ID = 'entity_id'
|
||||
CONF_ESP8266_RESTORE_FROM_FLASH = 'esp8266_restore_from_flash'
|
||||
CONF_ESPHOME = 'esphome'
|
||||
@@ -580,6 +581,7 @@ UNIT_VOLT = 'V'
|
||||
UNIT_VOLT_AMPS = 'VA'
|
||||
UNIT_VOLT_AMPS_REACTIVE = 'VAR'
|
||||
UNIT_WATT = 'W'
|
||||
UNIT_WATT_HOURS = 'Wh'
|
||||
|
||||
DEVICE_CLASS_CONNECTIVITY = 'connectivity'
|
||||
DEVICE_CLASS_MOVING = 'moving'
|
||||
|
Reference in New Issue
Block a user