Do I understand correctly that it is no longer possible to integrate the vistapool cloud in HA (using the vistapool wifi device)?
That means the only way to get vistapool data in HA is using modbus and direct communication (PI with usb adapter or HF2211 )?
I want to order the vistapool wifi device, but if I can’t use it for HA integration I don’t think I’m interested.
Correct, buying a vistapool wifi device would be a waste of money since they disabled cloud API access.
Using MODBUS is the only way to get data from the sugar valley now.
I never got the HF2211 to work, but the PI + usb adapter solution is still working fine for me.
Excuse my English, I’m Spanish.
It is not clear to me, for it to work in HA I have to buy vistapool? or do I have to use this option with tasmota (Sugar Valley NeoPool Controller - Tasmota)? The tasmota option is far from my knowledge.
Hello, thank you all for sharing your experience. Personally i finally manage to get data via Modbus does still struggling to get the right address (and bit) for the cover and the led.
Does anyone know in what register this info is ?
Thanks for the help.
Register 0x010E
Name MBF_RELAY_STATE
Description This register contains the status of each configurable relays:
0 0x0001 Status relay 1 (1 on; 0 off) (normally assigned to ph)
1 0x0002 Status relay 2 (1 on; 0 off) (normally assigned to filtration)
2 0x0004 Status relay 3 (1 on; 0 off) (normally assigned to lightning)
3 0x0008 Status relay 4
4 0x0010 Status relay 5
5 0x0020 Status relay 6
6 0x0040 Status relay 7
Thanks for your answer Uspino. but then how do i get to each status relay ?
I use to do the following for the other sensors such as address 262 for the temp,
sensors:
- name: Pool_relay_270
slave: 1
address: 270
input_type: holding
scan_interval: 300
should i do something like this ?
{{ states('sensor.pool_relay_270') | int | bitwise_and(2) }} to get the status of relay 3 ?
What do you want to control by “cover”?
!!! MBF_RELAY_STATE is not for relay control !!! if you try to write there, you can brick or, in the better case, soft brick the device.
Each bit in this register works as “binary sensor”
this is how I read it (working templates):
ph peristalic pump state {{ states('sensor.MBF_RELAY_STATE')|int(0) // 1 % 2 }}
filtration relay state {{ states('sensor.MBF_RELAY_STATE')|int(0) // 2 % 2 }}
For controlling LED (single color) write sequence to 4 registers is needed
First column is for ON, third for OFF sequence.
Dear Kajmaj, thanks for your answer and indeed, i forgot to say that my objective was first to read. Writing is for later (maybe :slight_smile: ).
If i understand correctly the answer to my question is
lights are on if {{ states('sensor.MBF_RELAY_STATE') | int(0) // 4 % 2 == 1 }}
if this is true, you make my day
I have just installed the Sugar valey equipment and I am worried about making a mistake, I would appreciate it if you could confirm if the connection configuration is correct, I attach images, there are 5 pins in the connection module.