From 00cdf707ee14e1536772de1ec9c5c0ce61510ea4 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Thu, 24 Oct 2024 21:15:38 +0000 Subject: [PATCH] Auto-generate modbus_sungrow_second_inverter_experimental.yaml --- ..._sungrow_second_inverter_experimental.yaml | 69 ++++++++++--------- 1 file changed, 35 insertions(+), 34 deletions(-) diff --git a/modbus_sungrow_second_inverter_experimental.yaml b/modbus_sungrow_second_inverter_experimental.yaml index 215f693..247e3c0 100644 --- a/modbus_sungrow_second_inverter_experimental.yaml +++ b/modbus_sungrow_second_inverter_experimental.yaml @@ -1,9 +1,10 @@ # Home Assistant Sungrow inverter integration # https://github.com/mkaiser/Sungrow-SHx-Inverter-Modbus-Home-Assistant # by Martin Kaiser -# last update: 2024-10-22 # -# Note: This YAML file will only work with Home Assistant >= 2023.10 +# last update: 2024-10-24 (2) +# +# Note: This YAML file will only work with Home Assistant >= 2024.10 modbus: - name: SungrowSHx 2 @@ -185,7 +186,7 @@ modbus: state_class: measurement scale: 0.1 scan_interval: 10 - + - name: Reactive power 2 unique_id: sg_reactive_power_2 device_address: !secret sungrow_modbus_slave_inv2 @@ -224,7 +225,7 @@ modbus: device_class: frequency state_class: measurement scale: 0.01 - scan_interval: 10 + scan_interval: 10 #https://www.photovoltaikforum.com/thread/166134-daten-lesen-vom-sungrow-wechselrichtern-modbus/?pageNo=13 #Meter Active Power: 5601-5602 S32 W (Energiezähler Wirkleistung) @@ -347,7 +348,7 @@ modbus: address: 5725 # reg 5726 input_type: input data_type: int32 - # TODO is this bad? --> more testing required swap: word + swap: word precision: 0 unit_of_measurement: W device_class: power @@ -2565,7 +2566,7 @@ automation: variables: sg_start: 0xCF sg_stop: 0xCE - action: + actions: - action: modbus.write_register data_template: hub: SungrowSHx @@ -2589,7 +2590,7 @@ automation: condition: - condition: template value_template: "{{ not is_state('sensor.sungrow_inverter_state_2', 'unavailable') }}" - action: + actions: - action: input_select.select_option target: entity_id: input_select.set_sg_2_inverter_run_mode @@ -2610,7 +2611,7 @@ automation: entity_id: - input_number.set_sg_2_max_soc condition: [] - action: + actions: - action: modbus.write_register data_template: hub: SungrowSHx @@ -2627,7 +2628,7 @@ automation: entity_id: - sensor.max_soc_2 condition: [] - action: + actions: - action: input_number.set_value target: entity_id: input_number.set_sg_2_max_soc @@ -2643,7 +2644,7 @@ automation: entity_id: - input_number.set_sg_2_min_soc condition: [] - action: + actions: - action: modbus.write_register data_template: hub: SungrowSHx @@ -2660,7 +2661,7 @@ automation: entity_id: - sensor.min_soc_2 condition: [] - action: + actions: - action: input_number.set_value target: entity_id: input_number.set_sg_2_min_soc @@ -2676,7 +2677,7 @@ automation: entity_id: - input_number.set_sg_2_reserved_soc_for_backup condition: [] - action: + actions: - action: modbus.write_register data_template: hub: SungrowSHx @@ -2693,7 +2694,7 @@ automation: entity_id: - sensor.reserved_soc_for_backup_2 condition: [] - action: + actions: - action: input_number.set_value target: entity_id: input_number.set_sg_2_reserved_soc_for_backup @@ -2713,7 +2714,7 @@ automation: ems_forced_charge: 0xAA ems_forced_discharge: 0xBB ems_stop_default: 0xCC - action: + actions: - action: modbus.write_register data_template: hub: SungrowSHx @@ -2741,7 +2742,7 @@ automation: condition: - condition: template value_template: "{{ not is_state('sensor.battery_forced_charge_discharge_cmd_2', 'unavailable') }}" - action: + actions: - action: input_select.select_option target: entity_id: input_select.set_sg_2_battery_forced_charge_discharge_cmd @@ -2763,7 +2764,7 @@ automation: ems_mode_external: 3 ems_mode_vpp: 4 ems_mode_microgrid: 8 - action: + actions: - action: modbus.write_register data_template: hub: SungrowSHx @@ -2795,7 +2796,7 @@ automation: condition: - condition: template value_template: "{{ not is_state('sensor.export_power_limit_mode_raw_2', 'unavailable') }}" - action: + actions: - action: input_select.select_option target: entity_id: input_select.set_sg_2_export_power_limit_mode @@ -2819,7 +2820,7 @@ automation: variables: export_limit_enable: 0xAA export_limit_disable: 0x55 - action: + actions: - action: modbus.write_register data_template: hub: SungrowSHx @@ -2843,7 +2844,7 @@ automation: entity_id: - sensor.export_power_limit_2 condition: [] - action: + actions: - action: input_number.set_value target: entity_id: input_number.set_sg_2_export_power_limit @@ -2859,7 +2860,7 @@ automation: entity_id: - input_number.set_sg_2_export_power_limit condition: [] - action: + actions: - action: modbus.write_register data_template: hub: SungrowSHx @@ -2878,7 +2879,7 @@ automation: condition: - condition: template value_template: "{{ not is_state('sensor.ems_mode_selection_2', 'unavailable') }}" - action: + actions: - action: input_select.select_option target: entity_id: input_select.set_sg_2_ems_mode @@ -2894,7 +2895,7 @@ automation: entity_id: - input_number.set_sg_2_forced_charge_discharge_power condition: [] - action: + actions: - action: modbus.write_register data_template: hub: SungrowSHx @@ -2911,7 +2912,7 @@ automation: entity_id: - sensor.battery_forced_charge_discharge_power_2 condition: [] - action: + actions: - action: input_number.set_value target: entity_id: input_number.set_sg_2_forced_charge_discharge_power @@ -2927,7 +2928,7 @@ automation: entity_id: - input_number.set_sg_2_battery_max_charge_power condition: [] - action: + actions: - action: modbus.write_register data_template: hub: SungrowSHx @@ -2944,7 +2945,7 @@ automation: entity_id: - sensor.battery_max_charge_power_2 condition: [] - action: + actions: - action: input_number.set_value target: entity_id: input_number.set_sg_2_battery_max_charge_power @@ -2960,7 +2961,7 @@ automation: entity_id: - input_number.set_sg_2_battery_max_discharge_power condition: [] - action: + actions: - action: modbus.write_register data_template: hub: SungrowSHx @@ -2977,7 +2978,7 @@ automation: entity_id: - sensor.battery_max_discharge_power_2 condition: [] - action: + actions: - action: input_number.set_value target: entity_id: input_number.set_sg_2_battery_max_discharge_power @@ -2993,7 +2994,7 @@ automation: entity_id: - input_number.set_sg_2_battery_charging_start_power condition: [] - action: + actions: - action: modbus.write_register data_template: hub: SungrowSHx @@ -3010,7 +3011,7 @@ automation: entity_id: - sensor.battery_charging_start_power condition: [] - action: + actions: - action: input_number.set_value target: entity_id: input_number.set_sg_2_battery_charging_start_power @@ -3026,7 +3027,7 @@ automation: entity_id: - input_number.set_sg_2_battery_discharging_start_power condition: [] - action: + actions: - action: modbus.write_register data_template: hub: SungrowSHx @@ -3043,7 +3044,7 @@ automation: entity_id: - sensor.battery_discharging_start_power_2 condition: [] - action: + actions: - action: input_number.set_value target: entity_id: input_number.set_sg_2_battery_discharging_start_power @@ -3061,7 +3062,7 @@ automation: condition: - condition: template value_template: "{{ not is_state('sensor.global_mpp_scan_manual_raw_2', 'unavailable') }}" - action: + actions: - action: input_select.select_option target: entity_id: input_select.set_sg_2_global_mpp_scan_manual @@ -3085,7 +3086,7 @@ automation: variables: export_limit_enable: 0xAA export_limit_disable: 0x55 - action: + actions: - action: modbus.write_register data_template: hub: SungrowSHx @@ -3110,7 +3111,7 @@ automation: # - platform: state # entity_id: # - binary_sensor.cheapest_hours_for_charging_timer -# action: +# actions: # - choose: # - conditions: # - condition: state