My Automation turn on a switch in a another automation

i have 3 automations. 1 is a lufx bulb to turn on at a time
2. is the same bulb to turn off at a time
3. is a sonoff switch to turn off at a time.
at the time lufx bulb turn on the sonoff switch turn on as well

What have you tried?
Please post your automation using the instructions at the op of this page.

1 Like

you really ought to give us your automations if you want us to find what’s wrong with them :wink:

You mean we are not just sitting here waiting to automate their home? :smiley:

1 Like
 id: '1553098683016'

alias: Hall Light
trigger:

  • at: ‘18:20’
    platform: time
    condition: []
    action:

  • service: light.turn_on

  • id: ‘1553102273452’
    alias: Hall Light
    trigger:

    • at: ‘23:59’
      platform: time
      condition: []
      action:
    • service: light.turn_off
  • id: ‘1553260673559’
    alias: OutSide Light
    trigger:

    • at: ‘23:59’
      platform: time
      condition: []
      action:
    • service: light.turn_off

Unless I’m not seeing something you don’t have any entity_id’s defined for the light.turn_on/turn_off service calls.

you need to properly format your code when posting.

1 Like

the code is from the automation.yaml

Indenting matters in yaml.
You did not follow the steps at the top of this page.
We cannot detect possible errors on improperly formatted text.
If you want help here, please give us data we can use.

I’m sure it is. even so it’s incomplete.

Hall Light On
trigger type
sun
sunset
offset -01.00
No Conditions
actions type
call service
service light.turn_on
service data lifx_mini_w_396c1c

Hall Light Off
trigger type
time
at
23:59
No Conditions
actions type
call service
service light.turn_off
service data lifx_mini_w_396c1c

Rope Light
triggers type
time
23:59
No Conditions
actions type
call service
service light.turn_off
service data light.outside_light

not even close…

1 Like