Growatt Solar PV + Solar Assistant + MQTT

Hi everyone,
Hoping someone might be able to help.
I’ve got Solar PV along with Growatt batteries with a Growatt SPA inverter. I’ve had solar assistant installed for around a year and connected it to Home Assistant via MQTT.

I’m looking to set up some automations, rather then having to use the Growatt App, however not having much luck. I have the following controls and sensors showing:


I’m thinking if I want to discharge to the grid, I would select ‘Grid’ from ‘Growatt SPA Output Source Priority’ - However when I do this it just reverts back to what it is currently on, so in this case ‘Load’.

I want to work out how to do a charge/discharge via HA before I start with actual automations.

Any help greatly appreciated.

I set up this automation, which triggered, however did not start charging the battery. The inverter remained on ‘Load First’ instead of changing to ‘Battery First’.

Hi @DaveUK83,

Looks like you are not using the beta version of Solar Assistant, I had to use because I have a Growatt inverter. On the beta, they moved the names from work mode priority to output source priority (and probably something in the backend) and the automations have been very reliable for me.
Maybe it’s worth a shot?

Here’s mine:

To confirm: Load first = House Load first, Battery first = battery charging first, Grid first = export first.

1 Like

Ah thank you! Ive been toying with joining the beta program, guess this has just made my mind up!
I shall report back afterwards.

1 Like

I don’t suppose you could show me an example of one of your automations, just so I can make sure i’m using the correct entities etc.
Thanks in advance

Sure thing, this is what I have and it works well:

alias: Test Select 1
description: ""
trigger:
  - platform: time
    at: "23:08:00"
condition: []
action:
  - service: select.select_option
    metadata: {}
    data:
      option: Battery first
    target:
      entity_id: select.growatt_spa_work_mode_priority
mode: single

Let me know how it goes.

1 Like

Thank you.
I updated to the latest beta and did a quick automation, i’m getting there slowly.
This was what I set in the GUI


It didn’t work, however if I ran the automation, it started charging the battery, so seems i’m getting somewhere!
Think I will need to have a play around. The end goal is to use the Ohme addon, to charge the battery when I have a 7.5p per kWh when charging the EV. Just want to get the basics right first though.

1 Like

There’s a learning curve but you will get there eventually, any issues , let me know!

1 Like

Sorry for jumping on an old thread. I’m trying to do similar here so searching threads that may help me.
Maybe a daft question but did you enable “Allow Setting Changes” in Solar Assistant>Configuration>Advanced MQTT?

Just checked and I do have than enabled.

1 Like