Last week I installed a Shelly 2.5 to operate my roller shutter. The Shelly is behind a physical switch (up/down) so that I can also operate the roller shutter with the switch. Everything is up and running. I added the Shelly to HA via the standard Shelly integration.
I can operate my roller shutter (up/down) via the Lovelace dashboard, but I have not yet succeeded in having this done via an automation. Who can help me?
alias: close cover at sunset
description: ''
trigger:
- event: sunset
platform: sun
condition: []
action:
domain: cover
entity_id: cover.rolluik_woonkamer
type: set_position
position: 0
mode: single
this example should close the cover at sunset.
Depending on how you Shelly is configured you might change position 0 with 100 to get the result you want (inverted cover)
or set up the automation via the UI and select device => your cover (entity starting with cover.) and then select the position via the slider.
The only problem I run into is that the Shelly cannot be calibrated. This probably has something to do with the type of motor in my roller shutter. So⌠I canât use the Shellyâs positioning controls. It is only open or closed. I can operate this excellently with the buttons on my Lovelace dashboard. But I want to automate the shutter using HA. And for some reason that doesnât work for me.
Sorry to break in.
where exactly should this code be placed? In configuration.yaml file?
Because I have Shelly 2.5 switches. But when I create an automation via âconfiguration - automation & scenesâ
I created an automation there that should make my shutters close at sunset but nothing happens at all.
So maybe this code can help.
No, this code is the code of the automation. So if you go to configuration - automation and select your automation and then click edit as YAML, you can paste this code. Please note that you need to change the entity_id to the name of your cover.