I have a Lutron Pico wireless switch (on/off/dimmer) that I want to control a Zooz z-wave 0-10v dimmer control (controlling a fan motor). I created two automations, one for "On" and another for "Off" and as I prepared to create a "Dimmer Up" Automation I thought: "This seems inefficient and that it would create a LOT of automations." I'm wondering if my approach is the best practice or is there a way to create a single Automation that controls multiple attributes? In other words, one automation for On, Off, Dim Up and Dim Down?
Here is the YAML for the On and the Off
description: ""
triggers:
- device_id: bd9a01d389d8cf5c5b26897f6d64793b
domain: lutron_caseta
type: release
subtype: "off"
trigger: device
conditions: []
actions:
- action: light.turn_off
metadata: {}
data: {}
target:
device_id: cd552b87f9295d4f77171e48ef913d59
mode: single```
```alias: "Pico Soffit Fan Control :: On"
description: ""
triggers:
- device_id: bd9a01d389d8cf5c5b26897f6d64793b
domain: lutron_caseta
type: release
subtype: "on"
trigger: device
conditions: []
actions:
- action: light.turn_on
metadata: {}
data: {}
target:
device_id: cd552b87f9295d4f77171e48ef913d59
mode: single```