BTW
Not to take anything away from HCA but it isn't the only HA app that lets you create programming logic using a 'visual designer'.
Here's an
example that implements the following requirement:
A bathroom light is turned on by either of two sensors and its brightness is set according to the time of day. When the light is activated, the bathroom fan starts up 2 minutes later and runs as long as the lights are on. Once the lights are turned off, the fan should run for 10 minutes then turn off.