All Projects → mletenay → home-assistant-goodwe-inverter

mletenay / home-assistant-goodwe-inverter

Licence: MIT license
Experimental version of Home Assistant integration for Goodwe solar inverters

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to home-assistant-goodwe-inverter

ical-sensor-homeassistant
an iCal Sensor for Home Assistant
Stars: ✭ 42 (-47.5%)
Mutual labels:  home-assistant, hacs
purifier-card
Air Purifier card for Home Assistant Lovelace UI
Stars: ✭ 155 (+93.75%)
Mutual labels:  home-assistant, hacs
home-assistant-frigidaire
Custom component for the Frigidaire integration
Stars: ✭ 11 (-86.25%)
Mutual labels:  home-assistant, hacs
Home-Assistant-Sensor-Afvalbeheer
Provides Home Assistant sensors for multiple Dutch and Belgium waste collectors
Stars: ✭ 157 (+96.25%)
Mutual labels:  home-assistant, hacs
lovelace-valetudo-map-card
Draws the map available from a Xiaomi Vacuum cleaner flashed with Valetudo in a Home Assistant Lovelace card
Stars: ✭ 149 (+86.25%)
Mutual labels:  home-assistant, hacs
bom-radar-card
A rain radar card using the new tiled images from the Australian BOM
Stars: ✭ 52 (-35%)
Mutual labels:  home-assistant, hacs
hass-amplifi
A home assistant integration for Ubiquiti Amplifi
Stars: ✭ 17 (-78.75%)
Mutual labels:  home-assistant, hacs
hass-shutter-card
Shutter card for Home Assistant Lovelace UI
Stars: ✭ 151 (+88.75%)
Mutual labels:  home-assistant, hacs
home-assistant-omnik-inverter
Read the current, daily and total Wh from your Omnik Inverter via local network (no cloud!)
Stars: ✭ 45 (-43.75%)
Mutual labels:  hacs, home-assistant-sensor
Integration
HACS gives you a powerful UI to handle downloads of all your custom needs.
Stars: ✭ 2,114 (+2542.5%)
Mutual labels:  home-assistant, hacs
compass-card
A Lovelace card that shows a directional indicator on a compass for Home Assistant
Stars: ✭ 64 (-20%)
Mutual labels:  home-assistant, hacs
ha-iaquk
Indoor Air Quality Sensor Component for Home Assistant
Stars: ✭ 57 (-28.75%)
Mutual labels:  home-assistant, hacs
ha-climacell-weather
Climacell weather provider integration is a custom component for Home Assistant. The climacell platform uses the Climacell API as a source for meteorological data for your location.
Stars: ✭ 41 (-48.75%)
Mutual labels:  home-assistant, hacs
numberbox-card
Replace input_number sliders with plus and minus buttons
Stars: ✭ 61 (-23.75%)
Mutual labels:  home-assistant, hacs
home-assistant-sun-card
Home assistant sun card based on Google weather design
Stars: ✭ 279 (+248.75%)
Mutual labels:  home-assistant, hacs
entur-card
Home Assistant Lovelace card card for the Entur public transport component.
Stars: ✭ 38 (-52.5%)
Mutual labels:  home-assistant, hacs
wyzesense2mqtt
Configurable WyzeSense to MQTT Gateway intended for use with Home Assistant or other platforms that use MQTT discovery mechanisms.
Stars: ✭ 55 (-31.25%)
Mutual labels:  home-assistant, home-assistant-sensor
read your meter
Home Assistant sensor to read water meter
Stars: ✭ 27 (-66.25%)
Mutual labels:  home-assistant, hacs
ha-zoom-automation
Custom Home Assistant component for Zoom. Tracks when you are connected to a Zoom call by default but may allow you to track more.
Stars: ✭ 47 (-41.25%)
Mutual labels:  home-assistant, hacs
home assistant tractive
Custom component for Tractive
Stars: ✭ 34 (-57.5%)
Mutual labels:  home-assistant, hacs

hacs_badge

GoodWe solar inverter for Home Assistant (experimental)

Support for Goodwe solar inverters is present as native integration of Home Assistant since its release 2022.2 and is recommended for most users.

This custom component is experimental version with features not (yet) present in standard HA's integration and is intended for users with specific needs and early adopters of new features. Use at own risk.

Differences between HACS 0.9.9.0 and HA 2022.4

  • Integration configuration parameters Scan iterval, Network retry attempts, Network request timeout.
  • Synchronize inverter clock button
  • Special work modes Eco charge mode and Eco discharge mode.

Migration from HACS to HA

If you have been using this custom component and want to migrate to standard HA integration, the migration is straightforward. Just remove the integration from HACS (press Ignore and force uninstall despite the warning the integration is still configured). Atrer restart of Home Assistant, the standard Goodwe integration will start and all your existing settings, entity names, history and statistics should be preserved.

(If you uninstall the integration first, then uninstall HACS component and install integration back again, it will also work, but you will probably loose some history and settings since HA integration uses slightly different default entity names.)

Home Assistant Energy Dashboard

The integration provides several values suitable for the energy dashboard introduced to HA in v2021.8. The best supported are the inverters of ET/EH families, where the sensors meter_e_total_exp, meter_e_total_imp, e_total, e_bat_charge_total and e_bat_discharge_total are the most suitable for the dashboard measurements and statistics. For the other inverter families, if such sensors are not directly available from the inverter, they can be calculated, see paragraph below.

Cumulative energy values

The sensor values reported by the inverter are instant measurements. To report summary (energy) values like daily/monthly sell or buy (in kWh), these values have to be aggregated over time.

Riemann Sum integration can be used to convert these instant (W) values into cumulative values (Wh). Utility Meter can report these values as human readable statistical values. Template Sensor can be used to separate buy and sell values.

sensor:
  - platform: template
    sensors:
      # Template sensor for values of energy bought (active_power < 0)
      energy_buy:
        friendly_name: "Energy Buy"
        unit_of_measurement: 'W'
        value_template: >-
          {% if states('sensor.goodwe_active_power')|float < 0 %}
            {{ states('sensor.goodwe_active_power')|float * -1 }}
          {% else %}
            {{ 0 }}
          {% endif %}
      # Template sensor for values of energy sold (active_power > 0)
      energy_sell:
        friendly_name: "Energy Sell"
        unit_of_measurement: 'W'
        value_template: >-
          {% if states('sensor.goodwe_active_power')|float > 0 %}
            {{ states('sensor.goodwe_active_power')|float }}
          {% else %}
            {{ 0 }}
          {% endif %}

  # Sensor for Riemann sum of energy bought (W -> Wh)
  - platform: integration
    source: sensor.energy_buy
    name: energy_buy_sum
    unit_prefix: k
    round: 1
    method: left
  # Sensor for Riemann sum of energy sold (W -> Wh)
  - platform: integration
    source: sensor.energy_sell
    name: energy_sell_sum
    unit_prefix: k
    round: 1
    method: left

utility_meter:
  energy_buy_daily:
    source: sensor.energy_buy_sum
    cycle: daily
  energy_buy_monthly:
    source: sensor.energy_buy_sum
    cycle: monthly
  energy_sell_daily:
    source: sensor.energy_sell_sum
    cycle: daily
  energy_sell_monthly:
    source: sensor.energy_sell_sum
    cycle: monthly
  house_consumption_daily:
    source: sensor.house_consumption_sum
    cycle: daily
  house_consumption_monthly:
    source: sensor.house_consumption_sum
    cycle: monthly

Troubleshooting

If you observe any problems or cannot make it work with your inverter at all, try to increase logging level of the component and check the log files.

logger:
  default: warning
  logs:
    custom_components.goodwe: debug
    goodwe: debug

Source code

The source code implementing the actual communication with GoodWe inverters (which was originally part of this plugin) was extracted and moved to standalone PyPI library. This repository now contains only the HomeAssistant specific code.

Inverter discovery and communication testing

To test whether the inverter properly responds to UDP request, just execute the inverter_test.py script in your python (3.7+) environment. The inverter_scan.py script can be used to discover inverter(s) on your local network.

References and inspiration

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].