When... And... Than... in Automation

Easyer webconfig in Automation, and the configured items show in automation menu.

example:
“When SensorX its over/under 40 Than turn on/off Relay X” or
“When SensorX its over 40 and under 45 and SensorY its 0 Than turn on/off Relay X” or
“When SwitchX is On, than Turn on RelayX and turn off RelayY” or
"When time is after XX:XX:XX and SensorX its under 40 than turn on Relay X "