Using Target Rate Sensors with Solis Cloud Integration #809
Replies: 5 comments 12 replies
-
Updated on 2 April 2024 @ 16:48 BST (+01:00) - I added converting the charge slot times from GMT to local time as the integration gives them in GMT but the inverter needed them in local time. |
Beta Was this translation helpful? Give feedback.
-
Updated at 4 April 2024 @ 08:43 BST (+01:00) to fix the trigger and conditions. I found that the old ones were too noisy and resulted in multiple sets. |
Beta Was this translation helpful? Give feedback.
-
@CorithMalin82 Can you confirm that you are able to change the inverter settings with the script? I've seen lots of posts about "pulling " data from the inverter, but not controlling (without Modbus). I can't see how: Thanks! |
Beta Was this translation helpful? Give feedback.
-
OK, already have this setup, so just need to find the correct attributes to
link to the script.
…On Wed, 17 Apr 2024, 22:13 Jayesh Garg, ***@***.***> wrote:
@usbrit <https://github.com/usbrit> first of all congrats on your success.
Yes octopus is an energy provider so this belongs to their HA integration
to fetch the tiered rate so that schedule can be set dynamically.
Sorry I was not home so couldn't answer to your earlier posts.
—
Reply to this email directly, view it on GitHub
<#809 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMXTKQ2C3TBTBQQCVNUWMJ3Y53QWJAVCNFSM6AAAAABFNETYXGVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TCNBXHAYDC>
.
You are receiving this because you were mentioned.Message ID:
<BottlecapDave/HomeAssistant-OctopusEnergy/repo-discussions/809/comments/9147801
@github.com>
|
Beta Was this translation helpful? Give feedback.
-
I changed the target sensor to 3 hours continuous since the original message, so times are different.
What about the format issue? the API doesn't seem to like the |
Beta Was this translation helpful? Give feedback.
-
So I borrored a good bit from #284, but the Solis Inverter has three timeslots that can be configured to force charging from the grid. I followed the tutorial here to setup the Target Rate setting in the Octopus integration.
Originally, I configured the automation to look at the binary_sensor for when my
binary_sensor.octopus_energy_target_battery_charge_slots
changed state toon
, I would just start charging and the start and end times were set to thesensor.octopus_energy_electricity_18l2077993_1900013281497_current_rate
start
andend
attributes. I didn't have to worry about the off state since I'm setting the end time. And I was assuming theon
state would come on at the same time as thecurrent_rate.start
.This worked well, but I had one more issue... I don't run HomeAssistant 24/7. I will, but I don't now. Also, Solis Cloud will often go down, so I wanted the ability to set all three times as soon as they're calculated in case something happens where I can't set it in real time.
In the end, I ended up with this. You'll probably need to use the YAML editor as I had issues with the
true/false
states being interpretted as strings when using the UI mode to setup the trigger and condition. You can always use the UI mode then just get rid of the""
aroundtrue
andfalse
if that's easier.Trigger - Look for the
target_times_last_evaluated
to change (this seems to only change when new prices come out).The two triggers are important to me because I also hijack the first charge time slot if electricity rates every go under 0.02 GBP / kWh. So in case that happened, I just reset the values whenever the state of the binary_sensor turns on.
I've added a condition as we can't run this if
rates_incomplete
is set totrue
:Action - Use the SolisCloud integration to set the inverter's three charge slots. You can only do this with a service, so it's a bit verbose. Also, the mixed strings in the
config
for the service are like that for some reason.Hopefully that helps the next person out trying to get this configured with the Octopus integration.
Beta Was this translation helpful? Give feedback.
All reactions