Closed benmprojects closed 5 years ago
I have managed to do this with automation's. You can can't this feature request if you like. Automation below if anyone would like it. (HA Switch Plate)
Yeah, you can easily do that with automation as the alarm's state is in both mqtt topic and accessible via HA - send ARM command, wait for say, 3 seconds, and if the state is still disarmed, do something.. will it do the job?
Yes seem to work well. Spent ages looking at the code then thought about automations!!
Thanks
On 12 Jul. 2019 6:02 pm, akasma74 notifications@github.com wrote:
Yeah, you can easily do that with automation as the alarm's state is in both mqtt topic and accessible via HA - send ARM command, wait for say, 3 seconds, and if the state is still disarmed, do something.. will it do the job?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/akasma74/Hass-Custom-Alarm/issues/32?email_source=notifications&email_token=ADD6OAISKSOJRBQTLNGSLDTP7A3B7A5CNFSM4ICB7H2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZZA5DA#issuecomment-510791308, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADD6OANZDYCNKFMIXVQ2WQTP7A3B7ANCNFSM4ICB7H2A.
Ok, that's great
Is your feature request related to a problem? Please describe. I think it would be useful for people using mqtt commands to arm and disarm if it be possible to add a command to be sent via MQTT on successful code for arming and disarming
Describe the solution you'd like In the MQTT section of the backend add a couple of textboxes similar to the commands text boxes for a mqtt command to be sent on valid code and invalid code e.g.
Vaild code received MQTT command to send:
hasp/alarm01/command/beepvalid
Invaild code received MQTT command to send:
hasp/alarm01/command/beepinvalid
This would allow some feedback on devices if the code is correct. In the example above my HA switchplate has a piezo buzzer installed. If the command above is received it beeps. (I have submitted a pull request to HA switchplate github with the required code for the beeps.)
Describe alternatives you've considered None