#How to debug an automations to discover which do an action

1 messages · Page 1 of 1 (latest)

low quiver
#

Hi All
I've a trouble with my HA and a Sonoff DUAL R3. Some months ago I created an automation to turn on from 8/Dec up to 6/Jan from the sunset up to sunrise the external Christmas lights of my house.
I tested and all worked fine, now that I need to run regular way I've a trouble on the Sonoff device the lights turned off immediately. I tried to do the below action without success:

  • disable the automation related the Christmas ligths
  • check others automation if there is in wrong association
  • tried to search in the automation.yaml any references of Christmas lights and comment it
  • I check also by Sonoff application if there are some timer, scheduler and so on, but there aren't

From registry I see the message: Christmas lights off activated by Switch action: Turn on
How can I debug or find where is defined the turn off of this device and try to solve?

Regards

gaunt radish
#

Sort them by last triggered should give you a good idea

low quiver
#

I've tried to sort in the history, but I only see the message wrote before.

low quiver
#

The first row its the turn off (automated by something), the second its the turn on manually by me

#

no other messages in the history

gaunt radish
#

Go into the automations tab, you can sort them by when the automations were triggered

low quiver
#

In the automation list, after I commented in the automation.yaml there aren't any last task run in the same time.

gaunt radish
#

What automation.yaml

low quiver
low quiver
#

I commented these lines

`# - id: '1724677593087'

alias: Spegni Luci Esterne

description: Spegnimento programmato luci retro, natale e striscia

triggers:

- at: 00:01:00

trigger: time

conditions: []

actions:

- action: switch.turn_off

metadata: {}

data: {}

target:

entity_id:

- switch.sonoff_100126429d

mode: single`

#

but something still turn off the lights

fading silo
#

If it turns off immediately after turn on, I will guess some kind of short in the light string and it is triggering a safety overload shutoff.

#

That device has overload protection I see

#

I think the "turned off by switch.turn_on" is not necessarily accurate.

#

Unplug the lights from the socket and see if it still happens.