rstrouse / ESPSomfy-RTS-HA

Control your somfy shades in Home Assistant
The Unlicense
102 stars 9 forks source link

Service cover.set_current_position not available #41

Closed nl0pvm closed 2 months ago

nl0pvm commented 4 months ago

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)

1. give command

service: cover.set_current_position
data: 
  entity_id: cover.woonkamer_klein_raam
  position: 18

2. receive error

Logs

N/A

rstrouse commented 4 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
rstrouse commented 3 months ago

@nl0pvm did you get this resolved?

nl0pvm commented 3 months ago

did not have time yet :)

nl0pvm commented 3 months ago

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.

rstrouse commented 3 months ago

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
nl0pvm commented 2 months ago

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. :)

rstrouse commented 2 months ago

Thanks that wiki needs some love. I'll update it when I find some time.