Alexa: Problem with roller shutters

When in Alexa I go to the settings of my shutters instead of being written “raise” or “lower” it appears written "turn on" or “turn off” but I want to be able to say “Alexa, raise the shutter” and notTurn on the shutter”… it is not a light that comes on!

I am also attaching the photo, obviously it is in Italian “è acceso” stands for “Is on”

This is the configuration I put in Home Assistant:

alexa:
  smart_home:
    filter:
      include_entities:
        - cover.sonoff_10012b9efa
        - cover.sonoff_10012b9ef5
        - cover.sonoff_10013a244c
        - cover.sonoff_10012b9fdd
        - cover.sonoff_10013b2699
        - cover.sonoff_10012b9efa
        - cover.sonoff_10012b8b18
        - cover.sonoff_10012ba16d

    entity_config:

      cover.sonoff_10012b9ef5:
        name: "Tapparella bagno grande"
        description: "Tapparella del bagno grande"
        display_categories: COVER

      cover.sonoff_10013a244c:
        name: "Tapparella camera da letto"
        description: "Tapparella della camera da letto"
        display_categories: COVER

      cover.sonoff_10012b9efa:
        name: "Tapparella finestra salotto"
        description: "Tapparella della finestra in salotto"
        display_categories: COVER

      cover.sonoff_10012b8b18:
        name: "Tapparella porta finestra cucina"
        description: "Tapparella della porta finestra cucina"
        display_categories: COVER

      cover.sonoff_10012ba16d:
        name: "Tapparella porta finestra salotto"
        description: "Tapparella della porta finestra salotto"
        display_categories: COVER
        
      cover.sonoff_10013b2699:
        name: "Tapparella sgabuzzino"
        description: "Tapparella dello sgabuzzino"
        display_categories: COVER
        
      cover.sonoff_10012b9fdd:
        name: "Tapparella studio"
        description: "Tapparella dello studio"
        display_categories: COVER

(devices are sonoff dualR3)

It is the same here for my shutters (Shelly 2.5) exposed via HA.
As the alexa integration is a great paid service coming from Nabu Casa - not a community driven topic - and (at least as far as I know) you are not able to open a bug report / feature request directly within GitHub for it, based on this I would recommend to contact them via their support form: Support

I have made absoletely greate experience with them - they know what they are doing and they are answering mostly within a couple of hours (taking their time zone europe VS US/ California into account).

BTW - why do you have the “smart_home” tag within your configuration?
I cannot see this documented somewhere within their configuration page?

Have you tried to create a routine in Alexa App ?

Technically that might be possible - but I do not think this is the intention here :wink:

@BixZod has 8 shutters… one routine for open/ one for close per shutter - makes 16 routines just for another wording - seems highly overkill :stuck_out_tongue:

To do this is quite easy.

In HA, create two scripts, one to open and another one to close the shutter. Just test they are working.

In the Alexa app search for new devices. You should see two Scenes come up. Configure the Scenes.

In the Alexa app, Go to Routines and create two new routines. Done.

You just need to do the same for your other shutters.

You can then make groups like All, Bedroom, Living Room etc.

Very handy saying “Alexa, CLOSE ALL shutters”

Good luck with it :+1:

Not a bad idea, but they are too routine to add, these days I have entered all these codes in HomeAssistant, however doing the routines in Alexa that go to call the script is long to do, I have added the kitchen and the living room, they work perfectly, but it would be a mess and too long to add 32 routines, so isn’t there a method within Alexa when I click on the shutter to see “Raise/Open” “Stop” “Lower/Close” ? Example:

Here you can see all the code I’ve added
(the possibility to raise and lower it, to stop it in the center and the possibility to stop the shutter)

Configuration.yaml

#script tapparelle
        - script.tapparella_cucina_aperta
        - script.tapparella_cucina_chiusa
        - script.tapparella_cucina_ferma
        - script.tapparella_cucina_ferma_a_meta
        
        - script.tapparella_salotto_aperta
        - script.tapparella_salotto_chiusa
        - script.tapparella_salotto_ferma
        - script.tapparella_salotto_ferma_a_meta
        
        - script.tapparella_finestra_salotto_aperta
        - script.tapparella_finestra_salotto_chiusa
        - script.tapparella_finestra_salotto_ferma
        - script.tapparella_finestra_salotto_ferma_a_meta
        
        - script.tapparella_bagno_piccolo_aperta
        - script.tapparella_bagno_piccolo_chiusa
        - script.tapparella_bagno_piccolo_ferma
        - script.tapparella_bagno_piccolo_ferma_a_meta
        
        - script.tapparella_bagno_grande_aperta
        - script.tapparella_bagno_grande_chiusa
        - script.tapparella_bagno_grande_ferma
        - script.tapparella_bagno_grande_ferma_a_meta
        
        - script.tapparella_camera_da_letto_aperta
        - script.tapparella_camera_da_letto_chiusa
        - script.tapparella_camera_da_letto_ferma
        - script.tapparella_camera_da_letto_ferma_a_meta
        
        - script.tapparella_sgabuzzino_aperta
        - script.tapparella_sgabuzzino_chiusa
        - script.tapparella_sgabuzzino_ferma
        - script.tapparella_sgabuzzino_ferma_a_meta
        
        - script.tapparella_studio_aperta
        - script.tapparella_studio_chiusa
        - script.tapparella_studio_ferma
        - script.tapparella_studio_ferma_a_meta
        
    entity_config:

#tapparelle
#cucina
      script.tapparella_cucina_aperta:
        name: "Tapparella cucina aperta"
        description: "Tapparella della cucina aperta"
        display_categories: SCRIPT
        
      script.tapparella_cucina_chiusa:
        name: "Tapparella cucina chiusa"
        description: "Tapparella della cucina chiusa"
        display_categories: SCRIPT
        
      script.tapparella_cucina_ferma:
        name: "Tapparella cucina ferma"
        description: "Tapparella della cucina ferma"
        display_categories: SCRIPT
        
      script.tapparella_cucina_ferma_a_meta:
        name: "Tapparella cucina ferma a metà"
        description: "Tapparella della cucina ferma a metà"
        display_categories: SCRIPT
#salotto 1
      script.tapparella_salotto_aperta:
        name: "Tapparella salotto aperta"
        description: "Tapparella del salotto aperta"
        display_categories: SCRIPT
        
      script.tapparella_salotto_chiusa:
        name: "Tapparella salotto chiusa"
        description: "Tapparella del salotto chiusa"
        display_categories: SCRIPT
        
      script.tapparella_salotto_ferma:
        name: "Tapparella salotto ferma"
        description: "Tapparella del salotto ferma"
        display_categories: SCRIPT
        
      script.tapparella_salotto_ferma_a_meta:
        name: "Tapparella salotto ferma a metà"
        description: "Tapparella del salotto ferma a metà"
        display_categories: SCRIPT
#salotto 2
      script.tapparella_finestra_salotto_aperta:
        name: "Tapparella finestra salotto aperta"
        description: "Tapparella della finestra salotto aperta"
        display_categories: SCRIPT
        
      script.tapparella_finestra_salotto_chiusa:
        name: "Tapparella finiestra salotto chiusa"
        description: "Tapparella della finestra salotto chiusa"
        display_categories: SCRIPT
        
      script.tapparella_finestra_salotto_ferma:
        name: "Tapparella finestra salotto ferma"
        description: "Tapparella della finestra salotto ferma"
        display_categories: SCRIPT
        
      script.tapparella_finestra_salotto_ferma_a_meta:
        name: "Tapparella finestra salotto ferma a metà"
        description: "Tapparella della finestra salotto ferma a metà"
        display_categories: SCRIPT
#bagno piccolo
      script.tapparella_bagno_piccolo_aperta:
        name: "Tapparella bagno piccolo aperta"
        description: "Tapparella del bagno piccolo aperta"
        display_categories: SCRIPT
        
      script.tapparella_bagno_piccolo_chiusa:
        name: "Tapparella bagno piccolo chiusa"
        description: "Tapparella del bagno piccolo chiusa"
        display_categories: SCRIPT
        
      script.tapparella_bagno_piccolo_ferma:
        name: "Tapparella bagno piccolo ferma"
        description: "Tapparella del bagno piccolo ferma"
        display_categories: SCRIPT
        
      script.tapparella_bagno_piccolo_ferma_a_meta:
        name: "Tapparella bagno piccolo ferma a metà"
        description: "Tapparella del bagno piccolo ferma a metà"
        display_categories: SCRIPT
#bagno grande
      script.tapparella_bagno_grande_aperta:
        name: "Tapparella bagno grande aperta"
        description: "Tapparella del bagno grande aperta"
        display_categories: SCRIPT
        
      script.tapparella_bagno_grande_chiusa:
        name: "Tapparella bagno grande chiusa"
        description: "Tapparella del bagno grande chiusa"
        display_categories: SCRIPT
        
      script.tapparella_bagno_grande_ferma:
        name: "Tapparella bagno grande ferma"
        description: "Tapparella del bagno grande ferma"
        display_categories: SCRIPT
        
      script.tapparella_bagno_grande_ferma_a_meta:
        name: "Tapparella bagno grande ferma a metà"
        description: "Tapparella del bagno grande ferma a metà"
        display_categories: SCRIPT
#camera da letto
      script.tapparella_camera_da_letto_aperta:
        name: "Tapparella camera da letto aperta"
        description: "Tapparella della camera da letto aperta"
        display_categories: SCRIPT
        
      script.tapparella_camera_da_letto_chiusa:
        name: "Tapparella camera da letto chiusa"
        description: "Tapparella della camera da letto chiusa"
        display_categories: SCRIPT
        
      script.tapparella_camera_da_letto_ferma:
        name: "Tapparella camera da letto ferma"
        description: "Tapparella della camera da letto ferma"
        display_categories: SCRIPT
        
      script.tapparella_camera_da_letto_ferma_a_meta:
        name: "Tapparella camera da letto ferma a metà"
        description: "Tapparella della camera da letto ferma a metà"
        display_categories: SCRIPT
#sgabuzzino
      script.tapparella_sgabuzzino_aperta:
        name: "Tapparella sgabuzzino aperta"
        description: "Tapparella dello sgabuzzino aperta"
        display_categories: SCRIPT
        
      script.tapparella_sgabuzzino_chiusa:
        name: "Tapparella sgabuzzino chiusa"
        description: "Tapparella dello sgabuzzino chiusa"
        display_categories: SCRIPT
        
      script.tapparella_sgabuzzino_ferma:
        name: "Tapparella sgabuzzino ferma"
        description: "Tapparella dello sgabuzzino ferma"
        display_categories: SCRIPT
        
      script.tapparella_sgabuzzino_ferma_a_meta:
        name: "Tapparella sgabuzzino ferma a metà"
        description: "Tapparella dello sgabuzzino ferma a metà"
        display_categories: SCRIPT
#studio
      script.tapparella_studio_aperta:
        name: "Tapparella studio aperta"
        description: "Tapparella dello studio aperta"
        display_categories: SCRIPT
        
      script.tapparella_studio_chiusa:
        name: "Tapparella studio chiusa"
        description: "Tapparella dello studio chiusa"
        display_categories: SCRIPT
        
      script.tapparella_studio_ferma:
        name: "Tapparella studio ferma"
        description: "Tapparella dello studio ferma"
        display_categories: SCRIPT
        
      script.tapparella_studio_ferma_a_meta:
        name: "Tapparella studio ferma a metà"
        description: "Tapparella dello studio ferma a metà"
        display_categories: SCRIPT

Scripts.yalm

tapparella_cucina_aperta:
  alias: Tapparella cucina aperta
  sequence:
  - service: cover.open_cover
    data: {}
    target:
      entity_id: cover.sonoff_10012b8b18
  mode: single
  icon: mdi:window-shutter-open
tapparella_cucina_chiusa:
  alias: Tapparella cucina chiusa
  sequence:
  - service: cover.close_cover
    data: {}
    target:
      entity_id: cover.sonoff_10012b8b18
  mode: single
  icon: mdi:window-shutter
tapparella_cucina_ferma:
  alias: Tapparella cucina ferma
  sequence:
  - service: cover.stop_cover
    data: {}
    target:
      entity_id: cover.sonoff_10012b8b18
  mode: single
  icon: mdi:window-shutter-alert
tapparella_cucina_ferma_a_meta:
  alias: Tapparella cucina ferma a metà
  sequence:
  - service: cover.set_cover_position
    data:
      position: 68
    target:
      entity_id: cover.sonoff_10012b8b18
  mode: single
  icon: mdi:window-shutter-alert
tapparella_salotto_aperta:
  alias: Tapparella salotto aperta
  sequence:
  - service: cover.open_cover
    data: {}
    target:
      entity_id: cover.sonoff_10012ba16d
  mode: single
  icon: mdi:window-shutter-open
tapparella_salotto_chiusa:
  alias: Tapparella salotto chiusa
  sequence:
  - service: cover.close_cover
    data: {}
    target:
      entity_id: cover.sonoff_10012ba16d
  mode: single
  icon: mdi:window-shutter
tapparella_salotto_ferma:
  alias: Tapparella salotto ferma
  sequence:
  - service: cover.stop_cover
    data: {}
    target:
      entity_id: cover.sonoff_10012ba16d
  mode: single
  icon: mdi:window-shutter-alert
tapparella_salotto_ferma_a_meta:
  alias: Tapparella salotto ferma a metà
  sequence:
  - service: cover.set_cover_position
    data:
      position: 69
    target:
      entity_id: cover.sonoff_10012ba16d
  mode: single
  icon: mdi:window-shutter-alert
tapparella_finestra_salotto_aperta:
  alias: Tapparella finestra salotto aperta
  sequence:
  - service: cover.open_cover
    data: {}
    target:
      entity_id: cover.sonoff_10012b9efa
  mode: single
  icon: mdi:window-shutter-open
tapparella_finestra_salotto_chiusa:
  alias: Tapparella finestra salotto chiusa
  sequence:
  - service: cover.close_cover
    data: {}
    target:
      entity_id: cover.sonoff_10012b9efa
  mode: single
  icon: mdi:window-shutter
tapparella_finestra_salotto_ferma:
  alias: Tapparella finestra salotto ferma
  sequence:
  - service: cover.stop_cover
    data: {}
    target:
      entity_id: cover.sonoff_10012b9efa
  mode: single
  icon: mdi:window-shutter-alert
tapparella_finestra_salotto_ferma_a_meta:
  alias: Tapparella finestra salotto ferma a metà
  sequence:
  - service: cover.set_cover_position
    data:
      position: 67
    target:
      entity_id: cover.sonoff_10012b9efa
  mode: single
  icon: mdi:window-shutter-alert
tapparella_sgabuzzino_aperta:
  alias: Tapparella finestra sgabuzzino aperta
  sequence:
  - service: cover.open_cover
    data: {}
    target:
      entity_id: cover.sonoff_10013b2699
  mode: single
  icon: mdi:window-shutter-open
tapparella_finestra_sgabuzzino_chiusa:
  alias: Tapparella finestra sgabuzzino chiusa
  sequence:
  - service: cover.close_cover
    data: {}
    target:
      entity_id: cover.sonoff_10013b2699
  mode: single
  icon: mdi:window-shutter
tapparella_finestra_sgabuzzino_ferma:
  alias: Tapparella finestra sgabuzzino ferma
  sequence:
  - service: cover.stop_cover
    data: {}
    target:
      entity_id: cover.sonoff_10013b2699
  mode: single
  icon: mdi:window-shutter-alert
tapparella_finestra_sgabuzzino_ferma_a_meta:
  alias: Tapparella finestra sgabuzzino ferma a metà
  sequence:
  - service: cover.set_cover_position
    data:
      position: 71
    target:
      entity_id: cover.sonoff_10013b2699
  mode: single
  icon: mdi:window-shutter-alert
tapparella_bagno_grande_aperta:
  alias: Tapparella finestra bagno grande aperta
  sequence:
  - service: cover.open_cover
    data: {}
    target:
      entity_id: cover.sonoff_10012b9ef5
  mode: single
  icon: mdi:window-shutter-open
tapparella_finestra_bagno_grande_chiusa:
  alias: Tapparella finestra bagno grande chiusa
  sequence:
  - service: cover.close_cover
    data: {}
    target:
      entity_id: cover.sonoff_10012b9ef5
  mode: single
  icon: mdi:window-shutter
tapparella_finestra_bagno_grande_ferma:
  alias: Tapparella finestra bagno grande ferma
  sequence:
  - service: cover.stop_cover
    data: {}
    target:
      entity_id: cover.sonoff_10012b9ef5
  mode: single
  icon: mdi:window-shutter-alert
tapparella_finestra_bagno_grande_ferma_a_meta:
  alias: Tapparella finestra bagno grande ferma a metà
  sequence:
  - service: cover.set_cover_position
    data:
      position: 72
    target:
      entity_id: cover.sonoff_10012b9ef5
  mode: single
  icon: mdi:window-shutter-alert
tapparella_camera_da_letto_aperta:
  alias: Tapparella camera da letto aperta
  sequence:
  - service: cover.open_cover
    data: {}
    target:
      entity_id: cover.sonoff_10013a244c
  mode: single
  icon: mdi:window-shutter-open
tapparella_finestra_camera_da_letto_chiusa:
  alias: Tapparella camera da letto chiusa
  sequence:
  - service: cover.close_cover
    data: {}
    target:
      entity_id: cover.sonoff_10013a244c
  mode: single
  icon: mdi:window-shutter
tapparella_finestra_camera_da_letto_ferma:
  alias: Tapparella camera da letto ferma
  sequence:
  - service: cover.stop_cover
    data: {}
    target:
      entity_id: cover.sonoff_10013a244c
  mode: single
  icon: mdi:window-shutter-alert
tapparella_finestra_camera_da_letto_ferma_a_meta:
  alias: Tapparella camera da letto ferma a metà
  sequence:
  - service: cover.set_cover_position
    data:
      position: 74
    target:
      entity_id: cover.sonoff_10013a244c
  mode: single
  icon: mdi:window-shutter-alert
tapparella_bagno_piccolo_aperta:
  alias: Tapparella finestra bagno piccolo aperta
  sequence:
  - service: cover.open_cover
    data: {}
    target:
      entity_id: cover.sonoff_10013a33b8
  mode: single
  icon: mdi:window-shutter-open
tapparella_finestra_bagno_piccolo_chiusa:
  alias: Tapparella finestra bagno piccolo chiusa
  sequence:
  - service: cover.close_cover
    data: {}
    target:
      entity_id: cover.sonoff_10013a33b8
  mode: single
  icon: mdi:window-shutter
tapparella_finestra_bagno_piccolo_ferma:
  alias: Tapparella finestra bagno piccolo ferma
  sequence:
  - service: cover.stop_cover
    data: {}
    target:
      entity_id: cover.sonoff_10013a33b8
  mode: single
  icon: mdi:window-shutter-alert
tapparella_finestra_bagno_piccolo_ferma_a_meta:
  alias: Tapparella finestra bagno piccolo ferma a metà
  sequence:
  - service: cover.set_cover_position
    data:
      position: 73
    target:
      entity_id: cover.sonoff_10013a33b8
  mode: single
  icon: mdi:window-shutter-alert
tapparella_studio_aperta:
  alias: Tapparella finestra studio aperta
  sequence:
  - service: cover.open_cover
    data: {}
    target:
      entity_id: cover.sonoff_10012b9fdd
  mode: single
  icon: mdi:window-shutter-open
tapparella_finestra_studio_chiusa:
  alias: Tapparella finestra studio chiusa
  sequence:
  - service: cover.close_cover
    data: {}
    target:
      entity_id: cover.sonoff_10012b9fdd
  mode: single
  icon: mdi:window-shutter
tapparella_finestra_studio_ferma:
  alias: Tapparella finestra studio ferma
  sequence:
  - service: cover.stop_cover
    data: {}
    target:
      entity_id: cover.sonoff_10012b9fdd
  mode: single
  icon: mdi:window-shutter-alert
tapparella_finestra_studio_ferma_a_meta:
  alias: Tapparella finestra studio ferma a metà
  sequence:
  - service: cover.set_cover_position
    data:
      position: 64
    target:
      entity_id: cover.sonoff_10012b9fdd
  mode: single
  icon: mdi:window-shutter-alert

I don’t use Nabu Casa, but duckdns etc…

What? No, this is wrong. You can create an issue against cloud. It’s an integration, you can create an issue against anything.

Those phrases should work for a cover. Your cover must be missing functionality for raise/lower to not work or there is a bug in home assistant. I doubt there is a bug but it’s not out of the realm of possibility.

Here are the phrases that should work for cover. Keep in mind, you don’t have to change what they are exposed via display_categories to gain this ability.

If I were to guess, I would assume that your cover doesn’t have a set position associated with it. It just has open/close. IIRC it needs to have a cover position for raise/lower to work. You can get this by faking out a cover position but you’d also need to fake out a set_cover_position as well. Not sure if that can be done through sonoff but it can be done through a template cover.

EDIT: I Just read the code. The only way raise and lower will work is if you have a cover position. So there you have it.

Not that I’m aware of my friend. I see where you are coming from with all the code. It would be a lot. Can you not copy/paste from one you have setup? Or do a few shutters per day?

If you’re interested, I can show you how to fake out a cover position using a template cover to get the utterances that you want for alexa.

there’s 2 ways to implement alexa

  1. cloud
  2. alexa smart home skill

Both use the same lib to expose devices to alexa. The cloud integration goes through nabucasa where alexa smart home skill goes through the users own alexa smart home skill.

Both cloud and alexa share the same attributes beyond this level in the configuration

cloud:
  alexa:
    ... config  ...
alexa:
  smart_home:
    ... config ...

So Alexa doesn’t show you the “raise”, “stop” and “lower” buttons because she thinks it’s a cover, but the problem is that HomeAssistant detects the dualr3 sonoffs as covers, in fact on the entities it looks like this: “cover.sonoff_12345a6bcd”, so in configuration I am forced to put “- cover.sonoff_12345a6bcd” and not “- shutter.sonoff_12345a6bcd
Maybe there is also a method to tell HomeAssistant: “No, they are not covers but shutters” or not???

And then in the Lovelace it shows me the possibility to raise, stop and lower
Immagine 2022-02-18 140031
I would like the same thing in Alexa, there will be a method to achieve this:

Home assistant and Alexa do not have a concept of shutter. You’re talking about what you feel the answer is but the answer is that your cover needs a position.

In developer tools → states page, take a screenshot of your cover that is created in home assistant, make sure the attributes are included in the screenshot.

you mean this?
Immagine 2022-02-18 144503

Yep, thanks. I’ll get back to you when I get back to a computer

Ok back, What integration are you using for SONOFF?

Looking at the attributes it seems as if the Smart Home skill is looking for position not current_position. Your cover provides current_position and I’m trying to narrow down which is wrong, your integration or the alexa smart home skill.