Add enocean documentation (#895)

* added tested device to list

* Added an automation example for philips hue und encoean wall switches
This commit is contained in:
sekavatar 2016-09-10 23:40:24 +02:00 committed by Fabian Affolter
parent 7d376a3780
commit df82109596
2 changed files with 58 additions and 1 deletions

View File

@ -27,6 +27,7 @@ However, only a few devices have been confirmed to work. These are:
- Eltako FUD61 dimmer
- Eltako FT55 battery-less wall switch
- Jung ENOA590WW battery-less wall switch (bianry_sensor)
- Permundo PSC234 (switch and power monitor)
Other devices will most likely need some changes in the Home Assistant code in order to work. Support for teaching of devices is also missing at this time.
@ -42,4 +43,3 @@ enocean:
Configuration variables:
- **device** (*Required*): The port where your device is connected to your Home Assistant host.

View File

@ -0,0 +1,57 @@
---
layout: page
title: "Switch Philips Hue with enocean"
description: "Automation to switch a Philips Hue lamp with an enocean switch."
date: 2016-09-02 22:35 +0800
sidebar: true
comments: false
sharing: true
footer: true
ha_category: Automation Examples
---
#### {% linkable_title Swich on/off Philips Hue with enocean switch %}
Assume that you have an enocean wall switch and some Philips Hue lamps.
The enocean wall swtich will fire the event button_pressed and pass along
several parameters which is used to turn on/off the lamps.
event_data:
* which
* pushed
* onoff
* id
* devname
```yaml
enocean:
device: /dev/ttyUSB0
binary_sensor:
- platform: enocean
id: [0x00,0x01,0x02,0x03]
name: living_room_switch
automation:
- alias: Turn on living room light
trigger:
platform: event
event_type: button_pressed
event_data:
onoff: 1
devname: living_room_switch
action:
service: light.turn_on
entity_id: light.hue_color_lamp_3
- alias: Turn off living room light
trigger:
platform: event
event_type: button_pressed
event_data:
onoff: 0
devname: living_room_switch
action:
service: light.turn_off
entity_id: light.hue_color_lamp_3
```