Skip to content

Release v1.0.9p4

Compare
Choose a tag to compare
@f34rdotcom f34rdotcom released this 14 Feb 06:04
· 77 commits to master since this release
b48fd6f

Add missing logic for MQTT commands subscription with new commands enable/disable command. Misc minor cleanup of warnings. Refactor ad2_ helpers for arming to support code or codeID. Added initial support for Auto Discovery with Home Assistant and MQTT.

Example Support for auto discovery in Home Assistant.

image

Added

  • MQTT
    • Enable/Disable feature for commands subscription with warning when enabling about security on public MQTT servers.
      • mqtt commands [Y|N]
    • Missing logic behind commands subscription in the MQTT component.
      • Verbs: [DISARM, ARM_STAY, FW_UPDATE, ARM_AWAY, EXIT, CHIME_TOGGLE, AUX_ALARM, PANIC_ALARM, FIRE_ALARM, BYPASS, SEND_RAW, FW_UPDATE]
    • Update README with details on commands, tprefix and dprefix.
    • Add topic prefix command tprefix.
    • Add discovery topic prefix command dprefix for MQTT auto discovery.

Changed

  • Change zone command to expect a json string that is not currently validated as the last argument.
    • {"alpha": "zone alpha descriptor", "type": "zone type string"}.
  • Refactor utils to allow for raw codes or codeID for ARM, DISARM, etc.
  • Remove unnecessary code passed to ad2_ functions that don't need it.
  • Remove forced C code sections. Need to clean all of them up now. Not an issue with newer build environment.
  • Fixed warning on g_ad2_console_mutex.

Change log

  • SM - MISC: Fix small memory leak in virtual switch usage in Pushover, Twilio and MQTT.
  • SM - MQTT: Refactor publish function to make it easy to use in the code.
  • SM - HAL: Added hal wrapper for ota_do_update(hal_ota_do_update) and updated any use of ota_do_update from outside of main.
  • SM - MQTT: Added commands verbs [DISARM, ARM_STAY, FW_UPDATE, ARM_AWAY, EXIT, CHIME_TOGGLE, AUX_ALARM, PANIC_ALARM, FIRE_ALARM, BYPASS, SEND_RAW, FW_UPDATE].
  • SM - MQTT: Support for Home Assistant/Others auto discovery.
  • SM - MQTT: Add new command dprefix to set a prefix for publishing device config documents for MQTT auto discovery.
  • SM - MQTT: Add new command commands to enable/disable commands subscription.
  • SM - MQTT: Remove forced cdecl calling to use C++.
  • SM - MQTT: Add new command tprefix to set a prefix for all topics on the broker.
  • SM - MQTT: Add new command to define signon messages to publish.
  • SM - CORE: Refactor ad2_ routines to arm, disarm etc to support raw code as well as code id from code command.
  • SM - CORE: ad2_utils remove forced cdecl calling to use C++ instead. TODO: I can now safely remove the extern 'C' from everything with the current build tools.
  • SM - CORE: Fixed a few compiler warnings re. external with init.