very new Homey user here. I have a simple problem here that I am struggling with.
I made a flow with a virtual button that turns a light on or off.
Now a part of this flow is to send a notification to my phone and have Homey say what was done: “Office light turned on/off” depending on what was done.
I just cannot figure out how to make it say ON or OFF depending on that action… I can use the tag/variable called “Turned on” but that just gives me a true or false.
So the sentence would be “Office light turned true” if the light was turned on.
I made a flow that activates when the light turns on and sets a string variable to “ON” and made another flow for “OFF”… this sort of works but only fires after the action has been taken and it will instead give me the string before it updates.
My question is this: Is there some way to do simple IF logic in the flow itself and make sure it is done before the speech/notification? (IF “Turned on” = true THEN “LightStatus” == “On”).
Mind you this is a very simple example but it would certainly be helpful later on as well in more complicated flows.
Edit: added Screenshots
Screenshot 1 (the main flow that uses the OfficeLight variable):