kbialek / deye-inverter-mqtt

Reads Deye solar inverter metrics and posts them over MQTT
Apache License 2.0
222 stars 50 forks source link

MQTT command Topic #154

Closed xGDNAx closed 6 months ago

xGDNAx commented 7 months ago

Hello, how do you use "DEYE_FEATURE_ACTIVE_POWER_REGULATION - enables active power regulation control over MQTT command topic ". I'm not that keen on programming, somehow after weeks of trying I usually get it to work, but I'm missing some background information here. which command topics are needed here? Is the module able to run in the Micro setting? I have a Bosswerk MI-600. Sorry but this is Google translated.

kbialek commented 7 months ago

hi @xGDNAx

It's documented here https://github.com/kbialek/deye-inverter-mqtt?tab=readme-ov-file#writing-inverter-settings

The docu says that the command topic to control the active power regulation is {MQTT_TOPIC_PREFIX}/settings/active_power_regulation/command, where {MQTT_TOPIC_PREFIX} is replaced with value of configuration variable MQTT_TOPIC_PREFIX

I hope this will help you.

One more remark. Since you are using a microinverter. I'm currently setting up monitoring of a fleet of microinverters, and I've noticed that the value of active power regulation factor is mistakenly reported as 10% instead of 100% from the inverter. I need to investigate this a bit more, but I think you might expect a bugfix release soon.

xGDNAx commented 7 months ago

No sorry,

I'm sending, MI600/settings/active_power_regulation/command 88

MQTT_TOPIC_PREFIX=MI600

command 88 command 88%

or other information??

That's what I'm missing, sorry I'm very slow in learning MQTT

kbialek commented 7 months ago

I see, you should just send the numeric value.

xGDNAx commented 6 months ago

Hello, due to the weather conditions I haven't been able to test further yet. does a command still need to be sent??

I'm very sure that I sent "MI600/settings/active_power_regulation/command 88" but there was no change.

Quote: Send write command to topic {MQTT_TOPIC_PREFIX}/timeofuse/control/command. It will build a new Time Of Use configuration by putting your changes on top of the inverter configuration present in the service memory. Next the entire Time Of Use configuration is sent to the inverter. The modifications are cleared, and you can start sending new modifications. or is this just for Time Of Use??

kbialek commented 6 months ago

I'm very sure that I sent "MI600/settings/active_power_regulation/command 88" but there was no change.

The command looks good. Yet there are two things to consider:

  1. Active power regulation might not work for microinverters at the moment. I wrote about that in my first reply here
  2. You should also activate settings metric group. Then the current active power regulation factor will be reported over the MQTT at topic MI600/settings/active_power_regulation. This way it will be easier for you to test it.

And the quote you pasted is only relevant for TimeOfUse feature.

xGDNAx commented 6 months ago

Thanks i will Test IT tomorrow

xGDNAx commented 6 months ago

Hi, it works.

The problem is still as we know that 10 = 100%.

I'm still testing whether I can send 1.1 for 11%.

It would be better if 55 was also 55%.

Thanks for the help and the cool project, I'm happy to carry out micro inverter tests if there's a change.

Google translated

omgfreezeur commented 6 months ago

Where do you send the command? I tried it over HA with an MQTT Set.

Active Power Regulation is activated. MQTT Broker recives all messages

But if i send something back in MQTT Brocker - nothing changed.

- mqtt:
- select:
  state_topic: "deye/settings/active_power_regulation"
  command_topic: "deye/settings/active_power_regulation/command"
  name: "Deye Output Set"
  unique_id: deye_output_ set
  options:
      - "3.7" 
      - "5.1"
      - "10.0"
xGDNAx commented 6 months ago

MI600/settings/active_power_regulation/command

MQTT_TOPIC_PREFIX=MI600

MQTT_TOPIC_PREFIX=Your Setting

you must wait a moment

ich use MQTT Explorer to controll MQTT Trafik

i am German and my Englisch ist not god

xGDNAx commented 6 months ago

I use FHEM

can you controll with the Solarman APP or https://globalhome.solarmanpv.com/

not ? you cant control your DEYE

omgfreezeur commented 6 months ago

I got my command working. Now iam able to set the active power via HA.

I need it in cases like pluged car to get all my power (illigal) out of my inverter.

kbialek commented 6 months ago

@xGDNAx In the latest release I've added a new metric group settings_micro that fixes the problem you described here https://github.com/kbialek/deye-inverter-mqtt/issues/154#issuecomment-1993681749

xGDNAx commented 6 months ago

Hi, I tested it but it doesn't seem to work. For me that's ok.

kbialek commented 6 months ago

Okay. I use it for ten SUN500 microinverters without issue. Just to make it super clear,

  1. settings_micro metrics group is only available since release https://github.com/kbialek/deye-inverter-mqtt/releases/tag/2024.03.1
  2. settings_micro metric group must not be used together with settings metric group. So, for microinverter use metric groups micro,settings_micro
xGDNAx commented 6 months ago

Hy had installed the new version for me and also changed the Settings_micro setting.

micro,settings_micro.

active_power_regulation has not been updated either.

When I get the chance I'll check everything again, only the conversion 10=100% is ok for me.