When I add this 100% working HA fan to HomeKit, there’s only the speed slider and no oscillation switch. Is there a way to make it appear?
The real device itself, thrown into HomeKit has way too many nameless switches. That’s why I’m trying to make this simplified fan proxy
fan:
- platform: template
fans:
universal_fan:
friendly_name: "Universal simple fan"
value_template: >
{% if is_state('fan.zhimi_fa2_c8aa_fan', 'on') %}
on
{% else %}
off
{% endif %}
oscillating_template: "{{ state_attr('fan.zhimi_fa2_c8aa_fan', 'horizontal_swing') }}"
percentage_template: "{{ state_attr('fan.zhimi_fa2_c8aa_fan', 'percentage') }}"
turn_on:
service: fan.turn_on
target:
entity_id: fan.zhimi_fa2_c8aa_fan
turn_off:
service: fan.turn_off
target:
entity_id: fan.zhimi_fa2_c8aa_fan
set_oscillating:
service: fan.oscillate
target:
entity_id: fan.zhimi_fa2_c8aa_fan
data:
oscillating: "{{ oscillating }}"
set_percentage:
service: fan.set_percentage
target:
entity_id: fan.zhimi_fa2_c8aa_fan
data:
percentage: "{{ percentage }}"
speed_count: 4
if I look at the device in DevTools->State it says that oscilating is Null somehow
preset_modes: null
oscillating: null
percentage: 50
percentage_step: 25
preset_mode: null
friendly_name: Universal simple fan
supported_features: 3