I just received a Shelly 2 that I would like to use to control a roller shutter.
The Shelly 2 uses MQTT and these are the commands:
shellies/shellyswitch-<deviceid>/roller/0reports the current state:
closewhile in motion,
stopwhen not moving.
rc(performs roller calibration),
shellies/shellyswitch-<deviceid>/roller/0/posreports the current position in percent
shellies/shellyswitch-<deviceid>/roller/0/command/posaccepts a number between 0 and 100, which is target position in percent.
I have defined a cover like this:
- platform: mqtt name: "Tenda sala" state_topic: "shellies/shellyswitch-xxxxxx/roller/0" # Returns open,close while in motion, stop when not moving command_topic: "shellies/shellyswitch-xxxxxx/roller/0/command" # Accepts open, close, stop payload_open: "open" payload_close: "close" payload_stop: "stop" state_open: "open" state_closed: "close" retain: false optimistic: false qos: 2
But how can I create a slider to control the percentage when opening and closing?
Do I need two different sliders, one for open and one for close?