Sc00bs Posted July 19, 2023 Share Posted July 19, 2023 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. Garthox 1 Quote Link to comment Share on other sites More sharing options...
rgt.dnl Posted May 4 Share Posted May 4 @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 Quote Link to comment Share on other sites More sharing options...
rgt.dnl Posted May 4 Share Posted May 4 @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 Quote Link to comment Share on other sites More sharing options...
Sc00bs Posted May 6 Author Share Posted May 6 That's awesome @rgt.dnl glad you got it to work I am no programmer and usually have to rely on Chatgpt for bad programming advice, lol Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.