Method 1: We use the Inclusion-Exclusion Principle.
There are $\binom{30}{3}$ ways to select three of the thirty numbers in the set $\{1, 2, 3, \ldots, 30\}$. From these, we must subtract those selections in which two or more of the selected numbers are consecutive.
A pair of consecutive numbers is selected: Since the smaller number in the pair can be at most $29$, there are $29$ ways to select the smaller number in the pair. Doing so also determines the larger number in the pair. That leaves $28$ ways to select the third number. Thus, there are $29 \cdot 28$ ways to select three numbers from the set so that the selected numbers include a pair of consecutive numbers.
However, if we subtract this amount from the total, we will have subtracted each case in which there are three consecutive numbers twice, once when we designate the two smallest numbers as our pair of consecutive numbers and once when we designate the two largest numbers as our pair of consecutive numbers. We only want to subtract such cases once, so we must add them back.
Two pairs of consecutive numbers are selected: This can only occur if all three numbers are consecutive. There are $28$ ways to select the smallest of these three numbers, so there are $28$ such cases.
By the Inclusion-Exclusion Principle, the number of ways to select three numbers from the set $\{1, 2, 3, \ldots, 30\}$ so that no two of the three numbers are consecutive is
$$\binom{30}{3} - 29 \cdot 28 + 28$$
Method 2: We modify your approach.
There are still $\binom{30}{3}$ ways to select three of the thirty numbers in the set $\{1, 2, 3, \ldots, 30\}$. From these, we must those selections in which there are exactly two consecutive numbers and those cases in which there are exactly three consecutive numbers.
Exactly two consecutive numbers: We consider cases.
If the consecutive numbers are $1, 2$, we can select the third number in $27$ ways since we cannot select $3$.
If the consecutive numbers are $29, 30$, we can select the third number in $27$ ways since we cannot select $28$.
Otherwise, we can select the smaller of the two consecutive numbers in $27$ ways, as it must be greater than $1$ and smaller than $29$. We now have two numbers we are prohibited from selecting as the third number, the one that is one less than the smaller of the consecutive numbers and the one that is one greater than the larger of the consecutive numbers. Hence, we can select the third number in $26$ ways. Thus, there are $27 \cdot 26$ such cases.
Exactly three consecutive numbers: We saw above that there are exactly $28$ such cases.
Hence, there are
$$\binom{30}{3} - 2 \cdot 27 - 26 \cdot 27 - 28$$
admissible selections.
Method 3: We line up $27$ blue and three green balls so that no two of the green balls are consecutive, then number the balls from left to right.
Line up $27$ blue balls. This creates $28$ spaces, $26$ between successive blue balls and two at the ends of the row. To ensure no two green balls are adjacent, choose three of these $28$ spaces in which to place a green ball. This can be done in $\binom{28}{3}$ ways. Now number the balls from left to right. Since there is at least one blue ball between each pair of green balls, no two of the numbers on the green balls are consecutive. Hence, the number of ways we can select three numbers from the set $\{1, 2, 3, \ldots, 30\}$ so that no two of the numbers are consecutive is
$$\binom{28}{3}$$
You should verify that each of the above methods yields the same count.