1
0

Change PC ssh commands

This commit is contained in:
pgrondek 2021-04-19 12:27:29 +02:00
parent 089e3b0ff6
commit 5df617f965
3 changed files with 5 additions and 4 deletions

View File

@ -29,5 +29,5 @@
- condition: state - condition: state
entity_id: binary_sensor.desktop entity_id: binary_sensor.desktop
state: 'on' state: 'on'
- service: shell_command.poweroff_pc - service: shell_command.pc_poweroff
mode: single mode: single

View File

@ -78,7 +78,8 @@ spotify:
client_secret: !secret spotify_client_secret client_secret: !secret spotify_client_secret
shell_command: shell_command:
poweroff_pc: 'ssh -i /config/.ssh/id_rsa -o UserKnownHostsFile=/config/.ssh/known_hosts home-assistant@hulk.lan sudo /sbin/poweroff' pc_poweroff: 'ssh -i /config/.ssh/id_rsa -o UserKnownHostsFile=/config/.ssh/known_hosts home-assistant@hulk.lan sudo /sbin/poweroff'
pc_suspend: 'ssh -i /config/.ssh/id_rsa -o UserKnownHostsFile=/config/.ssh/known_hosts home-assistant@hulk.lan sudo /usr/sbin/pm-suspend'
rest_command: rest_command:
octoprint_connect: octoprint_connect:

View File

@ -28,10 +28,10 @@ good_night:
- light.hallway_lightstrip - light.hallway_lightstrip
- light.computer_computer_cave_background - light.computer_computer_cave_background
- service: switch.turn_off - service: switch.turn_off
data: { }
entity_id: entity_id:
- switch.desk_motor_on_off - switch.desk_motor_on_off
- switch.computer_outlet - switch.computer_outlet
- service: shell_command.pc_suspend
mode: single mode: single
icon: 'mdi:weather-night' icon: 'mdi:weather-night'
good_morning: good_morning:
@ -80,8 +80,8 @@ leave_home:
- light.hallway_lightstrip - light.hallway_lightstrip
- light.computer_computer_cave_background - light.computer_computer_cave_background
- service: switch.turn_off - service: switch.turn_off
data: { }
entity_id: switch.desk_motor_on_off entity_id: switch.desk_motor_on_off
- service: shell_command.pc_suspend
mode: single mode: single
icon: 'mdi:home-export-outline' icon: 'mdi:home-export-outline'
arrive_home: arrive_home: