2021-12-20 02:31:03 +01:00
|
|
|
Growatt Solar
|
|
|
|
=============
|
|
|
|
|
|
|
|
.. seo::
|
|
|
|
:description: Instructions for setting up a Growatt inverter reading on modbus.
|
|
|
|
:image: growatt.jpg
|
|
|
|
:keywords: Growatt, Ginverter
|
|
|
|
|
|
|
|
The ``Growatt Inverter`` sensor platform allows you to use growatt inverter data reading on modbus with ESPHome.
|
|
|
|
|
|
|
|
.. figure:: images/growatt.jpg
|
|
|
|
:align: center
|
|
|
|
:width: 50.0%
|
|
|
|
|
|
|
|
Growatt Logo
|
|
|
|
|
2024-05-07 07:16:56 +02:00
|
|
|
The communication with this component is done over a :ref:`UART bus <uart>` using :ref:`Modbus <modbus>`.
|
2024-05-07 07:40:12 +02:00
|
|
|
You must therefore have a ``uart:`` and ``modbus:`` entry in your configuration with both the TX and RX pins set
|
2021-12-20 02:31:03 +01:00
|
|
|
to some pins on your board and the baud rate set to 9600.
|
|
|
|
|
|
|
|
.. code-block:: yaml
|
|
|
|
|
2024-05-07 07:40:12 +02:00
|
|
|
# Example configuration
|
2021-12-20 02:31:03 +01:00
|
|
|
sensor:
|
|
|
|
- platform: growatt_solar
|
2022-04-10 22:06:14 +02:00
|
|
|
protocol_version: RTU
|
2024-05-07 07:40:12 +02:00
|
|
|
|
2021-12-20 02:31:03 +01:00
|
|
|
inverter_status:
|
|
|
|
name: "Growatt Status Code"
|
|
|
|
|
|
|
|
phase_a:
|
|
|
|
voltage:
|
|
|
|
name: "Growatt Voltage Phase A"
|
|
|
|
current:
|
|
|
|
name: "Growatt Current Phase A"
|
|
|
|
active_power:
|
|
|
|
name: "Growatt Power Phase A"
|
|
|
|
phase_b:
|
|
|
|
voltage:
|
|
|
|
name: "Growatt Voltage Phase B"
|
|
|
|
current:
|
|
|
|
name: "Growatt Current Phase B"
|
|
|
|
active_power:
|
|
|
|
name: "Growatt Power Phase B"
|
|
|
|
phase_c:
|
|
|
|
voltage:
|
|
|
|
name: "Growatt Voltage Phase C"
|
|
|
|
current:
|
|
|
|
name: "Growatt Current Phase C"
|
|
|
|
active_power:
|
|
|
|
name: "Growatt Power Phase C"
|
|
|
|
|
|
|
|
pv1:
|
|
|
|
voltage:
|
|
|
|
name: "Growatt PV1 Voltage"
|
|
|
|
current:
|
|
|
|
name: "Growatt PV1 Current"
|
|
|
|
active_power:
|
|
|
|
name: "Growatt PV1 Active Power"
|
|
|
|
|
|
|
|
pv2:
|
|
|
|
voltage:
|
|
|
|
name: "Growatt PV2 Voltage"
|
|
|
|
current:
|
|
|
|
name: "Growatt PV2 Current"
|
|
|
|
active_power:
|
|
|
|
name: "Growatt PV2 Active Power"
|
|
|
|
|
|
|
|
active_power:
|
|
|
|
name: "Growatt Grid Active Power"
|
|
|
|
|
|
|
|
pv_active_power:
|
|
|
|
name: "Growatt PV Active Power"
|
|
|
|
|
|
|
|
frequency:
|
|
|
|
name: "Growatt Frequency"
|
|
|
|
|
|
|
|
energy_production_day:
|
|
|
|
name: "Growatt Today's Generation"
|
2024-05-07 07:40:12 +02:00
|
|
|
|
2021-12-20 02:31:03 +01:00
|
|
|
total_energy_production:
|
|
|
|
name: "Growatt Total Energy Production"
|
|
|
|
|
|
|
|
inverter_module_temp:
|
|
|
|
name: "Growatt Inverter Module Temp"
|
|
|
|
|
|
|
|
|
|
|
|
Configuration variables:
|
|
|
|
------------------------
|
|
|
|
|
|
|
|
- **inverter_status** (*Optional*): Status code of the inverter (0: waiting, 1: normal, 3:fault)
|
|
|
|
|
2024-05-07 07:40:12 +02:00
|
|
|
- **protocol_version** (*Optional*): Version of the protocol used by your inverter.
|
2022-04-10 22:06:14 +02:00
|
|
|
Old inverters use RTU (default). Newer ones use RTU2 (e.g. MIC, MIN, MAX series)
|
|
|
|
|
2021-12-20 02:31:03 +01:00
|
|
|
- **phase_a** (*Optional*): The group of exposed sensors for Phase A/1.
|
|
|
|
|
|
|
|
- **current** (*Optional*): Use the current value of the sensor in amperes. All options from
|
|
|
|
:ref:`Sensor <config-sensor>`.
|
|
|
|
- **voltage** (*Optional*): Use the voltage value of the sensor in volts.
|
|
|
|
All options from :ref:`Sensor <config-sensor>`.
|
|
|
|
- **active_power** (*Optional*): Use the (active) power value of the sensor in watts. All options
|
|
|
|
from :ref:`Sensor <config-sensor>`.
|
|
|
|
|
|
|
|
- **phase_b** (*Optional*): The group of exposed sensors for Phase B/2 on applicable inverters.
|
|
|
|
|
|
|
|
- All options from **phase_a**
|
|
|
|
|
|
|
|
- **phase_c** (*Optional*): The group of exposed sensors for Phase C/3 on applicable inverters.
|
|
|
|
|
|
|
|
- All options from **phase_a**
|
|
|
|
|
|
|
|
- **pv1** (*Optional*): The group of exposed sensors for Photo Voltaic 1.
|
|
|
|
|
|
|
|
- **current** (*Optional*): Use the current value of the sensor in amperes. All options from
|
|
|
|
:ref:`Sensor <config-sensor>`.
|
|
|
|
- **voltage** (*Optional*): Use the voltage value of the sensor in volts.
|
|
|
|
All options from :ref:`Sensor <config-sensor>`.
|
|
|
|
- **active_power** (*Optional*): Use the (active) power value of the sensor in watts. All options
|
|
|
|
from :ref:`Sensor <config-sensor>`.
|
|
|
|
|
|
|
|
- **pv2** (*Optional*): The group of exposed sensors for Photo Voltaic 2.
|
|
|
|
|
|
|
|
- All options from **pv1**
|
|
|
|
|
|
|
|
- **active_power** (*Optional*): Use the (active) power value for the Grid in watts. All options
|
|
|
|
from :ref:`Sensor <config-sensor>`.
|
|
|
|
|
|
|
|
- **pv_active_power** (*Optional*): Use the (active) power value of PVs in total in watts. All options
|
|
|
|
from :ref:`Sensor <config-sensor>`.
|
|
|
|
|
|
|
|
- **frequency** (*Optional*): Use the frequency value of the sensor in hertz.
|
|
|
|
All options from :ref:`Sensor <config-sensor>`.
|
|
|
|
- **energy_production_day** (*Optional*): Use the export active energy value for same day of the
|
|
|
|
sensor in kilo watt hours. All options from :ref:`Sensor <config-sensor>`.
|
|
|
|
- **total_energy_production** (*Optional*): Use the total exported energy value of the sensor in
|
|
|
|
kilo watt hours. All options from :ref:`Sensor <config-sensor>`.
|
|
|
|
- **inverter_module_temp** (*Optional*): Use the inverter module temperature value of the sensor in
|
|
|
|
degree celsius. All options from :ref:`Sensor <config-sensor>`.
|
2023-09-23 06:40:38 +02:00
|
|
|
- **update_interval** (*Optional*, :ref:`config-time`): The interval to check the
|
|
|
|
sensor. Defaults to ``10s``.
|
|
|
|
- **address** (*Optional*, int): The address of the sensor if multiple sensors are attached to
|
|
|
|
the same UART bus. You will need to set the address of each device manually. Defaults to ``1``.
|
2021-12-20 02:31:03 +01:00
|
|
|
|
|
|
|
See Also
|
|
|
|
--------
|
|
|
|
|
|
|
|
- :ref:`sensor-filters`
|
|
|
|
- :ghedit:`Edit`
|