Skip to content
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

[SolaxX1] Add meter mode #22330

Merged
merged 1 commit into from
Oct 24, 2024
Merged

[SolaxX1] Add meter mode #22330

merged 1 commit into from
Oct 24, 2024

Conversation

SteWers
Copy link
Contributor

@SteWers SteWers commented Oct 20, 2024

Description:

Introduce the 'MeterMode' regarding to the implementation from @syssi. The driver automatically detects when the inverter requests the meter mode. Only one mode is possilbe at the same time.

The meter values can be communicated to the driver via this commands:

  • EnergyConfig MeterPower current imported or exported power in W
  • EnergyConfig MeterImport imported energy in kWh to be displayed on the inverter
  • EnergyConfig MeterExport exported energy in kWh to be displayed on the inverter

A good way for operation is to subscribe to the smart meter MQTT topics directly. Therefore compile with #define SUPPORT_MQTT_EVENT.

A sample rule can look like this:

Rule1
ON mqtt#connected DO Subscribe PwrEvt, MT175/tele/SENSOR ENDON
ON Event#PwrEvt#SML#Power_all DO EnergyConfig MeterPower %value% ENDON
ON Event#PwrEvt#SML#Total_in DO EnergyConfig MeterImport %value% ENDON
ON Event#PwrEvt#SML#Total_out DO EnergyConfig MeterExport %value% ENDON

Checklist:

  • The pull request is done against the latest development branch
  • Only relevant files were touched
  • Only one feature/fix was added per PR and the code change compiles without warnings
  • The code change is tested and works with Tasmota core ESP8266 V.2.7.8
  • The code change is tested and works with Tasmota core ESP32 V.3.1.0.241015
  • I accept the CLA.

@syssi
Copy link

syssi commented Oct 20, 2024

Good job!

@arendst arendst merged commit bbba5b9 into arendst:development Oct 24, 2024
59 checks passed
@SteWers SteWers deleted the solax-meter7 branch October 24, 2024 14:37
josef109 pushed a commit to josef109/Tasmota that referenced this pull request Nov 7, 2024
josef109 pushed a commit to josef109/Tasmota that referenced this pull request Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants