HA-EasyComputerManager/custom_components/easy_computer_manager/services.yaml

150 lines
4.0 KiB
YAML

send_magic_packet:
name: Send Magic Packet
description: Send a 'magic packet' to wake up a device with 'Wake-On-LAN' capabilities.
fields:
mac:
name: MAC Address
description: MAC address of the target device.
required: true
example: "aa:bb:cc:dd:ee:ff"
selector:
text:
broadcast_address:
name: Broadcast Address
description: Broadcast IP to send the magic packet.
example: 192.168.255.255
selector:
text:
broadcast_port:
name: Broadcast Port
description: Port to send the magic packet.
default: 9
selector:
number:
min: 1
max: 65535
restart_to_windows_from_linux:
name: Restart to Windows from Linux
description: Restart the computer to Windows while running Linux using Grub.
target:
device:
integration: easy_computer_manager
restart_to_linux_from_windows:
name: Restart to Linux from Windows
description: Restart the computer to Linux while running Windows.
target:
device:
integration: easy_computer_manager
start_computer_to_windows:
name: Start Computer to Windows
description: Directly start the computer into Windows (boot to Linux, set Grub reboot, then boot to Windows).
target:
device:
integration: easy_computer_manager
put_computer_to_sleep:
name: Put Computer to Sleep
description: Put the computer into sleep mode.
target:
device:
integration: easy_computer_manager
restart_computer:
name: Restart Computer
description: Restart the computer.
target:
device:
integration: easy_computer_manager
change_monitors_config:
name: Change Monitors Configuration
description: Modify monitors configuration.
target:
entity:
integration: easy_computer_manager
domain: switch
fields:
monitors_config:
name: Monitors Configuration
description: Monitors configuration details.
required: true
example: |
HDMI-1:
enabled: true
primary: true
position: [0, 0]
mode: 3840x2160@120.000
transform: normal
scale: 2
selector:
object:
steam_big_picture:
name: Start/Stop Steam Big Picture
description: Initiate or terminate Steam Big Picture mode.
target:
entity:
integration: easy_computer_manager
domain: switch
fields:
action:
name: Action
description: Choose whether to start, stop, or return to the desktop Steam UI.
required: true
example: "start"
selector:
select:
options:
- label: Start
value: start
- label: Stop
value: stop
- label: Exit and return to desktop Steam UI
value: exit
change_audio_config:
name: Change Audio Configuration
description: Adjust audio settings (volume, mute, input, output).
target:
entity:
integration: easy_computer_manager
domain: switch
fields:
volume:
name: Volume
description: Set the desired volume level.
example: 50
selector:
number:
min: 0
max: 100
mute:
name: Mute
description: Mute the audio.
example: true
selector:
boolean:
input_device:
name: Input Device
description: Specify the ID/name/description of the input device.
example: "Kraken 7.1 Chroma Stereo Analog"
selector:
text:
output_device:
name: Output Device
description: Specify the ID/name/description of the output device.
example: "Starship/Matisse HD Audio Controller Stereo Analog"
selector:
text:
debug_info:
name: Debug Information
description: Display debug information to help with setup and troubleshooting. You can use this data (such as monitor resolutions, audio device names/IDs, etc.) with others services such as change_audio_config or change_monitors_config
target:
entity:
integration: easy_computer_manager
domain: switch