gdwaterworth / Home-Assistant---E-Linter-Logger---Sunsynk

36 stars 9 forks source link

Change guide from Region1 to Region2 #53

Closed CraigBoswell closed 9 months ago

CraigBoswell commented 9 months ago

Apologies if there is a guide already which I have not found, but are there instructions for changes required to move from R1 to R2? The instructions I find are for new installations, and not sure what should be deleted from existing setup to prepare for R2 setup. Was really hoping to keep entities with same names etc. so automations can start to flow again. Any assistance greatly appreciated. I have a single Sunsynk 8.8kW inverter which was communicating 100% before the Region change.

t0mtaylor commented 9 months ago

@CraigBoswell have you changed the region attribute from 1 to 2 in the HA config?

Here is mine below in the Home Assistant Config, set to region 2

############################################
##### Main Config Sensor
############################################
  - sensor:
      - name: "SunSynk Config"
        state: "Config Sensor"
        unique_id: "sensor.sunsynk_config"
        attributes:
          login: !secret sunsynk_user
          password: !secret sunsynk_password
          region: 2
          invertor_list_opt: 0
          return_items: 10
          sn_data: !secret sunsynk_sn_data
          sn_flow: !secret sunsynk_sn_flow
          unit_cost: 0.45
          force_short_delay: "true"
CraigBoswell commented 9 months ago

Hi @t0mtaylor thanks for response. I decided to delete the old sensor and config files, so the new import did have Region: 2 Only difference to yours is force_short_delay: "false" Not sure if that makes any difference?

t0mtaylor commented 9 months ago

@CraigBoswell thats good so you should now be on region 2 👍

I changed force_short_delay key to true value to test some debug errors, which occur when you have a plant list containing more than one plant.

if your have a single plant which updates within 60 seconds you can enable this (true), otherwise disable it (false)

force_short_delay - If you do not have access to list gateways and you are certain your update time is set to 60 seconds, set to "true"
CraigBoswell commented 9 months ago

Thanks @t0mtaylor , I have had some success this evening and now see data flowing again. Need to do some tidying up, then want to give the automations a go to control the inverter based on loadshedding and/or battery etc., but that will be a next week problem. Tanks again,