home-assistant.io/source/_components/switch.hook.markdown
dasos 44cb27801b Docs for Hook (#1490)
* Documentation for Hook
* Fixed spelling
* Added `ha_version` and `ha_iot_class`
2016-11-24 05:41:52 +01:00

1.3 KiB

layout, title, description, sidebar, comments, sharing, footer, logo, ha_category, ha_iot_class, ha_release
layout title description sidebar comments sharing footer logo ha_category ha_iot_class ha_release
page Hook Switch Instructions on how to integrate the Hook Smart Home Hub into Home Assistant. true false true true hook.png Switch Assumed State 0.34

The hook component allows you to control the Hook Smart Home Hub from within Home Assistant.

Hook allows you to control cheap mains electrical outlets, like these ones at Amazon.

In short, Hook is an RF to Wi-Fi bridge, controlling devices that recieve commands at 315MHz and 433MHz. Unfortunately, this does not allow Hook to determine if the command was successful, so the state is assumed.

Hook provides a simple REST API. This Home Assistant component reads in devices that have been set up in the official app.

# Example configuration.yaml entry
-  platform: hook
   username: <email address>
   password: !secret hook

Extra debug logging is available, if you need it.

# Example configuration.yaml entry
logger:
  default: error
  logs:
    homeassistant.components.switch.hook: debug