I am having an issue with SmartThings.
I have been having some random unable to connect in my automation.
Obviously when this happens the automation stops/fails.
I have installed the Retry service from HACS. Where do I put this in my automation?
Do you use an if/then statement?
Here is one of my automations (the pool power up). Where would I throw this?
The switches is where I am seeing it in this automation (only smarthings).
Would I just put it at the end?
alias: "Pool Radio Power On #2"
description: ""
trigger:
- platform: device
type: turned_on
device_id: 0c367dbb1807852d1a32f4327256d6c3
entity_id: switch.patio_switch_2
domain: switch
condition: []
action:
- type: turn_on
device_id: 5242f4e33544d7ad4de5a84b713a140b
entity_id: switch.pool_radio_power
domain: switch
- delay:
hours: 0
minutes: 0
seconds: 3
milliseconds: 0
- repeat:
count: "30"
sequence:
- type: toggle
device_id: 369bc566fed95dd4078dd39378fb6a42
entity_id: switch.moukey_volume_down
domain: switch
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
enabled: false
- delay:
hours: 0
minutes: 0
seconds: 3
milliseconds: 0
- repeat:
count: 2
sequence:
- type: toggle
device_id: 77a55d92de393c1916f7d9ddcaedb5d2
entity_id: switch.moukeybtbutton
domain: switch
- service: scene.turn_on
target:
entity_id: scene.poolradioon
metadata: {}
- service: scene.turn_on
target:
entity_id: scene.pooljblon
metadata: {}
- service: scene.turn_on
target:
entity_id: scene.poolneston
metadata: {}
- delay:
hours: 0
minutes: 0
seconds: 3
milliseconds: 0
- service: media_player.volume_set
data:
volume_level: 0.35
target:
entity_id: media_player.pool_radio
- delay:
hours: 0
minutes: 0
seconds: 3
milliseconds: 0
- service: media_player.volume_set
data:
volume_level: 0.7
target:
device_id: 4f357710c9c63d2d557478e54fde3624
- delay:
hours: 0
minutes: 0
seconds: 3
milliseconds: 0
- service: media_player.volume_set
data:
volume_level: 0.7
target:
device_id: 454403537770ca5bb484b5fa0f2a8b7b
- delay:
hours: 0
minutes: 0
seconds: 3
milliseconds: 0
- delay:
hours: 0
minutes: 0
seconds: 3
milliseconds: 0
- repeat:
count: "30"
sequence:
- type: toggle
device_id: 3127859515a6505bf23c35ef6e22f87c
entity_id: switch.moukey_volume_up
domain: switch
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
enabled: false
- service: media_player.volume_set
data:
volume_level: 0.7
target:
device_id: e39666e6342a6e77fd1353ebec407bce
- service: tts.cloud_say
data:
entity_id: media_player.pool_nest_audio
message: >-
{% set forecast = state_attr('weather.home', 'forecast')[0] %} Today
will be {{forecast.condition}} with a high of {{forecast.temperature}}
and a low of {{forecast.templow}}. Currently it is
{{states('sensor.home_apparent_temperature')}} degrees. The pool water
is currently at {{states('sensor.pool_temp')}} degrees
options:
gender: male
- service: retry.call
data: {}
mode: single