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

Berry virtual Energy driver #22134

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

s-hadinger
Copy link
Collaborator

Description:

Berry virtual Energy driver, that makes it possible to create a 100% Berry energy driver:

  • added OPTION A - 9 GPIO type to enable Berry Energy driver
  • added energy.driver_enabled() to test if the Berry Energy driver is active (i.e. OptionA-9 is enabled)

For example, in autoexec.be:

if energy.driver_enabled()
  energy.phase_count = 1
  energy.voltage = 240
  energy.power_factor = 1.0
  energy.current = 1.5
  energy.frequency = 50
  energy.active_power = 360
end

Code size increase: 280 bytes

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.7
  • The code change is tested and works with Tasmota core ESP32 V.3.0.4
  • I accept the CLA.

NOTE: The code change must pass CI tests. Your PR cannot be merged unless tests pass

@s-hadinger s-hadinger merged commit 6e4517d into arendst:development Sep 12, 2024
59 checks passed
@FransOv
Copy link
Contributor

FransOv commented Sep 13, 2024

Thank you, it worked fine with the Berry code that I used before this change. It looks like perfect backward compatibility and I can now get rid of the dummy relays.
image

Will this also support setting the values with an array in multi-phase situations. My code now stil uses f.i. voltage, voltage_2 and voltage_3.

hawa-lc4 pushed a commit to hawa-lc4/Tasmota-dev that referenced this pull request Sep 16, 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.

2 participants