britkat1980 / giv_tcp

TCP connection (from inverter) and MQTT implementation
71 stars 32 forks source link

Getting home assistant to pause discharge with an AIO #168

Open PaulHalloran opened 4 months ago

PaulHalloran commented 4 months ago

Hi, I'm trying to produce an automation to stop my car charging from my battery under certain conditions.

While I can set up similar automations to set the target SOC, e.g.

Device
GivTCP xxx Control

Action
Set value for GivTCP xxx Control GivTCP Target SOC

When I try and follow the same kind of process to prevent discharge of the battery under specific conditions, e.g.

Device
GivTCP xxx Control

Action
Set value for Battery Power Reserve

Value
100

OR another example:

Device
GivTCP xxx Control

Action
Change GivTCP xxx Control GivTCP Battery pause mode option

option
PauseDischarge

Nothing seems to happen. Can anyone point out what I am doing wrong? Thanks!

PaulHalloran commented 4 months ago

Sorry, a bit more info on the above.

The reserve power automation does seem to work (from the log):

Battery Power Reserve  changed to 100 triggered by automation Battery discharge off when octopus intelligent charging  triggered by state of Octopus Energy xxx Intelligent Dispatching
23:30:46 - 

but then this seems to be reverted (presumably by the givenergy system). Log entry:

Battery Power Reserve  changed to 4
23:31:15