✈ Holiday & Away Lighting

@chassio

Thanks for you input, I have to look at it later as I been so busy at this time of the year. I think I can fall asleep standing up. I added a note to follow up.

Blacky :grinning:

1 Like

@LtKowalski

Yeah but you have to set a few automation to do this as I don’t have an option for this. I do like the idea so I added it to the list to maybe have a count so it will do it x amount of times.

Blacky :grinning:

1 Like

Thank you very much for this blueprint. I really appreciate it and have been using it for the past few months.

I would like to suggest the following improvements and extensions:

  • Separate conditions for turning on and turning off
  • Option to combine sun elevation with weather data (cloud cover)
  • Selectable source for sun elevation
  • Selectable random delay for sun elevation
  • The “Turn On Time” trigger runs every day even when it is not enabled (visible in the traces); a different event sequence could avoid this behavior.

Best regards

@JustinTimex64

Thanks for your suggestions and feedback.

Blacky :grinning:

This seems to be a powerfull tool that will work with many different variables. But I have a simple case and, after several attempts I can’t figure outy how to get it to work.

I want is a vacation away timer. I’d like the automation to start shortly after sunset and to stop at a set time say 1040PM. During this time, I want two lamps tp go on and off randomly and, I don’t want the lamps to go on and off at the same time. Last, I’d like both lamps to shut off at around the end time.

How do i do this?

I realize I’m asking for you or someone to tell how do create this configuration. I just haven’t been able to figure it out.

Thanks in advance.

Hal

@halteach

  1. Your trigger is sun elevation.
  2. Lights ON Order is Shuffled (or what you would like)
  3. Random ON Delay to your liking
  4. Lights ON Duration Method = Use Earliest and Latest Time Range
  5. Earliest OFF Time could be 10:20 and Latest OFF Time could be 11:00
  6. Lights OFF Order is Shuffled (or what you would like)
  7. Random OFF Delay to your liking.

This will turn the lights ON at sunset and turn OFF between 10:20 to 11:00.

Blacky :grinning:

Thank you very much for this powerful tool! I was running my presence simulation with some ChatGPT-ed scripts, but the time my lights were on was pretty long, so your blueprint will allow me a much more granular configuration.

I have not been able to set it up properly, though. I’d like to ask for some help. This is my current YAML:

alias: Presence simulation NEW
description: ""
use_blueprint:
  path: Blackshome/holiday-away-lighting.yaml
  input:
    trigger_selection: entity_state_on
    entity_state_on: input_boolean.presence_simulation_new
    entity_order_on: entities_on_shuffled
    entity_order_off: entities_off_shuffled
    entity_1: light.pasillo
    entity_2: light.escaleras_3
    entity_3: light.habitacion_norte
    entity_4: light.garaje
    automation_control: disable_automation_control

The automation “Presence simulation NEW” is activated or deactivated by some other automations that run before sunset or after sunrise. They run ONLY if the the entity named “input_boolean.presence_simulation_new” is ON. This boolean is my toggle to activate and deactivate the presence simulation.

In other words:

  1. When I leave home, I toggle ON the boolean.
  2. The automation of this blueprint is activated by another automation when sun is down. Automation is correctly activated, this has been verified.
  3. I would expect the YAML to start shuffling lights on and off until. → This does not happen.

Any help would be appreciated. Thank you again for your work!

@GePeGe

What happens with your automation settings.

  1. Trigger when input_boolean.presence_simulation_new turns ON and this trigger can be delayed for somewhere between 0 and 15 min as set in your Entity State - ON - Time Delay. It picks a random delay.
  2. Then your lights will turn ON in a Shuffled order with a random delay between 0 to 30 seconds.
  3. Your lights will be ON for 5 to 10 min as per your Lights ON Duration Method
  4. Then your lights will turn OFF again in a Shuffled order with a random delay between 0 to 30 seconds.

It will do it once and not ON / OFF many times until input_boolean.presence_simulation_new turns OFF.

Blacky :grinning:

Thanks for taking the time to respond! So what would be the most intelligent way to make the automation turn in permanence until the boolean turns off? Thanks again!

@GePeGe

I have on my development road map to have this an option.

Blacky :grinning:

Thank you. Looking forward to it!