Jump to content

Automatically adjusting inverter battery settings based on Eskom load shedding levels


Sc00bs

Recommended Posts

Hi Guys 

Have just done a video on adjusting your inverters battery settings based on the load shedding level being reported by ESP. 

You can customise as many different configurations as you want and switch between automatically based on the Load Shedding Level being reported by ESP. 

Please let me know what you think of the automation, am still working out how all this stuff works and not an expert by any means so all advise/suggestions are welcome. 

At the moment, the settings you can change are the work mode time zone SOC levels, the time zone - grid charge toggle  and the load/battery priority setting. 

 

 

Link to comment
Share on other sites

  • 9 months later...

@Sc00bs I am trying to get this working but for some reason the code is not firing in the automation. I notice that the code you have on screen is different to the one in the Google Doc. Could that be the reason my setup is not working? Here is my automation code/yaml:

alias: Load Shedding Scene Switcher
description: ""
trigger:
  - platform: state
    entity_id: input_text.test_loadshedding_level
condition: []
action:
  - choose:
      - conditions:
          - condition: template
            value_template: "{{ trigger.to_state.state in ['Stage 1', 'Stage 2'] }}"
        sequence:
          - service: scene.turn_on
            data: {}
            target:
              entity_id: scene.solar_high_stage_12
      - conditions:
          - condition: template
            value_template: "{{ trigger.to_state.state == 'Stage 3', 'Stage 4' }}"
        sequence:
          - service: scene.turn_on
            data: {}
            target:
              entity_id: scene.solar_high_stage_34
      - conditions:
          - condition: template
            value_template: "{{ trigger.to_state.state >= 'Stage 5', 'Stage 6' }}"
        sequence:
          - service: scene.turn_on
            data: {}
            target:
              entity_id: scene.solar_high_stage_56
      - conditions:
          - condition: template
            value_template: "{{ trigger.to_state.state >= 'No Load Shedding' }}"
        sequence:
          - service: scene.turn_on
            data: {}
            target:
              entity_id: scene.solar_high_stage_0
    default: []
mode: single
 

Link to comment
Share on other sites

@Sc00bs i got it to work. I had to fix the code a bit. See below:

alias: Load Shedding Scene Switcher
description: ""
trigger:
  - platform: state
    entity_id: input_select.test_loashedding_level
condition: []
action:
  - choose:
      - conditions:
          - condition: template
            value_template: "{{ trigger.to_state.state in ['Stage 1', 'Stage 2'] }}"
        sequence:
          - service: scene.turn_on
            data: {}
            target:
              entity_id: scene.solar_high_stage_12
      - conditions:
          - condition: template
            value_template: "{{ trigger.to_state.state in ['Stage 3', 'Stage 4'] }}"
        sequence:
          - service: scene.turn_on
            data: {}
            target:
              entity_id: scene.solar_high_stage_34
      - conditions:
          - condition: template
            value_template: "{{ trigger.to_state.state in ['Stage 5', 'Stage 6'] }}"
        sequence:
          - service: scene.turn_on
            data: {}
            target:
              entity_id: scene.solar_high_stage_56
      - conditions:
          - condition: template
            value_template: "{{ trigger.to_state.state in ['No Load Shedding'] }}"
        sequence:
          - service: scene.turn_on
            data: {}
            target:
              entity_id: scene.solar_high_stage_0
    default: []
mode: single
 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...