This Is Mark 1 verson have to start somewhere
Built this verson as a package
can turn screen on/off
sensor to show if its on/off
can reboot it
or
shut it down
#=======================================================================
# Do a FIND REPLACE
# MMIPADDRESS with the the magicMirror ipaddress ???.???.???.???
#=======================================================================
homeassistant:
customize:
package.node_anchors:
customize: &customize
package: 'Magic Mirror'
sensor.mm_display:
icon: mdi:monitor
friendly_name: Mirror Display
switch.mm_display:
icon: mdi:monitor
friendly_name: Mirror Display
script.mm_reboot:
icon: mdi:lock-reset
script.mm_shutdown:
icon: mdi:power
sensor:
- platform: rest
resource: http://MMIPADDRESS:8080/remote?action=MONITORSTATUS
name: mm display
value_template: '{{ value_json.monitor }}'
#=======================================================================
#
#=======================================================================
switch:
- platform: command_line
switches:
mm_display:
command_on: "curl -s 'http://MMIPADDRESS:8080/remote?action=MONITORON'"
command_off: "curl -s 'http://MMIPADDRESS:8080/remote?action=MONITOROFF'"
#=======================================================================
#
#=======================================================================
shell_command:
mm_reboot: "curl -s 'http://MMIPADDRESS:8080/remote?action=REBOOT'"
mm_shutdown: "curl -s 'http://MMIPADDRESS:8080/remote?action=SHUTDOWN'"
#=======================================================================
#
#=======================================================================
script:
mm_reboot:
alias: Magic Mirror Reboot
sequence:
- data: {}
service: shell_command.mm_reboot
mm_shutdown:
alias: Magic Mirror ShutDown
sequence:
- data: {}
service: shell_command.mm_shutdown
all you need to is put above code into a file inside the package folder
do a find replace MMIPADDRESS with the IPaddress of the Magic Mirror
and the mirror MUST have This module in it
Leaning how to send message to the mirror will update when I know
the lovelace BIT
- type: entities
show_header_toggle: false
title: "Magic Mirror"
entities:
- switch.mm_display
- entity: sensor.mm_display
name: Mirror Display
- script.mm_reboot
- script.mm_shutdown
if you dont know what magic mirror is
using my old PI which was HASS got HASS on real PC now