You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
add "system" api to allow query of panel status flags - #98
Adds a /system endpoint to expose security system panel status information (panel ID and active status flags), improving observability for Home Assistant and other integrations consuming the nx584 server API.
Changes
New GET /system endpoint returning panel_id and status_flags from the controller's system state
New Client.get_system() method in the Python client library for programmatic access
New nx584_client system CLI subcommand with pretty-printed output
Version bumped from 1.2 to 1.3 to signal the new endpoint availability
get_system() returns None on non-200 responses for graceful degradation against older server versions
Thanks @drsweb, this is exactly what we asked for in #91: /system with panel_id and status_flags, Client.get_system() returning None on non-200, and the API version bump to 1.3. LGTM from the Home Assistant integration side.
@kk7ds a release with this would let us add a panel low-battery / AC-fail sensor to the nx584 integration.
Thanks @drsweb, this is exactly what we asked for in #91: /system with panel_id and status_flags, Client.get_system() returning None on non-200, and the API version bump to 1.3. LGTM from the Home Assistant integration side.
@kk7ds a release with this would let us add a panel low-battery / AC-fail sensor to the nx584 integration.
@chrodriguez You're very welcome, glad to hear it gets you what you need for this. Thanks @kk7ds for your help.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a
/systemendpoint to expose security system panel status information (panel ID and active status flags), improving observability for Home Assistant and other integrations consuming the nx584 server API.Changes
GET /systemendpoint returningpanel_idandstatus_flagsfrom the controller's system stateClient.get_system()method in the Python client library for programmatic accessnx584_client systemCLI subcommand with pretty-printed output1.2to1.3to signal the new endpoint availabilityget_system()returnsNoneon non-200 responses for graceful degradation against older server versionsVerification
python -m pytest tests— 22 passed)/systemendpoint response with active flags, empty flags, andCONTROLLER=Noneerror state)Closes #91