Skip to content

Instantly share code, notes, and snippets.

@torrancew
Last active July 12, 2026 14:20
Show Gist options
  • Select an option

  • Save torrancew/16e20be93665642985ba7896b70dec92 to your computer and use it in GitHub Desktop.

Select an option

Save torrancew/16e20be93665642985ba7896b70dec92 to your computer and use it in GitHub Desktop.
HomeAssistant Blueprint: Hue Smart Button
blueprint:
name: Philips Hue Smart Button (ZHA)
description: >-
Simplified ZHA-only blueprint for the Philips Hue Smart Button (ROM001/RDM003).
Single touch toggles a light. Long press triggers a custom action.
domain: automation
input:
controller_device:
name: Button Device
description: Philips Hue Smart Button paired via ZHA.
selector:
device:
integration: zha
model: "ROM001"
lights:
name: Light
description: Light to toggle on single touch.
selector:
target:
entity:
domain: light
action_long_press:
name: Long Press Action
description: Action(s) to run when the button is held.
default: []
selector:
action:
trigger:
- id: short_press
platform: event
event_type: zha_event
event_data:
device_id: !input controller_device
command: on_short_release
- id: long_press
platform: event
event_type: zha_event
event_data:
device_id: !input controller_device
command: on_hold
action:
- choose:
- conditions:
- condition: trigger
id: short_press
sequence:
- service: light.toggle
target: !input lights
- conditions:
- condition: trigger
id: long_press
sequence: !input action_long_press
mode: single
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment