I’ve gotten my mimimotes included into my network and can toggle lights, etc. based on some of the configuration setups I’ve found here on the forums and in the HA documentation. I’ve now moved on to trying to toggle my fan speed based on it’s current state. I’ve built the following automation based on what @rowdybeans, @Taras, and @finity had suggested to others on this post . Here’s the automation:
# Minimote #1 - Button #2
# Fan Speed Low/Med/High
- id: mini_1_2_held
alias: 'Minimote #1 Held - Bedroom Fan Speed Increase/Decrease'
trigger:
- platform: event
event_type: zwave.scene_activated
event_data:
object_id: zwave.aeotec_minimote1
scene_id: 4
action:
- service: fan.set_speed
entity_id:
fan.bedroom_fan
data_template:
speed: >
{% if (state_attr('fan.bedroom_fan', 'off')) %}
low
{% elif (state_attr('fan.bedroom_fan', 'low')) %}
medium
{% elif (state_attr('fan.bedroom_fan', 'medium')) %}
high
{% else %}
low
{% endif %}
Unfortunately it’s only partly working and I’m probably overlooking something simple. Basically, regardless what speed the fan is running it always goes to “low” instead of stepping from one level to the next and then back to low from high. Anyone?