sudo nano /etc/udev/rules.d/70-divoom.rules
ACTION==”add”, SUBSYSTEMS==”input”, ATTRS{name}==”11:75:58:C5:2D:6F”, OWNER=”username”, SYMLINK+=”divoom”, TAG+=”systemd” #, ENV{SYSTEMD_WANTS}=”divoom.service”

sudo nano /etc/systemd/system/divoom.service

[Unit]
Description=Divoom smartlight play button listener

[Service]
Type=simple
User=yourusername
ExecStart=/home/yourusername/project.sh

sudo nano project.sh

#!/bin/bash -eu

cd /home/username/projectname/
evtest –grab /dev/divoom |grep –line-buffered ‘value 1$’ | while read line ; do
espeak “yeah this works”
done