I was trying to add a mygekko cover to ha. the comands ( up, down and stop) the slider are working fine ( left is fully open). But if the posistion is 0 ( slider left) I can’t send the command down - the same with 100 - > I can’t say up. The icon a already changed that its work correctly.
Has somebody an idea what I’m doing wrong
shell_command:
shutter_up: "curl 'http://192.168.178.33/api/v1/var/blinds/item{{ device_id }}/scmd/set?value=1'"
shutter_down: "curl 'http://192.168.178.33/api/v1/var/blinds/item{{ device_id }}/scmd/set?value=-1'"
shutter_stop: "curl 'http://192.168.178.33/api/v1/var/blinds/item{{ device_id }}/scmd/set?value=0'"
shutter_position: "curl 'http://192.168.178.33/api/v1/var/blinds/item{{ device_id }}/scmd/set?value=P{{ position }}"
cover:
- platform: template
covers:
shutter_living_window:
friendly_name: "Shutter - Living Room (window)"
device_class: shutter
position_template: "{{ states('sensor.window') }}"
open_cover:
service: shell_command.shutter_up
data:
device_id: 6
close_cover:
service: shell_command.shutter_down
data:
device_id: 6
stop_cover:
service: shell_command.shutter_stop
data:
device_id: 6
set_cover_position:
service: shell_command.shutter_position
data_template:
device_id: 6
position: "{{ position }}"
icon_template: >-
{% if states('sensor.window')|float > 0 %}
mdi:garage
{% else %}
mdi:garage-open
{% endif %}