Occupancy simulator help newbie

hi,
sorry to be a pest

ive been using occusim for a few days and its great. i just have a few other questions i cant find an answer on

im using random time set up

Occupancy Simulator:
  module: occusim
  class: OccuSim
  log: 1
  notify: 1
  enable: input_boolean.holiday,on
  #test: 1
  dump_times: 1
  #reset_time: 02:00:00
  
  random_holiday_end: Night
  random_holiday_maxduration: '01:30:00'
  random_holiday_minduration: '00:20:00'
  random_holiday_name: Evening holiday
  random_holiday_number: '4'
  random_holiday_on_1: scene.holiday_on
  random_holiday_off_1: scene.holiday_off

  random_holiday_start: Evening

  step_evening_name: Evening
  step_evening_start: sunset - 00:45:00

  step_night_end: '22:30:00'
  step_night_name: Night
  step_night_on_1: event.MODE_CHANGE,mode
  step_night_start: '18:30:00'

Question 1 :slight_smile:

why do the random times overlap

Evening holiday_on_3 start before Evening holiday_on_0
the triggers off after Evening holiday_on_1 starts

 2017-10-28 07:20:44.332451 INFO Reloading Module: /home/homeassistant/.homeassistant/conf/apps/occusim.py
2017-10-28 07:20:44.336612 INFO Loading Object Occupancy Simulator using class OccuSim from module occusim
2017-10-28 07:20:44.351582 INFO Occupancy Simulator: Evening: @ 2017-10-28 16:58:12
2017-10-28 07:20:44.360876 INFO Occupancy Simulator: Evening holiday_on_3: @ 2017-10-28 17:08:12
2017-10-28 07:20:44.378107 INFO Occupancy Simulator: Evening holiday_on_1: @ 2017-10-28 17:26:06
2017-10-28 07:20:44.387476 INFO Occupancy Simulator: Evening holiday_off_3: @ 2017-10-28 17:33:29
2017-10-28 07:20:44.396997 INFO Occupancy Simulator: Evening holiday_on_0: @ 2017-10-28 17:41:19
2017-10-28 07:20:44.406236 INFO Occupancy Simulator: Evening holiday_off_1: @ 2017-10-28 18:03:05
2017-10-28 07:20:44.423538 INFO Occupancy Simulator: Evening holiday_off_0: @ 2017-10-28 18:26:48
2017-10-28 07:20:44.434041 INFO Occupancy Simulator: Evening holiday_on_2: @ 2017-10-28 18:43:29
2017-10-28 07:20:44.443212 INFO Occupancy Simulator: Evening holiday_off_2: @ 2017-10-28 19:24:49
2017-10-28 07:20:44.458765 INFO Occupancy Simulator: Night: @ 2017-10-28 19:51:29
2017-10-28 07:20:44.459754 INFO Reloading Module: /home/homeassistant/.homeassistant/conf/apps/hello.py
2017-10-28 07:20:44.462149 INFO App initialization complete
2017-10-28 07:20:44.479897 INFO Connected to Home Assistant 0.55.1

question 2
how does notify work?

i never use random lights, so i dont have a clue.
i think @aimc can tell if that is entended or not.

about notify:
you need to set your notify in globals.py
like:

notify = "ios"

the name should be a valid notify setup in HA.

1 Like

Because it is designed that way to add randomness.

It takes a lot more code to ensure that the random times don’t overlap and I didn;t feel the need to go to those lengths.

1 Like

It’s not a complaint just curious

Thank you

1 Like