* Add iskra integration * iskra non resettable counters naming fix * added iskra config_flow test * fixed iskra integration according to code review * changed iskra config flow test * iskra integration, fixed codeowners * Removed counters code & minor fixes * added comment * Update homeassistant/components/iskra/__init__.py Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> * Updated Iskra integration according to review * Update homeassistant/components/iskra/strings.json Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> * Updated iskra integration according to review * minor iskra integration change * iskra integration changes according to review * iskra integration changes according to review * Changed iskra integration according to review * added iskra config_flow range validation * Fixed tests for iskra integration * Update homeassistant/components/iskra/coordinator.py * Update homeassistant/components/iskra/config_flow.py Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> * Fixed iskra integration according to review * Changed voluptuous schema for iskra integration and added data_descriptions * Iskra integration tests lint error fix --------- Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
25 lines
651 B
Python
25 lines
651 B
Python
"""Constants for the iskra integration."""
|
|
|
|
DOMAIN = "iskra"
|
|
MANUFACTURER = "Iskra d.o.o"
|
|
|
|
# POWER
|
|
ATTR_TOTAL_APPARENT_POWER = "total_apparent_power"
|
|
ATTR_TOTAL_REACTIVE_POWER = "total_reactive_power"
|
|
ATTR_TOTAL_ACTIVE_POWER = "total_active_power"
|
|
ATTR_PHASE1_POWER = "phase1_power"
|
|
ATTR_PHASE2_POWER = "phase2_power"
|
|
ATTR_PHASE3_POWER = "phase3_power"
|
|
|
|
# Voltage
|
|
ATTR_PHASE1_VOLTAGE = "phase1_voltage"
|
|
ATTR_PHASE2_VOLTAGE = "phase2_voltage"
|
|
ATTR_PHASE3_VOLTAGE = "phase3_voltage"
|
|
|
|
# Current
|
|
ATTR_PHASE1_CURRENT = "phase1_current"
|
|
ATTR_PHASE2_CURRENT = "phase2_current"
|
|
ATTR_PHASE3_CURRENT = "phase3_current"
|
|
|
|
# Frequency
|
|
ATTR_FREQUENCY = "frequency"
|