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

[RF] ZgatewatPilight: toggle RawEnabled only if Pilight is active #2159

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

peshovec
Copy link
Contributor

@peshovec peshovec commented Feb 7, 2025

Description:

When enabling or disabling RawEnabled for Pilight gateway the PilightGateway is deactivated and activated.
The proposed change the rawenabled, only if current active receiver is Pilight. Trying to avoid situation such as: Active receiver is RTL , toggling RawEnabled will finally enable Pilight receiver and potentially there will be "race" between two active receivers, or potentially not "synchronized" changes to the radio module (RTL using RadioLib, Pilight using ELECHOUSE).

If accepted, the documentation regarding Pilight gateway, particular using rawenabled should clarify, that toggling is possible only if Pilight is the active receiver. And that if Pilight is not the active receiver, the mqtt error message when trying to toggle is normal.

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.

@1technophile
Copy link
Owner

1technophile commented Feb 11, 2025

Do you mind updating the documentation as part of this PR ?
It will make it easier to track the changes

@peshovec
Copy link
Contributor Author

peshovec commented Feb 11, 2025 via email

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