Skip to content

Latest commit

 

History

History
60 lines (48 loc) · 1.71 KB

README.md

File metadata and controls

60 lines (48 loc) · 1.71 KB

HA Smart utility bash scripts

This folder contains small and useful bash utilities scripts for controlling the Magic Mirror, Rpi4 and monitor screen of your smart mirror. This is useful when you want to control your smart mirror from a phone app and integrate it with for instance home automation systems such as Home Assistant. Then you can automate control of smart mirror and get better insight by setting up Command line switch, Command line sensor and Services by using the Shell Command Integration.

Home Assistant - dashboard

Home Assistant - smart mirror control

Monitor off/on/status

# Turn off monitor
$ smartmirror_monitor_off.sh

# Turn on monitor
$ smartmirror_monitor_on.sh

# Monitor status
$ smartmirror_monitor_status.sh

Monitor brightness

# Set monitor brightness for daytime
$ smartmirror_monitor_brightness_day.sh

# Set monitor brightness for nighttime
$ smartmirror_monitor_brightness_night.sh

Magic Mirror start/stop/status

# Turn off monitor
$ smartmirror_pm2_mm_stop.sh

# Turn on monitor
$ smartmirror_pm2_mm_start.sh

# Monitor status
$ smartmirror_pm2_mm_status.sh

Rpi4 Temperature

# Measure temperature of your Rpi4
$ smartmirror_rpi_temperature.sh

Rpi4 Reboot & Shutdown

# Reboot your Rpi4 instantly
$ smartmirror_rpi_reboot.sh

# Shutdown your Rpi4 instantly, note that you will need to start your Rpi4 manually afterwards
$ smartmirror_rpi_shutdown.sh