openhab / openhab-mycroft

Mycroft skill for openHAB
Eclipse Public License 2.0
21 stars 45 forks source link

Request: Add support for shutters #95

Open Owlbertz opened 4 years ago

Owlbertz commented 4 years ago

Hi,

from what I got from the docs I am currently not able to control shutters using commands like "open"/"close" or "up"/"down". I feel like it should be quite easy to add this - but unfortunately I am unfamilar with Python and therefore cannot do this myself. Is there any chance that this gets added in?

FloatingBoater commented 4 years ago

My suggestion would be to create a proxy item (such as a Switch or Dimmer) and add a rule to set the state of the shutter from the proxy. A Switch could be map ON / OFF into OPEN / CLOSE, or a Dimmer could map % brightness into % open.

Dimmer  ProxyItem1  "Proxy 1 [%d %%]"   <light> ["Lighting"]
Switch  ProxyItem2  "Proxy 2 [%s]"                          ["Switchable"]
Owlbertz commented 4 years ago

Hi @FloatingBoater,

I already came up with the additional logic myself in PR #101. While of course your suggestion would work, I think the more natural language commands for opening and closing are better than having to control the shutters via ON/OFF.