Hi everyone !
I’m fairly new to HA and I created a DIY linear actuator controller based on ESP32. I wrote a basic code to be able to receive the position with HTTP Get, and and interprate it to convert it in second forward or backward.
To send the position of the HA blind to the ESP, I found this :
rest_command:
blinds_set_state:
url: "http://x.x.x.x/api/moteur?pos={{ urlInput }}"
method: GET
cover:
- platform: template
covers:
blinds:
friendly_name: "Living Room Blinds"
position_template: "{{ states('sensor.living_room_blind_status') }}"
open_cover:
service: rest_command.blinds_set_state
data:
urlInput: '100'
close_cover:
service: rest_command.blinds_set_state
data:
urlInput: '0'
set_cover_position:
service: rest_command.blinds_state
data_template:
urlInput: "{{position}}"
And I PERFECTLY get the slider information on my ESP32 ! But I still have a problem :
I can’t click on the down arrow on lovelace (greyed) and in HomeKit, if I click on the blind to open it, it stay on “opening”. I guess I need some kind of return postion information to tell HA the blind is fully open ?
Thank you for your help !
A. from France (Sorry for my English)