Fixed-brightness Home Assistant blueprint for a 5-button Lutron Pico remote: 100%, 75%, 50%, 25%, and off.
| blueprint: | |
| name: Lutron Pico 5 Button - Fixed Brightness Light Control | |
| description: >- | |
| Control one or more lights using a Lutron Pico 5-Button remote | |
| (model PJ2-3BRL-GXX-X01). | |
| Button mappings: | |
| On -> 100% brightness | |
| Raise -> 75% brightness | |
| Middle -> 50% brightness | |
| Lower -> 25% brightness | |
| Off -> Off | |
| domain: automation | |
| input: | |
| pico: | |
| name: Pico Device | |
| description: The Pico remote to use. | |
| selector: | |
| device: | |
| filter: | |
| model: PJ2-3BRL-GXX-X01 (Pico3ButtonRaiseLower) | |
| entity: | |
| name: Light Entity(ies) | |
| description: The light entity or entities to control. | |
| selector: | |
| entity: | |
| filter: | |
| domain: light | |
| multiple: true | |
| transition: | |
| name: Transition Time | |
| description: Transition time in seconds when changing brightness. | |
| default: 0.5 | |
| selector: | |
| number: | |
| min: 0 | |
| max: 10 | |
| step: 0.1 | |
| unit_of_measurement: seconds | |
| trigger: | |
| - trigger: device | |
| device_id: !input pico | |
| domain: lutron_caseta | |
| type: press | |
| subtype: "on" | |
| id: on_pressed | |
| - trigger: device | |
| device_id: !input pico | |
| domain: lutron_caseta | |
| type: press | |
| subtype: raise | |
| id: raise_pressed | |
| - trigger: device | |
| device_id: !input pico | |
| domain: lutron_caseta | |
| type: press | |
| subtype: stop | |
| id: middle_pressed | |
| - trigger: device | |
| device_id: !input pico | |
| domain: lutron_caseta | |
| type: press | |
| subtype: lower | |
| id: lower_pressed | |
| - trigger: device | |
| device_id: !input pico | |
| domain: lutron_caseta | |
| type: press | |
| subtype: "off" | |
| id: off_pressed | |
| action: | |
| - choose: | |
| - conditions: | |
| - condition: trigger | |
| id: on_pressed | |
| sequence: | |
| - action: light.turn_on | |
| target: | |
| entity_id: !input entity | |
| data: | |
| brightness_pct: 100 | |
| transition: !input transition | |
| - conditions: | |
| - condition: trigger | |
| id: raise_pressed | |
| sequence: | |
| - action: light.turn_on | |
| target: | |
| entity_id: !input entity | |
| data: | |
| brightness_pct: 75 | |
| transition: !input transition | |
| - conditions: | |
| - condition: trigger | |
| id: middle_pressed | |
| sequence: | |
| - action: light.turn_on | |
| target: | |
| entity_id: !input entity | |
| data: | |
| brightness_pct: 50 | |
| transition: !input transition | |
| - conditions: | |
| - condition: trigger | |
| id: lower_pressed | |
| sequence: | |
| - action: light.turn_on | |
| target: | |
| entity_id: !input entity | |
| data: | |
| brightness_pct: 25 | |
| transition: !input transition | |
| - conditions: | |
| - condition: trigger | |
| id: off_pressed | |
| sequence: | |
| - action: light.turn_off | |
| target: | |
| entity_id: !input entity | |
| data: | |
| transition: !input transition | |
| mode: restart |
评论
?
参与讨论