cmcgerty / Sofar2mqtt

A smart home interface for Sofar solar and battery inverters.
GNU General Public License v3.0
79 stars 45 forks source link

How to stop charge ? #63

Open nejib1 opened 10 months ago

nejib1 commented 10 months ago

Hello,

After charging the battery using Sofar2mqtt (It works fine), I tried to stop charging in Home Assistant by putting Sofar2mqtt/set/auto like this : `image

But it seems that the message is sent unlimited times to the inverter (I hear tic tac many times), is there a clean way to stop charging once ?

Thank you in advance. `

FFV21 commented 7 months ago

I was looking for a way to stop charging/discharging the battery through Home Assistant as well and this seems to work for me; publish to the topic /set/standby instead of /set/auto

data:
  qos: "1"
  retain: false
  topic: Sofar2MQTT/set/standby
  payload: "true"

Have only just started looking into this but from the limited testing I have done that puts the battery in standby ie not charging/not discharging

double1968 commented 7 months ago

To stop charging I launch the standby command followed by a 30 second pause and then the Auto command. Before giving specific commands I always launch the standby command first to avoid problems