Alok Saboo 1aca7b08cf Misc fixes: e.g. -> e.g., and proper case for Home Assistant (#4942)
* e.g. to e.g., and proper case for Home Assistant

* Instructions how to -> Instructions on how to
2018-03-17 20:20:37 +01:00

1.3 KiB

layout title description date sidebar comments sharing footer logo ha_category ha_release
page Keyboard Instructions on how to simulate key presses with Home Assistant. 2015-01-24 14:39 true false true true keyboard.png Automation pre 0.7

The keyboard component simulates key presses on the host machine. It currently offers the following Buttons as a Service (BaaS):

  • keyboard/volume_up
  • keyboard/volume_down
  • keyboard/volume_mute
  • keyboard/media_play_pause
  • keyboard/media_next_track
  • keyboard/media_prev_track

To load this component, add the following lines to your configuration.yaml:

keyboard:

{% linkable_title Dependencies %}

You may need to install platform-specific dependencies for PyUserInput in order to use the keyboard component. In most cases this can be done by running:

$ pip3 install [package name]

{% linkable_title Windows %}

x64 Windows users may have trouble installing pywin through pip. Using an executable installer should work around this issue.

Similar installers (unofficial) for pyhook have been ported to python 3.4 and should help with x64 pip issues with pyhook.