Skip to content

Instantly share code, notes, and snippets.

@goncalossilva
Last active June 10, 2025 23:19
Show Gist options
  • Save goncalossilva/9dc7496c417451d1957bfad08ec14903 to your computer and use it in GitHub Desktop.
Save goncalossilva/9dc7496c417451d1957bfad08ec14903 to your computer and use it in GitHub Desktop.
blueprint:
name: Remote Command from Button
description: >
Triggers a remote.send_command when an input_button is pressed.
Perfect for controlling stateless devices like IR/RF remotes via a dashboard button.
domain: automation
input:
trigger_button:
name: Trigger Button
description: The input_button that will trigger the command.
selector:
entity:
domain: input_button
remote_id:
name: Remote Device ID
description: The remote entity (e.g., f001edbadc0def001edbadc0debada55) that will send the command.
selector:
text:
device_name:
name: Target Device Name
description: The 'device' name required by the remote.send_command service call (e.g., "Office Curtain").
selector:
text:
command:
name: Command to Send
description: The specific command to send (e.g., "Open", "Close", "Stop").
selector:
text:
mode: single
trigger:
- platform: state
entity_id: !input trigger_button
action:
- service: remote.send_command
target:
device_id: !input remote_id
data:
device: !input device_name
command: !input command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment