Update. I completely rewired it, ensuring i kept any signal cables as far away from any high voltage. Remade some connections and had a general tidy up anddddddd it works :). I have ran it for around 12 hours now and so far i havnt had a single temperature reading fail.
Now i need to figure out how to resume light dimming if i had gone into manual mode and back into auto mode. Also why when dimming down to 0, it dos it 1 hour faster than when it brightens up from 0.
Just a update, temperature is sorted. One thing I did discovery was a bad Ethernet cable which I think was giving me the odd disconnects. One strange thing though is the white leds reach 0 way before they should but the blues work fine. I canât get my head round it. Code remains the same as posted above. Also @PeteKnight I got some of those suppresors. Dos it matter which way round I hook it up with the common and switched terminals? as one leg is indicated.
If youâre switching an AC load then the normal way to do it is to put the suppressor across the switched live contact of the relay and the neutral feed.
In effect, the suppressor is going across the live and neutral supply to the load thatâs being switched, but the suppressor should be as close as practical to the relay contacts.
With AC loads the polarisation of the suppressor doesnât matter.
Excellent thank you very much, Iâll get those fitted later today and see what happens :D. Still canât get my head round why my led dimming is a little off :/.
Today, for some reason, the lights went off at 19:30 instead of 21:30 that it was set to. 18:30 on the clock and slider set to 180 for 3 hour dimming.