MQTT Alarm Control Panel for Raspberry Pi and Android


#1

I created a MQTT Alarm Control Panel for use with Home Assistant’s new Manual Alarm Control Panel component. This project was built using a Raspberry Pi 3 and a 7" Touchscreen display running Android Things.

Build instructions: https://www.hackster.io/thanksmister/mqtt-alarm-control-panel-for-home-assistant-a206cc
Demo video: https://www.youtube.com/watch?v=xspCZoRIBNQ
Source code: https://github.com/thanksmister/androidthings-mqtt-alarm-panel

I also created an Android tablet version that is available on Google Play and as a downloadable APK file for sideloading.

Google play store: https://play.google.com/store/apps/details?id=com.thanksmister.iot.mqtt.alarmpanel
Source code and APK file: https://github.com/thanksmister/android-mqtt-alarm-panel

A quick shout out to @colinodell for creating the Manual Alarm Control Panel and his DIY Touch Screen Alarm Control Panel which helped inspire this project.

Thanks!


UK Alarms for HA - Recomentations?
Alarm panel control code just to disarm
Community Hass.io Add-on: Home Assistant Control Panel
Lovelace: Alarm card
Voice Panel - Android Voice Assistant for Home Assistant built with Snips
#2

Looks really nice

Can it be useed with the 3.5" display?


#3

If the display is compatible with Android Things. Currently they have no list of supported displays so you will have to try it to see. It is also possible that interface needs to be tweaked to fit the display.


#4

This is really impressive! Nicely done!


#5

indeed very impressive work!

Wouldn’t be possible to make it more PiZero friendly? :stuck_out_tongue:


#6

Do you have any ide how to configure the Android thing to use the GPIO pins insted of HDMI?


#7

This is the screen i have


#8

You could try, but I don’t think Android Things supports the PiZero. That doesn’t’ mean it wouldn’t work though, just not supported.


#9

You have drivers in Android Things to communicate to the GPIO, this is how the 7" touch screen is attached, its not through the HDMI. Check out the I/O support for Android Things: https://developer.android.com/things/sdk/pio/index.html


#10

There isn’t any discussion for directly supporting that particular display, but there is support for similar displays, check out this discussion https://raspberrypi.stackexchange.com/questions/68374/working-display-setting-for-android-things-on-raspberry-pi-3-with-3-5-inch-waves and also this one http://nilhcem.com/android-things/external-displays.


#11

Could u link What screen you are useing?


#12

7" Touchscreen Raspberry Pi Foundation https://www.adafruit.com/product/2718


#13

Will there be a version for Android Phones?


#14

Yes, working on that, it will support phones but in landscape. I also need to add some logic to wake the screen using motion detection for the camera, but that will be later.


#15

Would be awesome


#16

Maybe I’m blind but I don’t see the APK for download. I don’t know the first thing about compiling from source. Would like to try and side load on an old tablet and the Play Store says none of my devices are compatible.

Thanks.


#17

First i would like to thank you for sharing this nice piece. I just tried to setup it up on a raspberry pi3 with 7" touch, but for some reason I cannot get the MQTT broker ip address to save or better yet i don’t see any “save or ok” button to press on. Any ideas""""


#18

You should be able to get the APK from here: https://github.com/thanksmister/android-mqtt-alarm-panel/releases


#19

Let me check that and if there is an issue I will compile a new build (it might not be until tomorrow, so hang tight!!)


#20

That would be fine and thank you for your fast reply