Mode lighting issues


#1

Seem to have an issue with this piston firing.

The piston is setup to do the following.

  1. If motion happens during set location mode (Day/Dawn). Turn on switch (MiHome Switch). Turn on light (Hue), set level to 50%
  2. If motion happens during set location mode (Night/Eve). Turn on switch (MiHome Switch). Turn on light (Hue), set level to 30%
  3. If no motion after set time (2mins), turn off light and switch.

Anyone with any ideas?


#2

Just break it down into individual If/Else with your corresponding mode restrictions.


#3

isnt that what i did?


#4

I was thinking something like this… this is not tested, I just moved stuff around and substituted some dummy device and mode. Also I see you have a switch that you set to off instead of turn off so I don’t know what kind of device that is.