home-assistant.io/source/_cookbook/automation_enocean_phue.markdown
sekavatar df82109596 Add enocean documentation (#895)
* added tested device to list

* Added an automation example for philips hue und encoean wall switches
2016-09-10 23:40:24 +02:00

1.2 KiB

layout, title, description, date, sidebar, comments, sharing, footer, ha_category
layout title description date sidebar comments sharing footer ha_category
page Switch Philips Hue with enocean Automation to switch a Philips Hue lamp with an enocean switch. 2016-09-02 22:35 +0800 true false true true 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
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