Skip to content

GPIO: add active low and bias options - #36376

Merged
premultiply merged 4 commits into
masterfrom
feat/gpio-active-low
Nov 17, 2026
Merged

premultiply merged 4 commits into
masterfrom
feat/gpio-active-low

Conversation

@premultiply

@premultiply premultiply commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

fixes #36297, replaces #28187

Adds active low and internal bias configuration to the GPIO plugin, so FNN control boxes with normally open relay contacts switching to ground can be wired directly. Based on #28187 by @woju, adapted to the shared line requests introduced in #31508.

  • GPIO plugin: new activelow and bias (pull-up, pull-down, disabled, as-is) options
  • Defaults are unchanged: inputs keep the internal pull-up, outputs get no bias
  • activelow is applied per plugin instance, so read and write instances sharing a pin cannot override each other's polarity
  • bias is a property of the pin: conflicting values on a shared pin are rejected, an explicit value replaces the default on an already opened line
  • Outputs start in their inactive state, also with activelow
  • Templates: fnn-gpio gets activelow and bias for all inputs, fnn-eebus gets passthroughactivelow for the passthrough output

Docs: evcc-io/docs#1261

🤖 Generated with Claude Code

woju and others added 2 commits November 17, 2026 22:25
“Active low” pins have inverted state, i.e. they're “true” or 1 when
they're pulled to the ground and “false”/0 when left floating around
VCC. This is very common configuration when building interfaces with
semiconductors (like optocouplers), less so with relays where the
polarity mostly doesn't matter.

With varying polarization it is best to leave the choice of bias to the
end user.

Signed-off-by: Wojciech Porczyk <wojciech.porczyk@connectpoint.pl>
@github-actions github-actions Bot added enhancement New feature or request load management Load Management needs documentation Triggers issue creation in evcc-io/docs labels Nov 17, 2026
@premultiply premultiply self-assigned this Nov 17, 2026
@premultiply premultiply added devices Specific device support and removed needs documentation Triggers issue creation in evcc-io/docs load management Load Management labels Nov 17, 2026
@sourcery-ai

sourcery-ai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Linked issues

Checked at commit 82f7ed3

#36297 Externe Begrenzung: FNN Steuerbox via GPIO - Abfrage Öffner / Schließer Relais tauschen (invert) · 1 of 1 met

# Requirement Status Notes
1 Configure GPIO input state inversion for normally-open/closed relay contacts. ✅ Met The GPIO reader applies activelow to the read value, and the fnn-gpio template passes the option through for W4, W3, S1, and S2.

sourcery-ai[bot]

This comment was marked as resolved.

This comment was marked as resolved.

This comment was marked as duplicate.

@premultiply
premultiply merged commit 3e52e65 into master Nov 17, 2026
15 checks passed
@premultiply
premultiply deleted the feat/gpio-active-low branch November 17, 2026 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devices Specific device support enhancement New feature or request needs documentation Triggers issue creation in evcc-io/docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Externe Begrenzung: FNN Steuerbox via GPIO - Abfrage Öffner / Schließer Relais tauschen (invert)

3 participants