Skip to content

Commit

Permalink
Fix missing underscore in automation_sungrow_global and automation_su…
Browse files Browse the repository at this point in the history
…ngrow_inverter (#387)
  • Loading branch information
mkaiser authored Oct 25, 2024
1 parent 00cdf70 commit b7d857e
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 31 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/auto-generate-second-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
sed -i 's/sungrow_modbus_slave/sungrow_modbus_slave_inv2/g' modbus_sungrow_second_inverter_experimental.yaml
sed -i 's/set_sg_/set_sg_2_/g' modbus_sungrow_second_inverter_experimental.yaml
sed -i 's/sg_set_/sg_2_set_/g' modbus_sungrow_second_inverter_experimental.yaml
sed -i 's/- id: "automation_sungrow_global_/- id: "automation_sungrow_global_2/g' modbus_sungrow_second_inverter_experimental.yaml
sed -i 's/- id: "automation_sungrow_inverter_/- id: "automation_sungrow_inverter_2/g' modbus_sungrow_second_inverter_experimental.yaml
sed -i 's/- id: "automation_sungrow_global_/- id: "automation_sungrow_global_2_/g' modbus_sungrow_second_inverter_experimental.yaml
sed -i 's/- id: "automation_sungrow_inverter_/- id: "automation_sungrow_inverter_2_/g' modbus_sungrow_second_inverter_experimental.yaml
sed -i 's/alias: "sungrow inverter/alias: "sungrow inverter 2/g' modbus_sungrow_second_inverter_experimental.yaml
- name: Append _2 to unique_ids
Expand Down
2 changes: 1 addition & 1 deletion modbus_sungrow.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Home Assistant Sungrow inverter integration
# https://github.com/mkaiser/Sungrow-SHx-Inverter-Modbus-Home-Assistant
# by Martin Kaiser
#
#
# last update: 2024-10-24 (2)
#
# Note: This YAML file will only work with Home Assistant >= 2024.10
Expand Down
56 changes: 28 additions & 28 deletions modbus_sungrow_second_inverter_experimental.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Home Assistant Sungrow inverter integration
# https://github.com/mkaiser/Sungrow-SHx-Inverter-Modbus-Home-Assistant
# by Martin Kaiser
#
#
# last update: 2024-10-24 (2)
#
# Note: This YAML file will only work with Home Assistant >= 2024.10
Expand Down Expand Up @@ -2555,7 +2555,7 @@ input_select:
# note: If you change a value by the sliders, it will take up to 60 seconds until the state variables are updated
# Unfortunately, I could not find a way to "force update" modbus registers, yet...
automation:
- id: "automation_sungrow_inverter_2state"
- id: "automation_sungrow_inverter_2_state"
alias: "sungrow inverter 2 state"
description: "Enables/ stops the inverter"
trigger:
Expand All @@ -2580,7 +2580,7 @@ automation:
{% endif %}
mode: single

- id: "automation_sungrow_inverter_2state_input_selector_update"
- id: "automation_sungrow_inverter_2_state_input_selector_update"
alias: "sungrow inverter 2 enable/ stop input selector update"
description: "Updates enable/ stops input selector"
trigger:
Expand All @@ -2603,7 +2603,7 @@ automation:
{% endif %}
mode: single

- id: "automation_sungrow_inverter_2update_max_soc"
- id: "automation_sungrow_inverter_2_update_max_soc"
alias: "sungrow inverter 2 update max SoC"
description: "Updates Sungrow max Soc holding register"
trigger:
Expand All @@ -2620,7 +2620,7 @@ automation:
value: "{{ states('input_number.set_sg_2_max_soc') | int *10}}"
mode: single

- id: "automation_sungrow_inverter_2update_max_soc_input_slider_update"
- id: "automation_sungrow_inverter_2_update_max_soc_input_slider_update"
alias: "sungrow inverter 2 max SoC input slider update"
description: "Updates Sungrow max Soc input slider"
trigger:
Expand All @@ -2636,7 +2636,7 @@ automation:
value: "{{ states('sensor.max_soc_2') }}"
mode: single

- id: "automation_sungrow_inverter_2update_min_soc"
- id: "automation_sungrow_inverter_2_update_min_soc"
alias: "sungrow inverter 2 update min SoC"
description: "Updates Sungrow min Soc holding register"
trigger:
Expand All @@ -2653,7 +2653,7 @@ automation:
value: "{{ states('input_number.set_sg_2_min_soc') | int *10}}"
mode: single

- id: "automation_sungrow_inverter_2update_min_soc_input_slider_update"
- id: "automation_sungrow_inverter_2_update_min_soc_input_slider_update"
alias: "sungrow inverter 2 min SoC input slider update"
description: "Updates Sungrow min Soc input slider"
trigger:
Expand All @@ -2669,7 +2669,7 @@ automation:
value: "{{ states('sensor.min_soc_2') }}"
mode: single

- id: "automation_sungrow_inverter_2update_reserved_soc_for_backup"
- id: "automation_sungrow_inverter_2_update_reserved_soc_for_backup"
alias: "sungrow inverter 2 update reserved soc for backup"
description: "Updates reserved SoC for backup register"
trigger:
Expand All @@ -2686,7 +2686,7 @@ automation:
value: "{{ states('input_number.set_sg_2_reserved_soc_for_backup') | int}}"
mode: single

- id: "automation_sungrow_inverter_2update_reserved_backup_soc_input_slider_update"
- id: "automation_sungrow_inverter_2_update_reserved_backup_soc_input_slider_update"
alias: "sungrow inverter 2 reserved backup SoC input slider update"
description: "Updates Sungrow reserved backup Soc input slider"
trigger:
Expand All @@ -2702,7 +2702,7 @@ automation:
value: "{{ states('sensor.reserved_soc_for_backup_2') }}"
mode: single

- id: "automation_sungrow_inverter_2update_battery_forced_charge_discharge_cmd"
- id: "automation_sungrow_inverter_2_update_battery_forced_charge_discharge_cmd"
alias: "sungrow inverter 2 update battery forced charge discharge cmd"
description: "Updates Sungrow holding register for battery forced charge discharge command"
trigger:
Expand Down Expand Up @@ -2732,7 +2732,7 @@ automation:
{% endif %}
mode: single

- id: "automation_sungrow_inverter_2update_battery_forced_charge_discharge_cmd_input_select_update"
- id: "automation_sungrow_inverter_2_update_battery_forced_charge_discharge_cmd_input_select_update"
alias: "sungrow inverter 2 update battery forced charge discharge cmd input select update"
description: "Updates Sungrow battery forced charge discharge cmd input select"
trigger:
Expand All @@ -2750,7 +2750,7 @@ automation:
option: "{{ states('sensor.battery_forced_charge_discharge_cmd_2') }}"
mode: single

- id: "automation_sungrow_inverter_2update_ems_mode"
- id: "automation_sungrow_inverter_2_update_ems_mode"
alias: "sungrow inverter 2 update EMS mode"
description: "Updates EMS mode"
trigger:
Expand Down Expand Up @@ -2786,7 +2786,7 @@ automation:
{% endif %}
mode: single

- id: "automation_sungrow_inverter_2export_power_limit_mode_update"
- id: "automation_sungrow_inverter_2_export_power_limit_mode_update"
alias: "sungrow inverter 2 export power limit mode update"
description: "Updates Enable/Disable for export power limit mode"
trigger:
Expand Down Expand Up @@ -2836,7 +2836,7 @@ automation:
{% endif %}
mode: single

- id: "automation_sungrow_inverter_2export_power_limit_update"
- id: "automation_sungrow_inverter_2_export_power_limit_update"
alias: "sungrow inverter 2 export power limit update"
description: "Updates export power limit slider"
trigger:
Expand All @@ -2852,7 +2852,7 @@ automation:
value: "{{ states('sensor.export_power_limit_2') }}"
mode: single

- id: "automation_sungrow_inverter_2set_export_power_limit"
- id: "automation_sungrow_inverter_2_set_export_power_limit"
alias: "sungrow inverter 2 export power limit"
description: "Sets export power limit"
trigger:
Expand All @@ -2869,7 +2869,7 @@ automation:
value: "{{ states('input_number.set_sg_2_export_power_limit') }}"
mode: single

- id: "automation_sungrow_inverter_2update_ems_mode_input_select_update"
- id: "automation_sungrow_inverter_2_update_ems_mode_input_select_update"
alias: "sungrow inverter 2 update EMS mode input select update"
description: "Updates EMS mode input select"
trigger:
Expand All @@ -2887,7 +2887,7 @@ automation:
option: "{{ states('sensor.ems_mode_selection_2') }}"
mode: single

- id: "automation_sungrow_inverter_2update_battery_forced_charge_discharge_power"
- id: "automation_sungrow_inverter_2_update_battery_forced_charge_discharge_power"
alias: "sungrow inverter 2 update battery forced charge discharge power"
description: "Sets battery forced charge discharge power"
trigger:
Expand All @@ -2904,7 +2904,7 @@ automation:
value: "{{ states('input_number.set_sg_2_forced_charge_discharge_power') | int}}"
mode: single

- id: "automation_sungrow_inverter_2update_battery_forced_charge_discharge_power_input_slider_update"
- id: "automation_sungrow_inverter_2_update_battery_forced_charge_discharge_power_input_slider_update"
alias: "sungrow inverter 2 update battery forced charge discharge power input slider update"
description: "Updates battery forced charge discharge power input slider"
trigger:
Expand All @@ -2920,7 +2920,7 @@ automation:
value: "{{ states('sensor.battery_forced_charge_discharge_power_2') }}"
mode: single

- id: "automation_sungrow_inverter_2update_battery_max_charge_power"
- id: "automation_sungrow_inverter_2_update_battery_max_charge_power"
alias: "sungrow inverter 2 update battery max charge power"
description: "Sets battery max charge power"
trigger:
Expand All @@ -2937,7 +2937,7 @@ automation:
value: "{{ states('input_number.set_sg_2_battery_max_charge_power') |float /10 |int}}"
mode: single

- id: "automation_sungrow_inverter_2update_battery_max_charge_power_input_slider_update"
- id: "automation_sungrow_inverter_2_update_battery_max_charge_power_input_slider_update"
alias: "sungrow inverter 2 update battery max charge power input slider update"
description: "Updates battery max charge power input slider"
trigger:
Expand All @@ -2953,7 +2953,7 @@ automation:
value: "{{ states('sensor.battery_max_charge_power_2') }}"
mode: single

- id: "automation_sungrow_inverter_2update_battery_max_discharge_power"
- id: "automation_sungrow_inverter_2_update_battery_max_discharge_power"
alias: "sungrow inverter 2 update battery max discharge power"
description: "Sets battery max discharge power"
trigger:
Expand All @@ -2970,7 +2970,7 @@ automation:
value: "{{ states('input_number.set_sg_2_battery_max_discharge_power') |float /10 |int}}"
mode: single

- id: "automation_sungrow_inverter_2update_battery_max_discharge_power_input_slider_update"
- id: "automation_sungrow_inverter_2_update_battery_max_discharge_power_input_slider_update"
alias: "sungrow inverter 2 update battery max discharge power input slider update"
description: "Updates battery max discharge power input slider"
trigger:
Expand All @@ -2986,7 +2986,7 @@ automation:
value: "{{ states('sensor.battery_max_discharge_power_2') }}"
mode: single

- id: "automation_sungrow_inverter_2update_battery_charging_start_power"
- id: "automation_sungrow_inverter_2_update_battery_charging_start_power"
alias: "sungrow inverter 2 update battery charging start power"
description: "Sets battery charging start power"
trigger:
Expand All @@ -3003,7 +3003,7 @@ automation:
value: "{{ states('input_number.set_sg_2_battery_charging_start_power') |float /10 |int}}"
mode: single

- id: "automation_sungrow_inverter_2update_battery_charging_start_power_input_slider_update"
- id: "automation_sungrow_inverter_2_update_battery_charging_start_power_input_slider_update"
alias: "sungrow inverter 2 update battery charging start power input slider update"
description: "Updates battery charging start power input slider"
trigger:
Expand All @@ -3019,7 +3019,7 @@ automation:
value: "{{ states('sensor.battery_charging_start_power') }}"
mode: single

- id: "automation_sungrow_inverter_2update_battery_discharging_start_power"
- id: "automation_sungrow_inverter_2_update_battery_discharging_start_power"
alias: "sungrow inverter 2 update battery discharging start power"
description: "Sets battery discharging start power"
trigger:
Expand All @@ -3036,7 +3036,7 @@ automation:
value: "{{ states('input_number.set_sg_2_battery_discharging_start_power') |float /10 | int}}"
mode: single

- id: "automation_sungrow_inverter_2update_battery_discharging_start_power_input_slider_update"
- id: "automation_sungrow_inverter_2_update_battery_discharging_start_power_input_slider_update"
alias: "sungrow inverter 2 update battery discharging start power input slider update"
description: "Updates battery discharging start power input slider"
trigger:
Expand All @@ -3052,7 +3052,7 @@ automation:
value: "{{ states('sensor.battery_discharging_start_power_2') }}"
mode: single

- id: "automation_sungrow_inverter_2global_mpp_scan_manual_update"
- id: "automation_sungrow_inverter_2_global_mpp_scan_manual_update"
alias: "sungrow inverter 2 global mpp scan manual update"
description: "Updates Enable/Disable for global mpp scan manual"
trigger:
Expand All @@ -3075,7 +3075,7 @@ automation:
{% endif %}
mode: single

- id: "automation_sungrow_global_2mpp_scan_manual"
- id: "automation_sungrow_global_2_mpp_scan_manual"
alias: "sungrow inverter 2 global mpp scan manual"
description: "Set global mpp scan manual"
trigger:
Expand Down

0 comments on commit b7d857e

Please sign in to comment.