-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automation for switching EMS Mode and battery forced charge // maybe tibber as trigger #50
Comments
What I#ve done so far looks like:
|
This is a quiet good start . There was not much for me to add :) in the visual editor the aliases are very helpful. Please check thoroughly before testing
|
Unfortunately, if you switch to visual mode all the !secret s and nice hexadecimal values are getting lost :/ |
Wow, thanks a lot again! I configured the automation in my automation.yaml and try to avoid the visual mode in this case. I had to change the " to ' but since that it works like a charm : ) Does it matter if there ist one more service: modbus.write_register after the delay like My next steps will be to figure out how the trigger can be smarter and pays attention to the tibber-price forecast to choose the cheapest spot to start the "power-hour". Including the pv-forecast would be lovely. I checked out EMHASS for that, but I failed to configure the tibber-part with that... If you are interested in tibber or need somebody to test with it, just give me a call. Wiesbaden isn't that far away : ) |
I would recommend that to be double safe that you do not accidently force charge/discharge the battery, when EMS mode reset to self-consumption mode did not work (theoretically) I had a quick peek into Tibber. Where can I see the momentarily prices even if I am not registered? |
I don't know if https://developer.tibber.com/explorer is what you are searching for?! There you can load a demo token. |
I'm not that experienced in HA automations. Mostly use Node-Red. |
That makes sence...especially if you want to change the mode: single to mode: queued or for more than just one automation. In every case you have to check the state berfore the action, I guess. |
This https://github.com/custom-components/nordpool could be an easy way to display the spot market price instead of the tibber API. Have you seen this before? |
Offtopic, but which mode/combo should I use to only use energy from the battery, so the grid stayed at zero? This is for moment when tariffs are high and I want to run my house off battery. |
Your EMS mode selection should be fine wirth 'Self-consumption mode (default)' to feed the load out of the battery. Changing the Battery forced charge discharge cmd to Stop (default) also is recommeded by mkaiser "to be double save that you do not accidently force charge/discharge the battery". |
I just figured out my battery is failing, error 833. Raised separate issue #60 |
thank you for the links. I will consider switching to some of these new "energy players", as soon as I can remotely control my heat pump :) Will close the issue now. Documentation to be done is marked in #38 (will be happy if someone would write some sentences about that, so i can just merge a PR :) |
I'm struggeling to get this working on my installation. The commands are being sent successfully and the sensor readings do change. Battery power goes to zero and all power is drawn from grid, but the battery does not charge. Any hints? |
Hey,
|
Ah, thanks, (4) forced charge discharge power was missing, set that to 5000 for my SH80RT and it immediately swallows power from grid ;) Thank you. Now for some clever automation based on tibber price and pv forecast, but that's not n scope of this project. |
Glad I could help :) At the beginning I also tried to build a füll Automation. Right know I'm fine with my helper based Semi-Automation, because there are to many changing conditions day by day (IMO). 'Einkaufsdauer' (duration of the purchase) und 'Einkaufspreis' (purchase price) are to be set manually and are part of my automation.
|
Hi all, I came across this topic as I was searching for an automation to load my battery from the grid. I have a Sungrow inverter and battery. And I also use the mkaiser integration in HA. Since last week I have Tibber as my energy provider. Unfortunately I am not good in YAML. I tried rebuilding the automation with the visual editor but I am not able to get the same results. Can someone help me out here? I need a helper which is pulling the current price from tibber and that helper than triggers the automation (setting EMS mode, etc.), correct? Thanks, JJ. |
Nevermind, I got it. Thanks! |
Hey My solution-sequence is like yours, but between all modbus-steps I have a delay of 15 sec. Is this necassery or not? Than another question. You set the "duration of the purchase". I thaught it ist meaningful to have also a contition for max SoC for the battery an stop than. What is your experience with the time? Knows somebody a solution to stop the delay to reset the Sungrow? |
@GrandAmmor Nice idea controlling this with purchase price and purchase duration. I recently came up with this approach in case you want to have it a bit more automated: I charge in the cheapest hours, consume from battery when it's expensive, e.g. +25% above purchase price. In between, it would not pay off to consume battery since there is always some loss in a charge cycle so I just purchase from grid. In case it helps, here it comes: https://github.com/martinknechtel/sungrow-tibber-home-assistant |
Hey guys, I learned a lot about this great integration of my SH10RT-v112 in HA. Thanks for your constructive discussion : )
Now I'm trying to write a automation which can
switch
the ems mode from sensor.ems_mode_selection_raw = 0 (Self-consumption mode) to 2 (Forced mode)
AND
the battery forced charge/dischrage cmd sensor.battery_forced_charge_discharge_cmd_raw = 0xCC (Stop) to 0xAA (Forced charge)
if
my tibber-integration-sensor sensor.electricity_price_home states a value like 0,30 EUR/kWh.
After one hour the switch should change back to self consumption mode and forced mode stop. Can you help me with the yaml for that "Modbus:write register"-action?
Maybe there will be smarter versions but I think this would be a good start...?!
The text was updated successfully, but these errors were encountered: