Skip to content

Commit

Permalink
WIP: Add PowerStream Support (#66)
Browse files Browse the repository at this point in the history
* Add Deserialiser for PowerStream packet

* Add Sensors

* Switches and selects required for a device

* Use Protobuf to read MQTT packets

* Add Protobuf Requirement to Manifest

* Corrected Python Import and Map Heartbeat object to Dictionary

* Improvements to Protobuf Descriptors

* Ignore Empty Heartbeat Fields

* Tidy Up Sensors

* Fix for Upstream Changes

Timestamp field added to raw payload

* Correcting Watt Sensor Units for PowerStream

* New Sensor for Celsius at the factor of 10^-1

* Mistake with name for Inverter Frequency

* New Sensor for Frequency at the factor of 10^-1 in Hertz

* New Sensor for Volts at the factor of 10^-1

* Correcting Power Factor for Various Volt and Amp fields

Still missing solutions for what appear random values in AC Input Volts, AC Op Volts and Inverter Output Volts

* Add Battery Charge and Discharge Time

* Restore Sensors Accidently Deleted in Rebase

* Disable AC Input Volts, AC Op Volts and Inverter Output Volts

I don't know what these fields do, my guess is that they are settings

* Added PowerStream to ReadMe.md

* Add Status Fields

* Fix Solar 1 Status Type

* Change Misc Sensors to Diagnostic Category

* Misc Sensor isn't a Measurement
  • Loading branch information
mattwells authored Jul 17, 2023
1 parent 207017d commit 20e0d50
Show file tree
Hide file tree
Showing 14 changed files with 806 additions and 107 deletions.
270 changes: 171 additions & 99 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,29 +54,29 @@ Once installed, use Add Integration -> Ecoflow Cloud.
- Status

*Switches*
- Beeper
- USB Enabled
- AC Always On
- Prio Solar Charging
- AC Enabled
- X-Boost Enabled
- DC (12V) Enabled
- Backup Reserve Enabled
- Beeper
- USB Enabled
- AC Always On
- Prio Solar Charging
- AC Enabled
- X-Boost Enabled
- DC (12V) Enabled
- Backup Reserve Enabled

*Sliders (numbers)*
- Max Charge Level
- Min Discharge Level
- Backup Reserve Level
- Generator Auto Start Level
- Generator Auto Stop Level
- AC Charging Power
- Max Charge Level
- Min Discharge Level
- Backup Reserve Level
- Generator Auto Start Level
- Generator Auto Stop Level
- AC Charging Power

*Selects*
- DC (12V) Charge Current
- Screen Timeout
- Unit Timeout
- AC Timeout
- DC (12V) Timeout
- DC (12V) Charge Current
- Screen Timeout
- Unit Timeout
- AC Timeout
- DC (12V) Timeout

</p></details>

Expand Down Expand Up @@ -107,21 +107,21 @@ Once installed, use Add Integration -> Ecoflow Cloud.
- Status

*Switches*
- AC Enabled
- X-Boost Enabled
- DC (12V) Enabled
- AC Enabled
- X-Boost Enabled
- DC (12V) Enabled

*Sliders (numbers)*
- Max Charge Level
- Min Discharge Level
- AC Charging Power
- Max Charge Level
- Min Discharge Level
- AC Charging Power

*Selects*
- DC (12V) Charge Current
- DC Mode
- Screen Timeout
- Unit Timeout
- AC Timeout
- DC (12V) Charge Current
- DC Mode
- Screen Timeout
- Unit Timeout
- AC Timeout

</p></details>

Expand Down Expand Up @@ -155,21 +155,21 @@ Once installed, use Add Integration -> Ecoflow Cloud.
- Status

*Switches*
- AC Enabled
- X-Boost Enabled
- DC (12V) Enabled
- AC Enabled
- X-Boost Enabled
- DC (12V) Enabled

*Sliders (numbers)*
- Max Charge Level
- Min Discharge Level
- AC Charging Power
- Max Charge Level
- Min Discharge Level
- AC Charging Power

*Selects*
- DC (12V) Charge Current
- DC Mode
- Screen Timeout
- Unit Timeout
- AC Timeout
- DC (12V) Charge Current
- DC Mode
- Screen Timeout
- Unit Timeout
- AC Timeout

</p></details>

Expand Down Expand Up @@ -201,21 +201,21 @@ Once installed, use Add Integration -> Ecoflow Cloud.
- Status

*Switches*
- AC Enabled
- X-Boost Enabled
- DC (12V) Enabled
- AC Enabled
- X-Boost Enabled
- DC (12V) Enabled

*Sliders (numbers)*
- Max Charge Level
- Min Discharge Level
- AC Charging Power
- Max Charge Level
- Min Discharge Level
- AC Charging Power

*Selects*
- DC (12V) Charge Current
- DC Mode
- Screen Timeout
- Unit Timeout
- AC Timeout
- DC (12V) Charge Current
- DC Mode
- Screen Timeout
- Unit Timeout
- AC Timeout

</p></details>

Expand Down Expand Up @@ -263,26 +263,26 @@ Once installed, use Add Integration -> Ecoflow Cloud.
- Status

*Switches*
- Beeper
- DC (12V) Enabled
- AC Enabled
- X-Boost Enabled
- AC Always On
- Backup Reserve Enabled
- Beeper
- DC (12V) Enabled
- AC Enabled
- X-Boost Enabled
- AC Always On
- Backup Reserve Enabled

*Sliders (numbers)*
- Max Charge Level
- Min Discharge Level
- Backup Reserve Level
- Generator Auto Start Level
- Generator Auto Stop Level
- AC Charging Power
- Max Charge Level
- Min Discharge Level
- Backup Reserve Level
- Generator Auto Start Level
- Generator Auto Stop Level
- AC Charging Power

*Selects*
- DC (12V) Charge Current
- Screen Timeout
- Unit Timeout
- AC Timeout
- DC (12V) Charge Current
- Screen Timeout
- Unit Timeout
- AC Timeout

</p></details>

Expand Down Expand Up @@ -319,17 +319,17 @@ Once installed, use Add Integration -> Ecoflow Cloud.
- Status

*Switches*
- Beeper
- AC Enabled
- DC (12V) Enabled
- X-Boost Enabled
- Beeper
- AC Enabled
- DC (12V) Enabled
- X-Boost Enabled

*Sliders (numbers)*
- Max Charge Level _(read-only)_

*Selects*
- Unit Timeout
- AC Timeout
- Unit Timeout
- AC Timeout

</p></details>

Expand Down Expand Up @@ -412,20 +412,20 @@ Once installed, use Add Integration -> Ecoflow Cloud.
- Status

*Switches*
- Beeper
- USB Enabled
- AC Always On
- Prio Solar Charging
- AC Enabled
- X-Boost Enabled
- DC (12V) Enabled
- Beeper
- USB Enabled
- AC Always On
- Prio Solar Charging
- AC Enabled
- X-Boost Enabled
- DC (12V) Enabled

*Sliders (numbers)*
- Max Charge Level
- Min Discharge Level
- Generator Auto Start Level
- Generator Auto Stop Level
- AC Charging Power
- Max Charge Level
- Min Discharge Level
- Generator Auto Start Level
- Generator Auto Stop Level
- AC Charging Power

*Selects*

Expand Down Expand Up @@ -462,23 +462,95 @@ Once installed, use Add Integration -> Ecoflow Cloud.
- Status

*Switches*
- Beeper
- USB Enabled
- AC Always On
- AC Enabled
- X-Boost Enabled
- Beeper
- USB Enabled
- AC Always On
- AC Enabled
- X-Boost Enabled

*Sliders (numbers)*
- Max Charge Level
- Min Discharge Level
- Generator Auto Start Level
- Generator Auto Stop Level
- AC Charging Power
- Max Charge Level
- Min Discharge Level
- Generator Auto Start Level
- Generator Auto Stop Level
- AC Charging Power

*Selects*
- Screen Timeout
- Unit Timeout
- AC Timeout
- Screen Timeout
- Unit Timeout
- AC Timeout

</p></details>

<details><summary> POWERSTREAM <i>(sensors: 25, switches: 0, sliders: 0, selects: 0)</i> </summary>
<p>

*Sensors*
- Solar 1 Watts
- Solar 1 Input Potential
- Solar 1 Op Potential
- Solar 1 Currrent
- Solar 1 Tempurature
- Solar 1 Relay Status
- Solar 1 Error Code _(disabled)_
- Solar 1 Warning Code _(disabled)_
- Solar 1 tatus _(disabled)_
- Solar 2 Watts
- Solar 2 Input Potential
- Solar 2 Op Potential
- Solar 2 Current
- Solar 2 Tempurature
- Solar 2 Relay Status
- Solar 2 Error Code _(disabled)_
- Solar 2 Warning Code _(disabled)_
- Solar 2 Status _(disabled)_
- Battery Type _(disabled)_
- Battery Charge
- Battery Input Watts
- Battery Input Potential
- Battery Op Potential
- Battery Input Current
- Battery Tempurature
- Charge Time
- Discharge Time
- Battery Error Code _(disabled)_
- Battery Warning Code _(disabled)_
- Battery Status _(disabled)_
- LLC Input Potential _(disabled)_
- LLC Op Potential _(disabled)_
- LLC Error Code _(disabled)_
- LLC Warning Code _(disabled)_
- LLC Status _(disabled)_
- Inverter On/Off Status
- Inverter Output Watts
- Inverter Output Potential _(disabled)_
- Inverter Op Potential
- Inverter Output Current
- Inverter DC Current
- Inverter Frequency
- Inverter Tempurature
- Inverter Relay Status
- Inverter Error Code _(disabled)_
- Inverter Warning Code _(disabled)_
- Inverter Status _(disabled)_
- Other Loads
- Smart Plug Loads
- Rated Power
- Lower Battery Limit _(disabled)_
- Upper Battery Limit _(disabled)_
- Wireless Error Code _(disabled)_
- Wireless Warning Code _(disabled)_
- LED Brightness _(disabled)_
- Heartbeat Frequency _(disabled)_

*Switches*
None

*Sliders (numbers)*
None

*Selects*
None

</p></details>

Expand Down
1 change: 1 addition & 0 deletions custom_components/ecoflow_cloud/config/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class EcoflowModel(Enum):
RIVER_PRO = 7,
DELTA_MAX = 8,
DELTA_2_MAX = 9,
POWERSTREAM = 51,
DIAGNOSTIC = 99

@classmethod
Expand Down
Loading

0 comments on commit 20e0d50

Please sign in to comment.