diff --git a/insteon_mqtt/device/FanLinc.py b/insteon_mqtt/device/FanLinc.py index 572f9833..3687e935 100644 --- a/insteon_mqtt/device/FanLinc.py +++ b/insteon_mqtt/device/FanLinc.py @@ -498,12 +498,12 @@ def link_data_from_pretty(self, is_controller, data): if not is_controller: if 'group' in data: data_3 = data['group'] - if 'ramp_rate' in data and data['group'] <= 0x01: - data_2 = 0x1f - for ramp_key, ramp_value in Dimmer.ramp_pretty.items(): - if data['ramp_rate'] >= ramp_value: - data_2 = ramp_key - break + if 'ramp_rate' in data and (data_3 is None or data_3 == 0x01): + data_2 = 0x1f + for ramp_key, ramp_value in Dimmer.ramp_pretty.items(): + if data['ramp_rate'] >= ramp_value: + data_2 = ramp_key + break if 'on_level' in data: data_1 = int(data['on_level'] * 2.55 + .5) return [data_1, data_2, data_3]