MQTT Alarm Control Panel for Raspberry Pi and Android

I have must have an older generation 7" Touchscreen, it does dim the screen. I added the camera and will also be adding a PIR sensor so the screen wakes up if are in front of it. I am glad you liked it.

2 Likes

Is the code for the buzzer still in there? I haven’t tried anything yet, but I would prefer just a simple piezo for button feedback instead of an external speaker.

No it’s not because I couldn’t get enough sound from the pezzo.

Thanks for clarification. I can go with the speaker if I really need the “beeps”

Hi, I just set this up and it works great - BUT I have a nightly reset on my home assistant which restarts the system just to clear any bugs, and I noted that if I restart the system the alarm panel automatically changes back to disarmed.

This is obviously not ideal as I would like it to remember its previous state.

Is there something I can do to fix this?

Thanks.

That’s a problem with HASS and persistent data. Someone else posted a solution earlier. Try this library for HASS https://github.com/gazoscalvertos/HASS-Persistence. There is more on the topic here State of alarm is reset after update/restart of HA.

Thank you for creating this great app! :slight_smile:
However I have two issues;

  • as said earlier in this topic by someone else I dont have a countdown sound.

  • When I send a notification to the correct subject via mqtt tts doesn’t work. I have the latest version of Android (Samsung S8+)

Best regards,
Michael

Can you please add what you are sending for the notification using mqtt? It should look something like this if you send it from HASS:

Services
The service dev tool allows you to call any available service in Home Assistant.

Service
mqtt.publish
 
Service Data (JSON, optional)
{"topic":"home/notification", "payload":"hello"}

I just ran the test you said, as you can see its received by the panel, but it’s nothing more than silence haha :slight_smile:

Do you have TTS installed and what version of Android are you running. Samsung devices always seem to have the majority of issues since Samsung insists on customizing everything.

Yes TTS is installed, the official Google version.
I’m currently running Android version 8.0.

Thanks for your help so far!

I am stumped as to the cause, I am running Android 8.0 on multiple devices (all Nexus devices not Samsun) and I don’t have any issue with sounds. I will have to test on an actual Samsung device, but I have to be able to reproduce the issue.

Haven’t changed anything but the TTS is working now! :slight_smile: the only thing that’s left is the countdown beeps.

I have an update coming that replaces the beeps with haptic feedback for buttons (or you use your systems own haptic feedback) and replaces the continuous beep when you see the disarm code dialog with the default system alarm sound. This takes the burden off of me to make those happen. There was also an issue with some Samsung devices and finger unlock (big surprise Samsung uses their own unlock code). So look for the next update. Also notifications may work the first time, but because the application does a wake lock when notifications are received, it was reinitializing the TTS engine but not in time to speak the notification. I have a fix for that as well.

2 Likes

I have the fingerprint unlock working on both my Pixel and my Samsung S5. I don’t know what the issue is now with v0.75. Probably need to adjust the code so that only older Samsung devices use the Samsung library for fingerprint unlock while newer devices seem to support Android fingerprint. What a bother. I might just not support older Samsung devices for that feature.

@msmits2011 When you say it doesn’t work, does that mean you have the option to enable fingerprint unlock but it doesn’t work, or did you mean you have no option to use fingerprint unlock? Note you may have to toggle off fingerprint unlock and then try to toggle it on again to see if your system is supported. Thanks!

Hi thanksmister!

Yes I see in the GUI that I can use the fingerprint scan to unlock. But it does nothing… before the update the GUI responded to my finger on the scanner. Now nothing happens…

Ok, thanks that is helpful. I will try a different library to see if it works with your device.

Great! Thank you for your help!

So we talked a couple weeks ago, but I thought I would share this (please ignore the low power icon on Pi display—need bigger gauge wire–coming soon). The frame is my own design and I used an “old work” box to allow the Pi to go into the wall. Makes a nice clean install. Thanks again for writing this code.

1 Like