Hello. I have integrated, in HA (mqtt), a Shelly 2.5 that commands me a roller shutter. I would need to create an automation when the shutter is in a certain position. Who helps me? thank you
what integration does that use then?
- platform: mqtt
name: "Tapparella stanza"
state_topic: "shellies/shellyswitchxxxxxx/roller/0"
command_topic: "shellies/shellyswitchxxxxxx/roller/0/command"
position_topic: "shellies/shellyswitchxxxxxx/roller/0/pos"
set_position_topic: "shellies/shellyswitchxxxxxx/roller/0/command/pos"
qos: 0
retain: false
payload_open: "open"
payload_close: "close"
payload_stop: "stop"
position_open: 100
position_closed: 0
optimistic: false
- platform: mqtt
name: "Tapparella sala"
state_topic: "shellies/shellyswitchxxxxxx/roller/0"
command_topic: "shellies/shellyswitchxxxxxx/roller/0/command"
position_topic: "shellies/shellyswitchxxxxxx/roller/0/pos"
set_position_topic: "shellies/shellyswitchxxxxxx/roller/0/command/pos"
qos: 0
retain: false
payload_open: "open"
payload_close: "close"
payload_stop: "stop"
position_open: 100
position_closed: 0
optimistic: false
I tried like that…does not work
- id: '1622233995900'
alias: tapparella2
description: ''
trigger:
- platform: state
entity_id: cover.tapparella_sala
set_position: '90'
condition: []
action:
- service: switch.turn_on
data: {}
entity_id: switch.led_goccia
mode: single
nothing
- id: '1622272652743'
alias: tapparella 2
description: ''
trigger:
- platform: state
entity_id: cover.tapparella_sala
attribute: current_position
to: '90'
condition: []
action:
- service: switch.turn_on
data: {}
entity_id: switch.led_goccia
mode: single
- platform: numeric_state
entity_id: cover.tapparella_sala
attribute: current_position
above: 90
Grazie!!!