Can someone help me get this rolling shutter automation work?

So I have been trying to get a notification when my Shelly rolling shutter is at 70%

The notification works when I choose “run” from the menu, but not when I’m using the YAML code below. I tried both “70%” and “70”, but none of them fire when the rolling shutter reaches 70%.

This is the code I’m using:

alias: Rolling Shutter Open
description: ""
trigger:
  - platform: state
    entity_id:
      - cover.shellyswitch25_76caf5
    attribute: current_position
    to: 70%
condition: []
action:
  - service: notify.pushover
    data:
      message: Rolling Shutter 70%
      target: Phone
mode: single

set the shades to 70%
go to dev tools->states
find the entity and grab a screenshot of the entire entity and attribute values
post that screenshot here

It could be

    to: 0.7

Do what armedad suggests above to know for sure.

Also what if due to rounding errors or the cover state update rate 70% is missed in the transition from 69% to 71%?

Best to use a numeric state trigger if this happens:

trigger:
  - platform: numeric_state
    entity_id:
      - cover.shellyswitch25_76caf5
    attribute: current_position
    above: 69.9
1 Like

Hi there, learned already a thing or two more, thanks for that.

The screenshot:

Regarding the use of “above”, I get this message:

You are using the wrong trigger platform. Look what I wrote:

That worked! Thanks for the input, I indeed overlooked the platform parameter.

1 Like