I’ve created a touchscreen panel to arm/disarm Home Assistant’s alarm system. It’s powered by a Raspberry Pi, 3.5" touchscreen display, a custom Python-based application, and MQTT. It uses the new Manual Alarm with MQTT Support introduced in version 0.50.
Really like this! Thank you for sharing @colinodell
At the moment by my front door I have an MQTT RFID sensor to disable and enable the alarm in HomeAssistant. I also have a modified BRUH sensor that’s connected to a reed switch on my letter box and also my front door and a push button by the front door that triggers an “away” Automation. I then have a Google Chromecast Audio connected to a speaker for TTS notifications. I also have a relay (MQTT) that operates my door bell and exposed as a sensor in Home assistant l.
I’m wondering if I can roll all this into one on a PiZero, I’ve added solution after solution and now ended up with too many devices in one location in my opinion.
Might try and add all of it to a pi running this alarm panel!
I did get the alarm panel up and running today, but when i start the python program i the touch function stops working. So i cannot type in a code or so, but if i arm/disarm from HA i see the changes in the alarmpanel.
@colinodell WOuld this work with the adafruit 7’’ touchscreen. I have one laying around and thought i would ask. if not i think, a new 3.5 would suffice.
but i dont like the pir on the device. I have a motion sensor in my hallway were i would like to install my screen. Is it possible to use this sensor in HA to send a mqtt message that will turn on the screen?
I followed all the instructions and it works fine on my Rpi 3 with the Adafruit image but on my Zero W with jessie lite I get the following error (SDL 1.2 is installed with the linked shell script):
Initting...
Setting Mouse invisible...
Traceback (most recent call last):
File "main.py", line 119, in <module>
ui = UI('images/bg.png')
File "/srv/alarmpanel/ui.py", line 25, in __init__
pygame.mouse.set_visible(False)
pygame.error: video system not initialized
The program launches when I sudo it but the touch doesn’t work.
I tried the same instructions with the full jessie raspbian image and was able to use the touchscreen in the GUI. Still got the same error and was able to launch it with “sudo” but again, no touch input
I’m getting the same error message and same when sudo, when running from sudo the panel will update if I arm from HA, but does not update after that,
so if I arm the alarm in HA the status text updates but not the buttons, no further inputs in HA are reflected by the status text or buttons.
WARNING, No "Setup" File Exists, Running "config.py"
Using UNIX configuration...
sh: 1: sdl-config: not found
sh: 1: sdl-config: not found
sh: 1: sdl-config: not found
Hunting dependencies...
WARNING: "sdl-config" failed!
Unable to run "sdl-config". Please make sure a development version of SDL is installed.
----------------------------------------
Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-vA 6G8L/pygame/
If my home assistant is configured and running on a Pi3, can i use a few Pi Zero with display all working together? having the Zero’s to activate or disarm at various locations in the house.