All notable changes to this project will be documented in this file. This project follows Semantic Versioning.
- Change minimum Python version back to 3.9
- Refactor connection.py; no functional changes
- Refactor get_description; no functional changes
- Bump minimum Python version to 3.10
- Add keypad function key and chime sync (Thx @jimboca)
- Use a more liberal cipher set.
- Support for Python 3.10; SSL cipher must be explicitly set
- Breaking change: use Enums proper instead of Enum.values; signature of many
of the xx_encode/xx_decode functions change as the parameters that were str,
int, etc are now AlarmLevel, etc. Full list of of the enums used is in
const.py
Inspiration for this change from from Home Assistant move to using more enums to eliminate constants. Attribute changes:- Zone.definition (switch to Enum)
- Zone.logical_status (switch to Enum)
- Zone.physical_status (switch to Enum)
- Area.armed_status (switch to Enum)
- Area.arm_up_state (switch to Enum)
- Area.alarm_status (switch to Enum)
- Area.arm method uses ArmLevel instead of a string
- Thermostat.mode (switch to Enum)
- Thermostat.fan (switch to Enum)
- Thermostat.set (use Enum)
- Setting.value_format (switch to Enum)
- Area.alarm_memory (changed from "0"/"1" string to bool)
- Add use of Generics on Elements to give better typing of self.elements
- Refactor to separate concerns. Major part of this separation was pulling the observer code out of message.py and putting it in a separate class. This simplified message.py so that it is now just a set of encode/decode functions, no more class. This also made the connection.py code cleaner and focused on just the transport concerns.
- Add logging of exception information on disconnect
- Add login event callback when first message received
- Move user/pass sending from connection to elk.py (cleaner connection code)
- Fix wrong parameter introduced in typing exercise.
- Remove pause/resume from
elk.py
; not used outside of internal lib and available inConnection
if really needed - Fix over zealous cleanup where password sent after sync. Doh.
- Fix iter type to be a Generator
- All the elements (Areas, Counters, Zones, etc) are now attributes of the Elk class instead of being dynamic attributes
- Add py.typed
- Tweak CI to be more informative
- Add typing: https://peps.python.org/pep-0561/
- Changed minimum Python version to 3.9
- Part of the typing change caused a circular import for username in util; Moved username to be a method on Users
- On a non-secure connection still generate a login event on got_connection (it will always be successful)
- Bug in decode of UA message; did not handle hex for areas
- Cleanup after sync_complete to remove handler; allows for apps to send there own UA messages
- Time to take this out of beta! The code has been stable for well over a year.
- Added support for TLS 1.2 secure connection mode. This is required for M1XEP version 2.0.46 and higher
- Add get_voltage on zone.
- Fix panel not recognized when using auto-configure.
- Many small non-functional code cleanups.
- Lint and isort cleanup
- Move from .format to f-string for string formatting
- Black formatting
- configured flag for each element set based on whether element has a description
- Added rw (set time) support and RR (realtime clock) support
- Added callbacks when get connected and disconnected from panel
- KC now supports keycode 0
- Added zone bypass helper and area bypass helper
- Zone bypass handler bug fix (did not handle bypass all)
- Renamed zone_trigger to trigger (breaking change)
- Fix comment typo
- Duh, left breakpoint in code; removed
- Update dependencies (pytz left in poetry.lock)
- Beefed up README with error reporting.
- Improve LD handling by simplifying and adding feature to note last_user
- Switch to
poetry
frompipenv
for dependency management; allowed removal of version.py, setup.py, setup.cfg, and of course Pipfile*
- Support multiple elk instances in same process by associating _message_handlers, _sync_handlers, and the description processing code with elk object rather than as file globals.
- Moved message encoders/decoders into new MessageDecode class to facilitate the above.
- Fix updating counter value
- Add alarm memory processing
- Add system_trouble_status decoding.
- Add pytz as dependency
- Add KC (keypress) handling
- Add level() helper to control lights
- Remove turn_on and turn_off for lights
- Add time of change to IC message. The will force callbacks to be called. Useful when multiple IC messages with same content come in. This way the app using the callback can record the multiple attempts.
- Add username utility function to get a user's name from an user number
- Add zt decode and helper
- Add dm helper
- Fix speak word. Was using wrong Elk message code.
- Add 30 second timeout to create connection
- lint cleanups
- Set user name to default name if not configured
- Enhance IC decode to handle prox
- IC handler now saves user code
- Heartbeat bug; connect was called on heartbeat timeout AND then again on disconnect callback
- Made log messages on connect/disconnect/error clearer and more consistent
- Change max time on connection retry to 60 seconds (was 120 seconds)
- Tidied up a couple of comments
- Add heartbeat
- Fix triggered_alarm attr to zone
- Add support for system trouble status (attached to panel)
- Add triggered_alarm attr to zone
- changed callback now dict instead of list
- Fix bug on changed callback
- Breaking change in attr changed callback
- Tweak to as_dict
- Rename package from elkm1 to elkm1_lib (due to conflicts with HASS component)
- Many small fixes.
- Fix lint errors.
- Fix couple of syntax errors (speak_work for example)
- Changed a number of initial values to make it easier to use library (examples are temperatures, initial area numbers)
- Allow lowercase and single digit housecodes
- Add formating to version strings
- Lower retry max time on connection lost
- Make
make clean
clean cleanerer
- Change connect/reconnect to not block for HASS
- Update README with section on development setup
- Change ee_decode to return str for armed status (was int)
- Fixed typos
- Add entry/exit message handling
- Speak word, speak phrase helpers added (no constants for words/phrases)
- Add handling for ST (temperature) messages
- Users were disabled and not working; enabled and fixed
- Retrieve temperatures on startup added
- Add serial io dependency
- Breaking change: no longer need to call elk.loop.run_until_complete(elk.connect()); now call elk.connect()
- Retrieve counter values that have a description
- Fix for HASS Recorder errors about not being JSON serializable
- Add asyncio serial support
- Add test program to test serial support (bin/test-serial); requires data file that can be grokked from debug output of bin/elk
- Add proper command line parsing for bin/elk including URL as param
- URL can also be read from environment variable ELKM1_URL
- Add reconnect logic with exponetial backoff
- Add pause writing to Elk when in remote programming mode
- Add const for format of setting
- Add const for RP mode
- Change thermostat const to match semantics of other const (e.g.: FAN_ON changed to ON, MODE_AUTO to AUTO, etc). Makes for better formatting when using pretty_const
- Start of cleanup of cmdr.py; using attrs lib
- Change return on pretty_const to string (was tuple)
- First cut of adding disconnect handling
- Reconnect to be handler by client; will get a callback on disconnect
- Fix alarm armup/state/etc to char from int
- Lint cleanup
- Constants now all uppercase with underscores (can use pretty_const to print)
- Added encode for az, decode for AZ (no handler yet)
Fix syntax; more descriptive docstrings
- Make elk attribute in Element private
- Allow separator in default_name() to be specified
- Add constants for arming, alarms
- Add elk attribute to Element
- Add NS, NZ to no plans to implement list
- Make default name 1-based
- Add helpers to Output
- Add helpers to Light
- Add helper to Counter
- Add helper to Task
- Add helpers to Area
- Add handler for task change (TC) message
- Add thermostat setting
- Add helper for Setting (custom value)
- Added const for thermostat setting
- Added pretty_const (see test_util.py for API)
- Add display message encoder
- Add thermostats (not Omnistat)
- MANIFEST.in to include bin files and LICENSE in distro
- Makefile updated to include build and upload rules
- Initial version, see README.rst for overview of project.