-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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 Caddx/GE/Interlogix NetworX alarm panel support #1140
Conversation
This is an automated response to help you succeed in getting this PR merged.
If your code communicates with devices:
If your code does not depend on external devices:
|
453b393
to
9b61991
Compare
def setup_platform(hass, config, add_devices, discovery_info=None): | ||
""" Setup nx584. """ | ||
host = config.get('host', 'localhost:5007') | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you verify the login is correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's no login, just connectivity. But I can test connectivity in init and log something, yeah.
9b61991
to
a23d4a0
Compare
This changes the service handler dispatch code to always call update_ha_state(), and cleans up the alarm platforms that were calling it themselves.
8e6c9cc
to
b0bdf1e
Compare
self._alarm = client.Client('http://%s' % host) | ||
self._alarm.list_zones() | ||
except requests.exceptions.ConnectionError as ex: | ||
_LOGGER.error('Unable to connect to NX584: %s', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The alarm control panel component will keep polling this device because it has been added on line 38. You could consider catching the exception in setup_platform
so that it will not get added to HA.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure.
This adds support for NetworX-based alarm panels and should work for any such panel equipped with a NX584 serial interface module. This includes NX-4/6/8/8E, where the NX8E has this interface built-in. It requires the pynx584 module, and requires running the server component somewhere that has connectivity to the panel via serial, which may include a serial-over-lan connection.
b0bdf1e
to
3575ddb
Compare
Add Caddx/GE/Interlogix NetworX alarm panel support
This adds support for NetworX-based alarm panels and should work for
any such panel equipped with a NX584 serial interface module. This
includes NX-4/6/8/8E, where the NX8E has this interface built-in.
It requires the pynx584 module, and requires running the server
component somewhere that has connectivity to the panel via serial,
which may include a serial-over-lan connection.