I am working my way up the ladder to make more complex automations and am having trouble finding examples of how this might be done. I want to turn a wemo outlet off if my sensor value goes above a set number, and on if it goes below. The following code works, but I would like to learn how to combine them into a single if…else type automation. Whats the best way to go about this?
YAML automations don’t really handle if/else automations very well. If you want to get into more advance constructs like that, without using two separate triggers like you have now, I’d recommend taking a look at AppDaemon.
Thanks, I tested the codes and they both work great. As for AppDaemon, I have no experience with that language so I’ll stick with what I have some understanding of, thank you for the suggestion though.