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.
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.
[X] SM - MQTT: Support for Home Assistant/Others auto discovery.
[X] SM - MQTT: Add new command dprefix to set a prefix for publishing device config documents for MQTT auto discovery.
[X] SM - MQTT: Add new command commands to enable/disable commands subscription.
[X] SM - MQTT: Remove forced cdecl calling to use C++.
[X] SM - MQTT: Add new command tprefix to set a prefix for all topics on the broker.
[X] SM - MQTT: Add new command to define signon messages to publish.
[X] SM - CORE: Refactor ad2_ routines to arm, disarm etc to support raw code as well as code id from code command.
[X] 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.
[X] SM - CORE: Fixed a few compiler warnings re. external with init.
Add missing logic for MQTT
commands
subscription with newcommands
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.
Added
commands
subscription with warning when enabling about security on public MQTT servers.mqtt commands [Y|N]
commands
subscription in the MQTT component.[DISARM, ARM_STAY, FW_UPDATE, ARM_AWAY, EXIT, CHIME_TOGGLE, AUX_ALARM, PANIC_ALARM, FIRE_ALARM, BYPASS, SEND_RAW, FW_UPDATE]
commands
,tprefix
anddprefix
.tprefix
.dprefix
for MQTT auto discovery.Changed
zone
command to expect a json string that is not currently validated as the last argument.{"alpha": "zone alpha descriptor", "type": "zone type string"}
.Change log
[DISARM, ARM_STAY, FW_UPDATE, ARM_AWAY, EXIT, CHIME_TOGGLE, AUX_ALARM, PANIC_ALARM, FIRE_ALARM, BYPASS, SEND_RAW, FW_UPDATE]
.dprefix
to set a prefix for publishing device config documents for MQTT auto discovery.commands
to enable/disable commands subscription.tprefix
to set a prefix for all topics on the broker.code
command.