forked from boris-burgos/home-assistant-add-on
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With the latest HA update the mqtt configuration via "- platform: mqtt" is depreaceated. #1
Open
perico85
wants to merge
132
commits into
Maes152:main
Choose a base branch
from
egguy:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add support for ginvtypemap
explicitly call pip3 in attempt to fix error 127
Add new parameter from 2.7.8 Closing #6
Corrected head branch reference
updated edge -> current
…istant to monitor Growatt inverters with MQTT 0.1.4
…tant to monitor Growatt inverters 0.1.3
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
**Source:
johanmeijer/grott#259
Set configuration.yaml with this values to read from mqtt messages.**
mqtt:
sensor:
state_topic: energy/growatt
value_template: "{{ value_json['values']['epvtotal'] | int / 10 }}"
unique_id: growatt_generated_energy_total
device_class: energy
unit_of_measurement: "kWh"
state_class: "total_increasing"
name: Growatt - Generated energy (Total)
icon: mdi:solar-power
state_topic: energy/growatt
value_template: "{{ value_json['values']['pvtemperature'] | int / 10 }}"
unique_id: growatt_inverer_temperature
device_class: temperature
unit_of_measurement: "°C"
name: Growatt - Inverter temperature
state_class: "measurement"
state_topic: energy/growatt
value_template: "{{ value_json['values']['pvipmtemperature'] | int / 10 }}"
unique_id: growatt_ipm_temperature
device_class: temperature
unit_of_measurement: "°C"
name: Growatt - IPM temperature
state_class: "measurement"
state_topic: energy/growatt
value_template: "{{ value_json['device'] }}"
unique_id: growatt_serial
name: Growatt - Serial number
icon: mdi:select-inverse
state_topic: energy/growatt
If you like to have the date in another format, please change "timestamp_custom('%d-%m-%Y')"
For more information: https://docs.python.org/3/library/time.html#time.strftime
value_template: "{{ as_timestamp(strptime(value_json['time'], '%Y-%m-%dT%H:%M:%S')) | timestamp_custom('%d-%m-%Y') }}"
unique_id: growatt_date
name: Growatt - Date
icon: mdi:calendar
state_topic: energy/growatt
If you like to have the date in another format, please change "timestamp_custom('%H:%M:%S')"
For more information: https://docs.python.org/3/library/time.html#time.strftime
value_template: "{{ as_timestamp(strptime(value_json['time'], '%Y-%m-%dT%H:%M:%S')) | timestamp_custom('%H:%M:%S') }}"
unique_id: growatt_time
name: Growatt - Time
icon: mdi:clock-digital
state_topic: energy/growatt
value_template: >
{% if (value_json['values']['pvstatus'] | int == 0) %}
Waiting
{% elif (value_json['values']['pvstatus'] | int == 1) %}
Normal
{% elif (value_json['values']['pvstatus'] | int == 2) %}
Fault
{% elif (value_json['values']['pvstatus'] | int == 5) %}
Generating PV Power
{% elif (value_json['values']['pvstatus'] | int == 6) %}
Battery Mode
{% else %}
Unknown
{% endif %}
unique_id: growatt_status
name: Growatt - State
icon: mdi:power-settings
state_class: "measurement"
state_topic: energy/growatt
value_template: "{{ value_json['values']['pv1watt'] | int / 10 }}"
unique_id: growatt_string1_watt
device_class: power
unit_of_measurement: "W"
name: Growatt - String 1 (Watt)
state_class: "measurement"
state_topic: energy/growatt
value_template: "{{ value_json['values']['pv1voltage'] | int / 10 }}"
unique_id: growatt_string1_voltage
device_class: voltage
unit_of_measurement: "V"
name: Growatt - String 1 (Voltage)
state_class: "measurement"
state_topic: energy/growatt
value_template: "{{ value_json['values']['pv1current'] | int / 10 }}"
unique_id: growatt_string1_current
device_class: current
unit_of_measurement: "A"
name: Growatt - String 1 (Current)
state_class: "measurement"
state_topic: energy/growatt
value_template: "{{ value_json['values']['pv2watt'] | int / 10 }}"
unique_id: growatt_string2_watt
device_class: power
unit_of_measurement: "W"
name: Growatt - String 2 (Watt)
icon: mdi:solar-power
state_class: "measurement"
state_topic: energy/growatt
value_template: "{{ value_json['values']['pv2voltage'] | int / 10 }}"
unique_id: growatt_string2_voltage
device_class: voltage
unit_of_measurement: "V"
name: Growatt - String 2 (Voltage)
state_class: "measurement"
state_topic: energy/growatt
value_template: "{{ value_json['values']['pv2current'] | int / 10 }}"
unique_id: growatt_string2_current
device_class: current
unit_of_measurement: "A"
name: Growatt - String 2 (Current)
state_class: "measurement"
state_topic: energy/growatt
value_template: "{{ value_json['values']['pvpowerin'] | int / 10000 }}"
unique_id: growatt_actual_input_power
device_class: power
unit_of_measurement: "kW"
name: Growatt - Input watt (Actual)
state_class: "measurement"
state_topic: energy/growatt
value_template: "{{ value_json['values']['pvpowerout'] | int / 10 }}"
unique_id: growatt_actual_output_power
device_class: power
unit_of_measurement: "W"
name: Growatt - Output watt (Actual)
state_class: "measurement"
state_topic: energy/growatt
value_template: "{{ value_json['values']['pvfrequentie'] | int / 100 }}"
unique_id: growatt_grid_frequency
unit_of_measurement: "Hz"
name: Growatt - Grid frequency
state_class: "measurement"
icon: mdi:waveform
state_topic: energy/growatt
value_template: "{{ value_json['values']['pvgridvoltage'] | int / 10 }}"
unique_id: growatt_phase_voltage
device_class: voltage
unit_of_measurement: "V"
name: Growatt - Phase voltage
state_class: "measurement"
state_topic: energy/growatt
value_template: "{{ value_json['values']['pvenergytoday'] | int / 10 }}"
unique_id: growatt_generated_energy_today
device_class: energy
unit_of_measurement: "kWh"
name: Growatt - Generated energy (Today)
state_class: "measurement"
icon: mdi:solar-power
state_topic: energy/growatt
value_template: "{{ value_json['values']['pvenergytotal'] | int / 10 }}"
unique_id: growatt_generated_energy_total
device_class: energy
unit_of_measurement: "kWh"
name: Growatt - Generated energy (Total)
state_class: "total_increasing"
icon: mdi:solar-power
state_topic: energy/growatt
value_template: "{{ value_json['values']['pactouserr'] | int / 10 }}"
unique_id: growatt_energy_from_grid_actual
device_class: energy
unit_of_measurement: "W"
name: Growatt - Energy from Grid (Actual)
state_class: "measurement"
icon: mdi:waveform
state_topic: energy/growatt
value_template: "{{ value_json['values']['pactogridr'] | int / 10 }}"
unique_id: growatt_energy_to_grid_actual
device_class: energy
unit_of_measurement: "W"
name: Growatt - Energy to Grid (Actual)
state_class: "measurement"
icon: mdi:waveform
state_topic: energy/growatt
value_template: "{{ value_json['values']['p1charge1'] | int / 10000 }}"
unique_id: growatt_energy_to_batteryl
device_class: energy
unit_of_measurement: "kWh"
name: Growatt - Energy to Battery (Actual)
state_class: "measurement"
icon: mdi:waveform
state_topic: energy/growatt
value_template: "{{ value_json['values']['pdischarge1'] | int / 10000 }}"
unique_id: growatt_energy_from_batteryl
device_class: energy
unit_of_measurement: "kWh"
name: Growatt - Energy from Battery (Actual)
state_class: "measurement"
icon: mdi:waveform
state_topic: energy/growatt
value_template: "{{ value_json['values']['plocaloadtot'] | int / 10 }}"
unique_id: growatt_energy_total_load_actual
device_class: energy
unit_of_measurement: "W"
name: Growatt - Total Enegry Usage (Actual)
state_class: "total_increasing"
icon: mdi:waveform
state_topic: energy/growatt
value_template: "{{ value_json['values']['epv1today'] | int / 10 }}"
unique_id: growatt_string1_today
device_class: energy
unit_of_measurement: "kWh"
name: Growatt - Today Enegry String1
state_class: "measurement"
icon: mdi:waveform
state_topic: energy/growatt
value_template: "{{ value_json['values']['epv1total'] | int / 10 }}"
unique_id: growatt_string1_total
device_class: energy
unit_of_measurement: "kWh"
name: Growatt - Total Enegry String1
state_class: "total_increasing"
icon: mdi:waveform
state_topic: energy/growatt
value_template: "{{ value_json['values']['epv2today'] | int / 10 }}"
unique_id: growatt_string2_today
device_class: energy
unit_of_measurement: "kWh"
name: Growatt - Today Enegry String2
state_class: "measurement"
icon: mdi:waveform
state_topic: energy/growatt
value_template: "{{ value_json['values']['epv2total'] | int / 10 }}"
unique_id: growatt_string2_total
device_class: energy
unit_of_measurement: "kWh"
name: Growatt - Total Enegry String2
state_class: "total_increasing"
icon: mdi:waveform
state_topic: energy/growatt
value_template: "{{ value_json['values']['etouser_tod'] | int / 10 }}"
unique_id: growatt_energy_grid_today
device_class: energy
unit_of_measurement: "kWh"
name: Growatt - Energy from Grid Today
state_class: "measurement"
icon: mmdi:transmission-tower-export
state_topic: energy/growatt
value_template: "{{ value_json['values']['etouser_tot'] | int / 10 }}"
unique_id: growatt_energy_grid_total
device_class: energy
unit_of_measurement: "kWh"
name: Growatt - Energy from Grid Total
state_class: "total_increasing"
icon: mmdi:transmission-tower-export
state_topic: energy/growatt
value_template: "{{ value_json['values']['elocalload_tod'] | int / 10 }}"
unique_id: growatt_total_energy_lead_today
device_class: energy
unit_of_measurement: "kWh"
name: Growatt - Total Enegry Load Today
state_class: "measurement"
icon: mdi:waveform
state_topic: energy/growatt
value_template: "{{ value_json['values']['SOC'] | int }}"
unique_id: growatt_battery_stetement_of_charge
device_class: energy
unit_of_measurement: "%"
name: Growatt - Battery Charge %
state_class: "measurement"
icon: mdi:battery-charging-100
state_topic: energy/growatt
value_template: "{{ value_json['values']['elocalload_tot'] | int / 10 }}"
unique_id: growatt_lifetimeload_consumtion
device_class: energy
unit_of_measurement: "kWh"
name: Growatt - Lifetime Load Consumption
state_class: "total_increasing"
icon: mdi:waveform
state_topic: energy/growatt
value_template: "{{ value_json['values']['vbat'] | int / 10 }}"
unique_id: growatt_battery_voltage
device_class: energy
unit_of_measurement: "V"
name: Growatt - Battery Voltage
state_class: "measurement"
icon: mdi:battery-charging-100
state_topic: energy/growatt
value_template: "{{ value_json['values']['edischarge1_tod'] | int / 10 }}"
unique_id: growatt_discharged_today
device_class: energy
unit_of_measurement: "kWh"
name: Growatt - Battery Discharged Today
state_class: "measurement"
icon: mdi:battery-charging-wireless-10
state_topic: energy/growatt
value_template: "{{ value_json['values']['edischarge1_tot'] | int / 10 }}"
unique_id: growatt_discharged_total
device_class: energy
unit_of_measurement: "kWh"
name: Growatt - Battery Discharged Total
state_class: "total_increasing"
icon: mdi:battery-charging-wireless-10
state_topic: energy/growatt
value_template: "{{ value_json['values']['eharge1_tot'] | int / 10 }}"
unique_id: growatt_charged_total
device_class: energy
unit_of_measurement: "kWh"
name: Growatt - Battery Charged Total
state_class: "total_increasing"
icon: mdi:battery-charging-60
state_topic: energy/growatt
value_template: "{{ value_json['values']['eharge1_tod'] | int / 10 }}"
unique_id: growatt_charged_today
device_class: energy
unit_of_measurement: "kWh"
name: Growatt - Battery Charged Today
state_class: "measurement"
icon: mdi:battery-charging-60
state_topic: energy/growatt
value_template: "{{ value_json['values']['etogrid_tot'] | int / 10 }}"
unique_id: growatt_energy_to_grid_total
device_class: energy
unit_of_measurement: "kWh"
name: Growatt - Energy to Grid (Total)
state_class: "total_increasing"
icon: mdi:battery-charging-60