Skip to content

Commit

Permalink
RIVER_2_MAX: solar in current and voltage (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
tolwi committed Jun 7, 2023
1 parent 8083868 commit e99b583
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion custom_components/ecoflow_cloud/devices/river2_max.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
from ..number import ChargingPowerEntity, MaxBatteryLevelEntity, MinBatteryLevelEntity
from ..select import DictSelectEntity, TimeoutDictSelectEntity
from ..sensor import LevelSensorEntity, RemainSensorEntity, TempSensorEntity, \
CyclesSensorEntity, InWattsSensorEntity, OutWattsSensorEntity, VoltSensorEntity
CyclesSensorEntity, InWattsSensorEntity, OutWattsSensorEntity, VoltSensorEntity, InAmpSensorEntity, \
InVoltSensorEntity
from ..switch import EnabledEntity


Expand All @@ -19,6 +20,9 @@ def sensors(self, client: EcoflowMQTTClient) -> list[BaseSensorEntity]:
InWattsSensorEntity(client, "pd.wattsInSum", const.TOTAL_IN_POWER),
OutWattsSensorEntity(client, "pd.wattsOutSum", const.TOTAL_OUT_POWER),

InAmpSensorEntity(client, "inv.dcInAmp", const.SOLAR_IN_CURRENT),
InVoltSensorEntity(client, "inv.dcInVol", const.SOLAR_IN_VOLTAGE),

InWattsSensorEntity(client, "inv.inputWatts", const.AC_IN_POWER),
InWattsSensorEntity(client, "pd.typecChaWatts", const.TYPE_C_IN_POWER),
InWattsSensorEntity(client, "mppt.inWatts", const.SOLAR_IN_POWER),
Expand Down

0 comments on commit e99b583

Please sign in to comment.