Skip to content

Instantly share code, notes, and snippets.

@tube0013
Last active December 14, 2020 03:50
Show Gist options
  • Select an option

  • Save tube0013/f70615447c08115da886081a6a115585 to your computer and use it in GitHub Desktop.

Select an option

Save tube0013/f70615447c08115da886081a6a115585 to your computer and use it in GitHub Desktop.
blueprint:
name: Lutron Pico 5 Button
description: Toggle a light based on state of Pico middle button using the Custom Lutron Component
domain: automation
input:
pico_remote_1:
name: pico_remote_1
selector:
entity:
domain: sensor
pico_remote_2:
name: pico_remote_2
selector:
entity:
domain: sensor
light_target:
name: Light
selector:
target:
entity:
domain: light
trigger:
- platform: state
entity_id: !input pico_remote_1
from: "0"
to: "2"
- platform: state
entity_id: !input pico_remote_2
from: "0"
to: "2"
action:
- service: light.toggle
target: !input light_target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment