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

Support for multiple relays #318

Merged
merged 11 commits into from
Sep 13, 2019
Merged

Support for multiple relays #318

merged 11 commits into from
Sep 13, 2019

Conversation

frenchie71
Copy link
Contributor

Allow a configurable number of relays.

Use case

I have two garage doors but only one RFID reader. Some codes should open the right door, some the left door and maybe some should open both doors.

Possible use case might be as well switching on a light or signal etc.

Interface and downstream compatibility

The number of relays can be configured in the UI, the maximum number of relays is currently hard coded to 4 but can easily be changed. For the official board the number is hard coded to 1.

The settings names for the first relay have not been changed in order to provide downstream compatibility to previous releases. For each additional relay a node is appended to the hardware node

The user forms and files have been amended in order to reflect access rights to a specific relay

Known issues:

  • on User access, multiple entries are created in the access log - one for each relay. At this point the log does not contain information of which relay has been accepted and which has been denied
  • If a user has access to only some relays, a denied message will be entered in the event log for each additional relay
  • MQTT open door command only opens the first relay

@omersiar
Copy link
Collaborator

Looks good for me, thanks.

@omersiar omersiar merged commit 879eee5 into esprfid:dev Sep 13, 2019
@frenchie71 frenchie71 deleted the two-relays branch September 13, 2019 11:22
@frenchie71 frenchie71 mentioned this pull request Nov 29, 2019
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.

None yet

2 participants