blueprint: name: TS004F Rotary Dimmer for Fans description: Use as a relative dimmer domain: automation input: rotary_device: name: Source device selector: device: integration: zha model: TS004F light: name: Fan entities controlled description: > The light entity to use for toggle commands. selector: target: entity: domain: fan mode: parallel max_exceeded: silent trigger: - platform: event event_type: zha_event event_data: device_id: !input rotary_device command: "step" params: step_mode: 0 id: "move_right" - platform: event event_type: zha_event event_data: device_id: !input rotary_device command: "step" params: step_mode: 1 id: "move_left" - platform: event event_type: zha_event event_data: device_id: !input rotary_device command: "toggle" id: "toggle" action: - choose: - conditions: condition: trigger id: "move_left" sequence: - service: fan.decrease_speed target: !input light data: percentage_step: "{{ trigger.event.data.params.step_size / 2.0 }}" - conditions: condition: trigger id: "move_right" sequence: - service: fan.increase_speed target: !input light data: percentage_step: "{{ trigger.event.data.params.step_size / 2.0 }}" - conditions: condition: trigger id: "toggle" sequence: - service: fan.toggle target: !input light