akasma74 / Hass-Custom-Alarm

It is a fork of "Yet another take on a home assistant custom alarm" that will exist until its author is back to our Earth
80 stars 31 forks source link

MQTT Disarm with passcode #5

Closed benmprojects closed 5 years ago

benmprojects commented 5 years ago

Is your feature request related to a problem? Please describe. Allow Disarm/Arm via MQTT with the passcode in the payload. This will allow the use of the Android Alarm Panel.

Describe the solution you'd like As above

manznOnly commented 5 years ago

use these code works to enable mqtt from @Tyre88 (with override function)

https://github.com/gazoscalvertos/Hass-Custom-Alarm/pull/65/commits/3f9fd9e54d4ae740482ee178227c4a0c334fc83a

akasma74 commented 5 years ago

@benmprojects, it's already supports Disarm with passcode. Could you provide more info regarding your request, i.e a sample message to arm/disarm that Android Alarm Panel sends (by the way, what is it?)

@manznOnly I'm not sure the PR you're referring to is the right one in this case - to me it looks strange as _override_code flag is only applicable to Disarm functionality, but he uses it in ARM_xxx as well..

akasma74 commented 5 years ago

OK, to sum the things up: The MQTT Alarm Control Panel does not send anything apart from the command itself in payload, i.e it's ARM_AWAY, ARM_HOME or DISARM. I could not find any options to include codes in payload. The alarm component works fine with that control panel, you just need to enable Disarm Without Passcode in MQTT settings.

I'm closing the FR. Feel free to open a new one, just provide enough info to avoid any guesswork as only you know what you're asking for.