Automations stopped working - but work individually

Hello
For some reason one of my light automations has stopped working

several lights both zigbee and lightwaverf dont come on when say the sun sets but when I go into the automation and run the individual automation to turn the light on it works, anyone else have this issue

Thanks

Post your automation YAML, so we can see the code and triggers.

Thanks for the reply, sorry but I deleted the Automation and set each lamp up with its own to see if I can isolate, if that doesnt work (i’ll know tomorrow night) I’ll setup up again and try to recreate then post , but thank you

Running an automation manually only runs the action part - trigger and conditions are ignopred. Maybe that’s where the problem was.

Ok so the 4 lights that are not turning off\on with an automation are no on individual automations 3 of them did not turn off last night at 23:30 like they were supposed to

1 set of lights are controlled by a frient plug and that worked the other 3 are all Innr bulbs here is the yaml for one of them

alias: Lights Monster Lamp 1 Off
description: “”
trigger:

  • platform: time
    at: “23:30:00”
    condition:
    action:
  • service: light.turn_off
    data:
    transition: 10
    target:
    entity_id:
    - light.signify_netherlands_b_v_lwa004_huelight
    mode: single

the common denominator here is the INNR lamps but how can all 3 be faulty

What is that character in the condition line?
It might be the cause of it.

Format your post as the guidelines here says: How to help us help you - or How to ask a good question - #3

Hello

The condition is blank ie no condition is set

I have just deleted the maybe it will work now, i’ll give that a go

Thanks

Ok so I deleted the from 2 of the new automations reset the time to 9:30 and 9:45
both switched off

So fingers crossed its solved will recreate the full automation to run tonight then see what happens

dont understand where\why are suddenly a problem though

anyway thanks fingers crossed I’ll know at about 23:30 tonight :wink:

I do not know what that square is, but if it is in a condition, then HA will read it as something that needs to be true for it to trigger and if it is just a square, then only a developer will know how it reacts to that.

Sorry its not a square its [ ] open and closed square brackets

ahhh, you really should format your post as mentioned earlier.
The post editor change it to a square, so we have no change to see the real characters.

2 Likes

In the YAML it now shows null instead of [ ]

Delete the line completely if you do not use it.

1 Like

And please post your automation with the proper formatting.
This might be an issue of a bad indentation and we can not see the indentations without that formatting.

1 Like

So I tried to add 2 Innr lights that had stopped responding and they could not befound so I decided to buy a new sonoff zigbee stick E ie latest one flashed the firmware and rebuilt my network, Innr bulbs connected straight away but the auomation below does not trigger the garden lights for some reason, could you take a look and tell me what I have done wrong please

alias: Lights On All
description: “”
trigger:

  • platform: sun
    event: sunset
    offset: “+10”
    action:
  • service: light.turn_on
    data:
    transition: 60
    brightness_pct: 10
    target:
    entity_id: light.bedroom_lamps
    device_id:
    - 13b83a1cc6d90d0842447a8c3f2f26a0
    - fe2192c8c2fe2038b8ce103d70abec4f
  • service: light.turn_on
    data: {}
    target:
    entity_id: light.coach_lights
  • service: switch.turn_on
    data: {}
    target:
    device_id: 792d00699d6a3c1dcf4ddfbd7b298925
    mode: single

thanks

Strange garden lights is missing from the yaml but showing in the visual editor

Ill investigate further thanks

Try to avoid using device ids.
Use entities instead, like light, switch, sensor, binary_sensor and so on.

2 Likes