Skip to content

Commit

Permalink
magic to adb
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonsm committed Nov 6, 2023
1 parent d86d06b commit 7920057
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
6 changes: 4 additions & 2 deletions automations/sleeping.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
- platform: time
at: '23:00:00'
action:
- service: shell_command.magic_off
- service: media_player.turn_off
entity_id: media_player.mo_fa_jing_ling
- service: climate.set_fan_mode
data:
entity_id: climate.zhu_wo_kong_diao
Expand All @@ -73,7 +74,8 @@
- platform: time
at: '06:00:00'
action:
- service: shell_command.magic_on
- service: media_player.turn_on
entity_id: media_player.mo_fa_jing_ling
- service: fan.oscillate
data:
entity_id: fan.ke_ting_xin_feng_ji
Expand Down
10 changes: 5 additions & 5 deletions configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,9 @@ panel_iframe:
icon: mdi:microsoft
url: /local/dash.html

shell_command:
# shell_command:
#server_off: 'ssh [email protected] shutdown -h now'
magic_on: "adb connect 192.168.1.15 && adb -s 192.168.1.15 shell 'input keyevent 82; am start -n com.thanksmister.iot.wallpanel/.ui.activities.WelcomeActivity'"
magic_off: "adb connect 192.168.1.15 && adb -s 192.168.1.15 shell 'input keyevent 82; input keyevent 26'"
x9300d_off: 'adb connect 192.168.1.9 && adb -s 192.168.1.9 shell reboot -p'
x9400d_off: 'adb connect 192.168.1.8 && adb -s 192.168.1.8 shell reboot -p'
# magic_on: "adb connect 192.168.1.15 && adb -s 192.168.1.15 shell 'input keyevent 82; am start -n com.thanksmister.iot.wallpanel/.ui.activities.WelcomeActivity'"
# magic_off: "adb connect 192.168.1.15 && adb -s 192.168.1.15 shell 'input keyevent 82; input keyevent 26'"
# x9300d_off: 'adb connect 192.168.1.9 && adb -s 192.168.1.9 shell reboot -p'
# x9400d_off: 'adb connect 192.168.1.8 && adb -s 192.168.1.8 shell reboot -p'

0 comments on commit 7920057

Please sign in to comment.