I have some code that I have pieced together for my RA+ with help from Roberto and by scavenging from examples I found here.

I just uploaded the code last night and the heater is not turning on, I have to override from Auto to ON. The other issue is more of a question. Given the code shown below, would setting a Jebao mode on the UAPP cause the RA to use that mode? I know the code from the loop will use ReefCrest if I set the portal to Custom, but not sure what would happen if I set to another mode.

If I need to add code to be able to override the mode via the UAPP, what should I add? Thanks in advance for any help or insight.

this line says to turn on when the temp is at 68.0 and then shut off when it gets to 78.0. so it won't turn on until the low value is hit (aka the temp drops below 68.0).you are allowing for a 10 degree temp drop, which is probably not what you want.you also are using the overheat temperature line incorrectly too. you have the overheat temperature set to be 78.0. this means that when 78.0 is hit, the ports you have designated will shut off until you clear the overheat.

so, you are probably wanting your tank to be around 78.0 degrees or so. you probably also want to increase the overheat to be maybe 85.0 or maybe even 83.0 (or whatever).the standard heater line should be something like this:

this will keep the tank between 77.5 and 78.5. feel free to adapt as needed.you will want to change the overheat temp from 780 to maybe 830.InternalMemory.overheattemp_write(830)(or whatever that line says specifically.... I'm on mobile device and hard to type exactly).

Thanks! I had it wrong because I was thinking it would turn on at 68 or above and turn off after it got to 78. I see what you mean about the temp swing, it would be deadly to most critters. My house is A/C and we keep it at 70 all day, but you never know.

One quick question that I know you probably can answer easily. From my code, do you think it is coded properly so that if I set a mode in the UAPP it would stick? The loop is only checking for custom to set ReefCrest, but I can't point to the place where it would read from UAPP to set the mode on the pumps.

Quick edit: It is now 9:35 PM and the damn thing is still in ReefCrest mode, should have switched to night mode...