added setpoint based automation