Hi Kajmaj,
I’ve seen your script for toggling lights, but I don’t undersand the registers you are using.
As far as I can read it from the description of the registers it does the following:
writing 2 to 0x047B means assigning LIGHTNING function to this timer
writing 3 to 0x0470 means setting timer ALWAYS ON
writing 1 to 0x02F0 means EPROM Write
I could not find the function for register 0x02F5 ??? What is it for?
To be honest there is some hesitation to brick my device. Would you please explain the whole stuff.
Thanks a lot in advance.
Best Regards, Gerd
Hi Gerd,
You are asking for “prehistoric” time
Sequencies neded to control assigned relays (lights, filtration, AUX3 and AUX4) I received from a guy from another forum 6 yrs ago I guess. Since that it works with no issues.
BTW During my trials I soft bricked control unit while I was trying change modes via modbus. It was possible to manually restore settings from the service menu.
0x02F0 >> MBF_SAVE_TO_EEPROM
0x02F5 >> MBF_EXEC
Technically, based on this: EEPROM write operations occur periodically each 10 minutes. However, after doing a modification of a MODBUS configuration register it is recommended to force a write operation, since this is the only secure way to keep the information if the box is switched off before the periodic EEPROM write operation automatically occurs.
immediate write to EEPROM is not needed.
Thanks a lot!
Hello everyone. I’ve been reading this great post for days and trying to understand everything so as not to ask questions that are already answered here. I’m using a HF5111S module and I’ve removed the Vistapool Wifi Module to work only in local mode and without the cloud. I have connection problems, the sensors in HA are worthless which means something is wrong.
I have tested the code of Kajmak
And thi from Tonglor
But it doesn’t work for me, I’ve reviewed configuratio.yaml file, cables, IP but I don’t know what to do anymore.
With the software AV Reporter returns me Error: “Modbus read error! Error code: -2”
Any ideas?
What App is this?
I appreciate a response, I am desperate with this issue
It has nothing related to HA if you are not able to read data by AV Reporter.
It could be:
- wrong configuration of your HF5111
- wrong connection between HF and Vistapool device itself (did you try to swap A/B inputs?)
It is UI of the HF5111 device.
Yes, I have swapped the A/B wires several times, but it does not respond. My connection is the same as Tonglor’s.
Thanks for your help kajmaj. I’m truly desperate and don’t see any light at the end of the tunnel. I’m currently traveling, but when I return, I will try the UI interface of the HF5111. I tried to log in, but it asked me for a username and password. I think the password is “admin.” Do you know the password?
Regards
default username and password: admin/admin
btw. Do you have set up baud rate, parity etc. on HF device iaw Vistapool modbus registers description?
No, I haven’t been able to configure any settings. I’ll try to do it from the UI of the HF5111 device. Is that the right place to do it? Thanks for the username and password information.
Without HF device set up is your desperation trully deserved
If you properly configure your HF device it should work.
Hello all, small feedback but may solve problems for many, all my 5pin connectors (display, wifi, …) were corroded badly (not really obvious at first sight with eyes) and makes faulty contacts. I’ve changed all of them and now I can communicate.
Good morning
Well, it already works, it was necessary to configure as you said, honestly I did not know where to do this process.
Now I need to control the speed of the pump, I see in the mode that it is working but not how to vary this.
I have a problem that I don’t quite understand, is it normal for the performance and refreshment to be slow? It’s not that it’s slow but it works a bit strangely, the data takes a while to update. Is there any value I can modify to improve this?
Thank you kajmaj for your help, my well-deserved despair was relieved
Hi again
Yesterday my pool repairman informed me that in 4 or 6 weeks he will launch an integration for swimming pools in Home Assitant. Honestly I haven’t had time to look at it but it looks interesting. I attach the manual link that they sent me from wattr

As of reading/polling interval of sensors you can set scan_interval
for each sensor ( Modbus - Home Assistant).
I do not use a pump with variable speed so cannot help. If you know the proper register address and register description it should be possible to control it.
I’ll try changing some of the values for some of the entities to see if it improves.
I’ll continue investigating the pump speed.
Thanks kajmaj for your support.
Hello, 1700e the box, it must be a joke ?
Wow, I’m so jealous! I’ve never even been able to see the pH. I don’t know what I’m doing wrong. I have an Elfin parallel to the 485, so I have VistaPool on one side and Elfin on the other. I access Elfin with port 80 or Telnet 23, but I think I have a conceptual problem. Right now, I have this configuration, and I can’t read the pH.
# modbus piscina
modbus:
- name: modbus_piscina
type: tcp
host: 192.168.44.134
port: 23
delay: 5
message_wait_milliseconds: 30
timeout: 3000
sensors:
- name: pH Piscina
input_type: input
unit_of_measurement: pH
data_type: uint16
slave: 1
address: 258
unique_id: modbus_piscina
scale: 0.01
offset: 0
Are you able to read anything else?
I don’t know how to read more. If I connect to Elfin via Telnet, I see this. I understand I have to connect to the Elfin-RS485, which is in parallel with VistaPool, right?
Well, everything is described/discussed earlier in this thread.
I would suggest to go through
You should, at least:
- properly configure MODBUS / RS485 converter
- properly connect MODBUS / RS485 converter to VistaPool device
- VistaPool switch to the manual mode ( if I remember well )
- test it (for testing I use AV Reporter Modbus Communication Tester)