Closed nl0pvm closed 2 months ago
What error are you getting? I just ran that service on different entities without incident. However, I would have expected the yaml to be like the following. The entity_id is the target not part of the data.
service: cover.set_current_position
target:
entity_id: cover.woonkamer_klein_raam
data:
position: 18
@nl0pvm did you get this resolved?
did not have time yet :)
Tested; it just does not matter what YAML i use ..... Both in homeassistant.log (and the GUI) the following error is thrown:
Error handling message: Service cover.set_current_position not found.
I am sorry I didn't play close enough attention to your yaml above you need to be using the espsomfy_rts domain for the service. The HA default cover does not contain a service for setting the current position.
service: espsomfy_rts.set_current_position
data:
position: 93
target:
entity_id: cover.woonkamer_klein_raam
Thanks, tested, Works.
Maybe to add this example to to the documentation at https://github.com/rstrouse/ESPSomfy-RTS-HA/wiki/Services as without you never think of using the espsomfy_rts service instead of cover. :)
Thanks that wiki needs some love. I'll update it when I find some time.
ESPSomfy-RTS-HA version
v2.4.1
What happened? What did you expect to happen?
I want to use the "set_current_position" service to correct for an incorrect curtain position due to delay's caused by the command lenght and the curtain to respond. However the "set_current_position" service is not available.
How to reproduce it (step by step)
Logs
N/A