diff --git a/.github/workflows/auto-generate-second-config.yml b/.github/workflows/auto-generate-second-config.yml index c62966d..1d98d81 100644 --- a/.github/workflows/auto-generate-second-config.yml +++ b/.github/workflows/auto-generate-second-config.yml @@ -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 diff --git a/modbus_sungrow.yaml b/modbus_sungrow.yaml index 0e09193..6a0fbef 100644 --- a/modbus_sungrow.yaml +++ b/modbus_sungrow.yaml @@ -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 diff --git a/modbus_sungrow_second_inverter_experimental.yaml b/modbus_sungrow_second_inverter_experimental.yaml index 247e3c0..c41a16f 100644 --- a/modbus_sungrow_second_inverter_experimental.yaml +++ b/modbus_sungrow_second_inverter_experimental.yaml @@ -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 @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: