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

Add triggering of actuator on/off state by button press. #1011

Merged
merged 2 commits into from
Jul 10, 2021

Conversation

h2zero
Copy link
Collaborator

@h2zero h2zero commented Jul 8, 2021

Description:

This will enable using button on the gateway to switch any controlled attached actuators/relays when pressed.

Adds the following macros:

  • ACTUATOR_ON; 0 or 1, set to the output level of the gpio pin to turn the actuator on.
  • ACTUATOR_ONOFF_DEFAULT; ACTUATOR_ON or !ACTUATOR_ON, set to the state desired on reset.
  • ACTUATOR_BUTTON_TRIGGER_LEVEL; 0 or 1, set to the sensing level which to detect a button press to change the actuator state.

Checklist:

  • The pull request is done against the latest development branch
  • Only one feature/fix was added per PR and the code change compiles without warnings
  • I accept the DCO.

This will enable using button on the gateway to switch any controlled attached actuators/relays when pressed.

Adds the following macros:
- ACTUATOR_ON; 0 or 1, set to the output level of the gpio pin to turn the actuator on.
- ACTUATOR_ONOFF_DEFAULT; ACTUATOR_ON or !ACTUATOR_ON, set to the state desired on reset.
- ACTUATOR_BUTTON_TRIGGER_LEVEL; 0 or 1, set to the sensing level which to detect a button press to change the actuator state.
@1technophile 1technophile added this to the v0.9.7 milestone Jul 8, 2021
@1technophile
Copy link
Owner

Thanks!

This will provide the expected funtionality for the reset trigger when the button is pressed for more than 10 seconds.
Also allows the same pin to be used as an actuator/relay trigger if pressed for less than 10 seconds.
@1technophile 1technophile merged commit 5e11690 into 1technophile:development Jul 10, 2021
@h2zero h2zero deleted the actuator-button branch August 3, 2021 01:37
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