From df8210959687ed0e6edb78e10f2009a7758f87be Mon Sep 17 00:00:00 2001 From: sekavatar Date: Sat, 10 Sep 2016 23:40:24 +0200 Subject: [PATCH] Add enocean documentation (#895) * added tested device to list * Added an automation example for philips hue und encoean wall switches --- source/_components/enocean.markdown | 2 +- .../automation_enocean_phue.markdown | 57 +++++++++++++++++++ 2 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 source/_cookbook/automation_enocean_phue.markdown diff --git a/source/_components/enocean.markdown b/source/_components/enocean.markdown index cab5d3c72ab..bf99b908f41 100644 --- a/source/_components/enocean.markdown +++ b/source/_components/enocean.markdown @@ -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. - diff --git a/source/_cookbook/automation_enocean_phue.markdown b/source/_cookbook/automation_enocean_phue.markdown new file mode 100644 index 00000000000..e70254a4042 --- /dev/null +++ b/source/_cookbook/automation_enocean_phue.markdown @@ -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 +```