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

Replace Ferraris number and button components with template components #3

Merged
merged 1 commit into from
Sep 22, 2024

Conversation

jensrossbach
Copy link
Owner

@jensrossbach jensrossbach commented Sep 22, 2024

This pull request replaces the Ferraris number and button components (which were used to overwrite the energy meter reading value) with template variants from the YAML configuration file. Additionally, the Ferraris component now provides two actions ferraris.set_energy_meter and ferraris.set_rotation_counter which can be used to set the energy meter reading value and the rotation counter respectively (the latter is updated with both actions as the Ferraris component internally works with rotations only).

The new template number and button components make use of the ferraris.set_energy_meter action to overwrite the energy meter reading value. As these components are now part of the YAML file and no more part of the C++ component code, they can be easily adapted to custom needs.

Closes #2

@jensrossbach jensrossbach added the enhancement New feature request label Sep 22, 2024
@jensrossbach jensrossbach self-assigned this Sep 22, 2024
@jensrossbach jensrossbach merged commit 6019fab into minor_release/1.1.0 Sep 22, 2024
@jensrossbach jensrossbach deleted the change_request/2 branch September 22, 2024 11:38
@jensrossbach jensrossbach changed the title Replace Ferraris number and button components by template components Replace Ferraris number and button components with template components Sep 22, 2024
@jensrossbach jensrossbach added code Changes to the code base and removed enhancement New feature request labels Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code Changes to the code base
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace Ferraris number and button components with template components
1 participant