So ive created a Virtual Switch to be turned ON when my room temperature reaches 27°C, and i have a routine on alexa that when that switch is ON to turn on my room AC...
but i am stuck if i go to my room and turn it OFF or change the temperature, i will like that Virtual switch to go OFF in case a leave and turn off the AC and room gets heated up again...
Also that when it reaches i dont know for example 24°C to turn off the AC and the switch...
A couple of suggestions for your second question....
Try changing the Trigger Event to be that the temperature changes, rather than reporting above 27. Then add an ELSE-IF Action at the end of your current list of Actions, reading something like:
ELSE-IF (Temperature of Indoor temperature is <= 24 AND
V. Master Temperature is on) THEN
Off: V.Master Temperature
Good point about the number of times the rule would trigger, I hadn't considered that... and nice use of the wait action.
And to answer @floresleal 's original question, if you make that wait cancellable, you could setup a second rule to cancel this one if the virtual switch is turned off.
My apologies - I should have been clearer. I used the Omni sensor to build a sample rule. In your case, you can replace where it says “Omni sensor” in my sample rule with your “Indoor temperature” sensor.
Odd indeed! I wonder if maybe the Wait event is processed too quickly, and before the On condition has been reached… Try adding a 1 second wait time before the wait condition to see if it makes a difference.
i just noticed the trigger device was like frozen since two days ago, since then it hasnt updated the temperature... i just remove it and add it again and it did turned on the ac.
whats its strange is that the switch was turned off imediately... dont know why.
it seems to be working, but still dont know why the switch immediately goes off, so when reaching the desired temp it keeps going without turning the AC off
Have you tried turning on logging in the rule to see what happens? You can post a screenshot of the result in case there is something we can see that can help us help you…
You can see the logs on the « Logs » tab on the bottom of the dark gray tab on the left of the Hubitat screen. It allows you to see the current and the past logs. You can filter by device or app on the top of the log.