Smart action dependent upon previously run action

Smart action dependent upon previously run action

Smart action dependent upon previously run action
Smart action dependent upon previously run action
Tuesday

A bit involved to explain  ...

 

I have two smart actions for controlling by indoor cameras.

 

The first one sets privicy mode off, if it's on.

 

The second action sets privicy mode back on.

 

 I would like that second smart action to be run ONLY if privicy mode had been turned off by the first smart action, not if it was already turned off.

 

The idea is that I keep privicy mode on during the day when we're at home and it's automatically turned off during the night, but if we're away, e.g. on vacation, I will manually turn the privicy mode off and don't want the second smart action to turn it back on in the morning.

 

Does that make sense?

 

I know I can disable the smart actions when we go away and re-enable when we get home, but it would be easier if the actions took care of it all

 

Any thoughts?

  0      
  0      
#1
Options
6 Reply
Re:Smart action dependent upon previously run action
Wednesday

  @Samo 

I don't know if I have understood your requirement correctly, but I solved a similar problem with a smart button and two actions (one click to set Privacy mode ON, plus disabling the motion sensor at the entrance door, and two clicks to set it OFF, plus enabling the same motion sensor). This requires two manual actions, though, but without using the smartphone.

  0  
  0  
#2
Options
Re:Smart action dependent upon previously run action
Wednesday

  @MarioInJapan 

Hi

Thanks for the reply. Not really sure that's really what I want.

 

BUT - I had inspiration during the night🙂...

 

I think I can combine the two smart actions with a delay of 12 hours between turning the privicy modes on and off.

 

..so, turning the privicy mode on wouldn't happen unless it had already been automatically turned on. 

 

 

  0  
  0  
#3
Options
Re:Smart action dependent upon previously run action
Wednesday

  @Samo 

Hi,
Typically, the action of a smart action entry can't be set to the trigger of another entry.
Would you please describe the smart action entry you have configured on the Tapo app so we can check if it will meet your requirements?
Best Regards

  0  
  0  
#5
Options
Re:Smart action dependent upon previously run action
Wednesday

  @Solla-topee 

Thanks.

I think I'm there after inspiration last night.

 

The smart action is:-

 

Start to run at midnight.

IF my two internal camera's provicy mode is on

THEN turn the privicy mode off.

DELAY 3 hours

DELAY 3 hours

THEN turn the privicy mode on.

THEN send a notification

 

The only thing I'm usure about is whether the THEN after the IF controls the logic flow for only the following action or the remainder of the steps.

 

If it only controls the next step, then I'll write another smary action with the IF, and if met then will run this smart action tgat has all the steps in

 

(Can you tell that I'm a software developer 😄)

 

 

  0  
  0  
#6
Options
Re:Smart action dependent upon previously run action
Wednesday

 Slight change...

 

I now have another action call INITIATE

This runs at 23:55 and does this:

IF

privicy mode of the indoor cameras is enabled 

THEN

turn on the "main" smart action

....

Then main smart action does this, 

IF

The time is 00:00

THEN

Disable privicy mode

THEN 

Delay 3 hours

Delay 3 hours

THEN

Enable privicy mode

THEN

Turn off this smart action (so that it's reset, ready for tomorrow)

 

 

So, when we go wway on vacation or whatever, all I need to do is to disable privicy mode for the cameras and it takes care of itself

Samo

 

  0  
  0  
#7
Options
Re:Smart action dependent upon previously run action
Thursday

  @Samo 

Hi,
Thank you for sharing your settings.
Best Regards

  0  
  0  
#8
Options