Skip to content

Instantly share code, notes, and snippets.

@ByTheHugo
Created November 7, 2020 12:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ByTheHugo/dd6680242792e95b562f47787b40e9de to your computer and use it in GitHub Desktop.
Save ByTheHugo/dd6680242792e95b562f47787b40e9de to your computer and use it in GitHub Desktop.
Scripts Home Assistant permettant l'apprentissage puis la restitution de signaux IR pour aspirateurs robots.
learn_vacuum_on_button:
alias: "Enregistrer aspirateur ON/OFF"
sequence:
- service: remote.learn_command
data:
entity_id: remote.rm3_remote
device: vacuum
command: on
alternative: True
learn_vacuum_home_button:
alias: "Enregistrer aspirateur HOME"
sequence:
- service: remote.learn_command
data:
entity_id: remote.rm3_remote
device: vacuum
command: home
vacuum_toggle:
alias: "Activer l'apirateur"
sequence:
- service: remote.send_command
data:
entity_id: remote.rm3_remote
device: vacuum
command: on
vacuum_home:
alias: "Stopper l'aspirateur"
sequence:
- service: remote.send_command
data:
entity_id: remote.rm3_remote
device: vacuum
command: home
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment