HA NeoPool MQTT: integration of Tasmota NeoPool (for Sugar Valley, Hayward/Aquarite, Bayrol devices)

@Danton73 did you read my previous post? I’d like to complete the docs with the template for the S3.

Please let me know, thanks.

Hi Alex,

Sorry, I hadn’t connected to the site for a while and missed these checks.
In these days I will try to test what you reported and I will let you know!

1 Like

Hi Alex,

In the console, I’ve past what you wrote, but show me this after enter:
10:27:41.041 CMD: Template {“NAME”:“NeoPool AtomS3 Lite + Atomic RS485 Base”,“GPIO”:[0,0,0,0,0,7008,6976,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],“FLAG”:0,“BASE”:1};
10:27:41.054 RSL: RESULT = {“Template”:“Invalid JSON”}

After restart, GPIO 05 and 06 are NONE

image

Le virgolette erano sbagliate, infatti ti dà errore INVALID JSON, hai notato?

Ho modificato il template nel precedente post, riprova, comunque te lo rimetto qui:

Template {"NAME":"NeoPool AtomS3 Lite + Atomic RS485 Base","GPIO":[0,0,0,0,0,7008,6976,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"FLAG":0,"BASE":1};

Ciao Alex,

Stesso problema:

10:48:34.328 CMD: Template {“NAME”:“NeoPool AtomS3 Lite + Atomic RS485 Base”,“GPIO”:[0,0,0,0,0,7008,6976,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],“FLAG”:0,“BASE”:1};
10:48:34.342 RSL: RESULT = {“Template”:“Invalid JSON”}

Ho copiato quanto da te postato prima, ma mi sembra la stessa dicitura del precedente post

the trailing semicolon is wrong (this only works in conjunction with the Tasmota Backlog command)

it must be removed

Template {"NAME":"NeoPool AtomS3 Lite + Atomic RS485 Base","GPIO":[0,0,0,0,0,7008,6976,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"FLAG":0,"BASE":1}

1 Like

Without trailing semicolon works:

11:24:07.819 CMD: Template {“NAME”:“NeoPool AtomS3 Lite + Atomic RS485 Base”,“GPIO”:[0,0,0,0,0,7008,6976,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],“FLAG”:0,“BASE”:1}
11:24:07.834 RSL: RESULT = {“NAME”:“NeoPool AtomS3 Lite + Atomic RS485 Base”,“GPIO”:[0,0,0,0,0,7008,6976,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],“FLAG”:0,“BASE”:1}

But after restart, GPIO05 and 06 are again NONE

image

Your screenshot shows dialog “Configure Module” selection and you have to select here your fresh defined “NeoPool AtomS3 Lite + Atomic RS485 Base” to work. You will then no longer see GPIO5/6 in this dialog, as it is occupied by the template definition.

To verify the GPIO assignement for your template use “Configuration” → “Configure Template”.

OK, after change it in the configuration, configure template is below:

image

Glad to see you here. Did you start using HA in production? :slight_smile:

So I assume we have the official working template for S3?

Not yet… I waiting for Raspberry Pi4… coming soon (expected delivery next week).

So I assume we have the official working template for S3?
I think yes… well, next step is configure it in HA… another long chat with you!! :smile:

The message was for @curzon01. :slight_smile:

1 Like

Yes, legacy home automation completly replaced and enhanced by HA features.

I think so too

I think HA is perfect for an expert developer like you. You’ll love it. Glad to see you onboard.

So I’ll put this in the docs and in the override ini file and in docs…without the semicolon this time. :slight_smile:

Template {"NAME":"NeoPool AtomS3 Lite + Atomic RS485 Base","GPIO":[0,0,0,0,0,7008,6976,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"FLAG":0,"BASE":1}

Well guys,
I’ve received the Rasp Pi4 and I installed some shortcuts to my smarthome.
Soon I will start the part regarding interfacing with the swimming pool.
Where should I start from to avoid mistakes?

Read the repository’s readme: you’ve done point 1, now you need the rest.

@curzon01 Hi Norbert. Since yesterday I’m having issues with the setup. The Atom Lite is working, but I see no data from the aquarite on Tasmota home screen.

I see “unknown commands” in the console, so I guess there’s no RS485 communication going on. I’m thinking probably the Tail485 is the issue, since the Atom Lite is working fine.

I also tried to change the port, from EXT to WIFI but it didn’t work.

What do you suggest to do to debug the issue and understand what the cause is?

Thanks.

Compile Tasmota with #define DEBUG_TASMOTA_SENSOR (and also with #define USE_NEOPOOL), then use command WebLog 4 to get communication debug info on console.
You now see the Modbus queries to the device. If your Atom does not receive a response to these requests, it is the Tail485, the cabling to the device or the device itself. The latter can only be excluded with the help of another 485 interface on a PC or using the Display on these ports.

Sorry for late feedback

To complete (you remember?):

“unknown” as command result means

  • your Tasmota is compiled without NEOPOOL module (you can’t choice “NeoPool Rx/Tx” in GPIO assignment)
  • or your Tasmota configuration has lost the GPIO NeoPool assigment

I’m guessing the latter due to Tasmota boot protection reset your Atom to default.

Tasmota command “NPxxx” (ex NPTelePeriod, NPOnError, NPPHRes, NPCLRes, NPIONRes) e.g. NPTime command results:

  • Tasmota compiled without NEOPOOL module:
    {"Command":"Unknown"}
  • Tasmota compiled with NEOPOOL module but GPIOs are unassigned:
    {"Command":"Unknown"}
  • Tasmota compiled with NEOPOOL module, GPIOs assigned, device not connected (bad RS485 interface, bad cable or other communication reason):
    {"NPTime":"Error"}

I excluded that, because it was working 8h before I noticed the problem, and I didn’t upload any new firmware.

I checked and the GPIOs were ok.

So this is even stranger…the problem now is that after 2days I wrote the post for you, I returned my Tail485 thinking it was broken, and I ordered 2 Atomic RS485 base, but it will take 2 weeks to be delivered from m5stack (China). :frowning:

The good thing is that they’ve updated docs for the Pin Mappings, including all supported devices by the Atomic RS485: but I noticed they report G5 as TX and G6 as RX, and we know that on Tasmota G5 is NeoPool RX and G6 is NeoPool TX. It could make sense, crossing tx with the rx of the board, but for Tail485 the docs report TX straight with NeoPool TX and same for RX.