rstrouse / ESPSomfy-RTS-HA

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

Sending StepUp and StepDown #32

Closed perfrankling closed 5 months ago

perfrankling commented 5 months ago

I would need to be able to send StepUp and StepDown commands to my blinds based on button presses from my wall buttons, but there does not seem to be HA Services for ESPSSomfy RTS for that.

(I have KNX buttons. With long presses I want to start moving the blinds to the top or bottom, and with short presses I want to stop the blinds and adjust the tilt. The buttons send separate events for long and short presses.)

rstrouse commented 5 months ago

You can use the ESPSomfyRTS: Send command service

service: espsomfy_rts.send_command
target:
  entity_id: cover.left_shade
  device_id: f91b42acffca0d28db58c8adf7041bf8
data:
  command: StepUp
perfrankling commented 5 months ago

Thanks! I was only looking at the wiki page, where the Send service is missing - but I now see it in the built-in Developer tools in HA.

rstrouse commented 5 months ago

I'll update the wiki when I get a chance. The send_command endpoint is a relatively new addition.