home-assistant-solaredge-modbus icon indicating copy to clipboard operation
home-assistant-solaredge-modbus copied to clipboard

Control "Storage Default Mode" Through Automation

Open dsmck58 opened this issue 1 year ago • 3 comments

Apologies if this is the wrong way to do this but I have a follow on question. I have managed to get to a similar stage setting up my automation. However, whenever I select a different battery control mode e.g. Charge from PV, it works for a very short period (seconds to minutes) and then automatically switches back to "Maximise self consumption". I have tried everything I can think of but no luck.

the same thing happens when I select the charge mode "manually" from the Select grouping on the Overview tab .

Getting very frustrated so would welcome any help.

Thanks

An example while testing an automation this morning. I set the automation to begin charging at 7:30 and it started at 7:39 and the automation was set to revert at 12:00. At 7:45, it just switched back to self consumption with no intervention or change.

Changed to Maximize self consumption 07:45:18 - 3 hours ago Changed to Charge from PV and AC triggered by service Select: Select 07:39:58 - 3 hours ago

Discussed in https://github.com/binsentsu/home-assistant-solaredge-modbus/discussions/199

Originally posted by Darkclad117 September 17, 2023 Hi all,

I've been using this project for some time and now would like to start controlling my invertor. I've completed the setup and can read all the data and change the settings from the UI, however I'm stuck when trying to do this from an automation.

How can I set the "select.solaredge_storage_default_mode" entity from an automation? I've tried using Call Service from the automation however I can't see the entity in the Automation UI. Do you have any advise please?

Automation Dashboard

Thank you to everyone who has contributed to this project, I'm very grateful!

dsmck58 avatar Oct 10 '23 16:10 dsmck58

This has been happening to me for the last week also. I've tried everything I can think of, but it just keeps happening.

bradrushworth avatar Oct 24 '23 11:10 bradrushworth

Hey Brad. I was the same and Solaredge never responded to the query I raised. I just kept trying to override it and then it just stopped happening. No idea what I did I'm afraid so I am no use to you whatsoever. I wish I could be more helpful.

dsmck58 avatar Oct 24 '23 11:10 dsmck58

It seems that:

Storage Default Mode needs to be set to "Maximize self consumption" or whatever you need, first. Storage Control Mode needs to be set to "Remote Control" second. Storage Remote Command Mode finally needs to be set to "Charge from PV first" or whatever you want, last.

I had these in a single Scene and this caused it to break. If I don't set the Storage Default Mode and Storage Control Mode in the scene settings, and just set the Storage Remote Command Mode only, then it seems to work.

Finally, note that Storage Remote Command Timeout is usually set to 3600s, which means after an hour the above command will automatically reset from the current Storage Remote Command Mode to whatever is in the Storage Default Mode. This is often desirable behaviour, so I think this is the right way to tackle this issue i.e. if Home Assistant crashes on you, the battery goes back to something sensible in a hour.

bradrushworth avatar Nov 08 '23 10:11 bradrushworth