I am trying to get this work but i have no clue how to proceed.
I have several fibaro roller shutters in my home, most are simple covers with up/down motor and in homekit are shown correctly.
But I have 3 venetian blinds. connected to fibaro modules which support tilt control. This is correctly shown in home assistant as second entity under the same device.
How should i proceed to make it available in homekit?
EDIT:
I’ve made progress. I’ve created new cover with template:
cover:
- platform: template
covers:
full_zaluzie_detska:
device_class: shutter
unique_id: cover_zaluzie_full
friendly_name: "Zaluzie Detska"
position_template: "{{ state_attr('cover.zaluzie_fibaro_walli_roller_shutter_6', 'current_position') | int }}"
tilt_template: "{{ state_attr('cover.zaluzie_fibaro_walli_roller_shutter_6_2', 'current_position') }}"
open_cover:
- service: cover.open_cover
target:
entity_id: cover.zaluzie_fibaro_walli_roller_shutter_6
close_cover:
- service: cover.close_cover
target:
entity_id: cover.zaluzie_fibaro_walli_roller_shutter_6
stop_cover:
- service: cover.stop_cover
target:
entity_id: cover.zaluzie_fibaro_walli_roller_shutter_6
set_cover_position:
- service: cover.set_cover_position
data:
position: "{{ position }}"
target:
entity_id: cover.zaluzie_fibaro_walli_roller_shutter_6
set_cover_tilt_position:
- service: cover.set_cover_position
data:
position: "{{ tilt }}"
target:
entity_id: cover.zaluzie_fibaro_walli_roller_shutter_6_2
this is now correctly shown in homekit. Its still not finished as tilting is not working as expected but I am on right track i think
EDIT 2:
I think i got it solved. To my surprise the variable in set_cover_tilt_position
is not tilt_position
as in service cover.set_cover_tilt_position
but TILT
!!! which is vaguely written in example of the template page …
So to anybody wondering feel free to use my code with Fibaro Roller Shutters and ZwaveJS integration