AqualinkD
AqualinkD copied to clipboard
Got working with EW-11 wireless device!
So, for ease of use, had to make the Dockerfile pull the aqualinkd-docker.cmd and aqualinkd.conf from my local repo for easier builds, and added at the bottom of the aqualinkd-docker.cmd the following: echo "Starting SOCAT port binding....." socat -d -d pty,link=/dev/tty.Pool2,raw TCP:192.168.99.248:8899 & echo "Sleeping for SOCAT start....." sleep 5s echo "Starting aqualinkd......" /usr/local/bin/aqualinkd -d -c $AQUA_CONF
I also had to add the socat package into the docker image by editing the apt-get install line to include socat.
All of this is working with local tty.Pool port, but seeing some odd behavior on the Jandy ePump 1 -
Warning: RS Serial: Serial read bad Jandy checksum, ignoring Warning: RS Serial: Read BAD PACKET To 0x78 of type ePump set RPM | HEX: 0x10|0x02|0x78|0x44|0x80|0xdf|0xfb|0xff|0xff|0xff|0x10|0x02|0x78|0x41|0xcb|0x10|0x03| Notice: JandyDvce: Jandy Pump found at ID 0x78 with WATTS 532, but not configured, information ignored! Warning: iAQ Touch: Got pump message 'Jandy ePUMP 1' but can't find pump at index 1 Warning: iAQ Touch: Got pump message ' RPM: 2150' but can't find pump Warning: iAQ Touch: Got pump message ' Watts: 532' but can't find pump Notice: JandyDvce: Jandy Pump found at ID 0x78 with RPM 2150, but not configured, information ignored! Notice: JandyDvce: Jandy Pump found at ID 0x78 with WATTS 533, but not configured, information ignored!
I noticed that the pump cannot be set at address 0x78 but in my setup it appears the pump is addressed there. Not sure if that was my idiot pool builder company, or if this is something new.
If it helps, here is the output of the serial logger: # /usr/local/bin/serial_logger /dev/tty.Pool2 AqualinkD serial_logger V2.1 Warning: RS Serial: Doesn't look like your USB2RS485 device (/dev/tty.Pool2) supports low latency, this might cause problems on a busy RS485 bus (25): Inappropriate ioctl for device Notice: RS Serial: Logging serial information! Please wait.Warning: RS Serial: Serial read bad Jandy checksum, ignoring Warning: RS Serial: Read BAD PACKET To 0x80 of type Unknown '0xff' | HEX: 0x10|0x02|0x80|0xff|0xfb|0xff|0x7f|0xff|0xee|0xb7|0xff|0x21|0x10|0x03| /
Notice: RS Serial: RS485 interface received 600 packets in 67 seconds (~8.96 Msg/Sec)
Notice: RS Serial: Jandy Control Panel Model :
Notice: RS Serial: Jandy Control Panel Version :
Notice: RS Serial: Jandy ID's found
Notice: RS Serial: ID 0x32 is not used <-- can use for Aqualinkd (Prefered Extended Device ID)
Notice: RS Serial: ID 0x50 is in use <-- Salt Water Generator (Aquarite mode)
Notice: RS Serial: ID 0x78 is in use <-- Jandy VSP ePump
Notice: RS Serial: ID 0x33 is in use <-- Aqualink (iAqualink / Touch)
Notice: RS Serial: ID 0xa3 is in use <-- Unknown Device
Notice: RS Serial: ID 0x30 is not used <-- can use for Aqualinkd (Prefered Extended Device ID)
Notice: RS Serial: ID 0x60 is not used <-- can use for Aqualinkd (PDA mode only)
Notice: RS Serial: ID 0x48 is not used <-- can use for Aqualinkd (RSSA ID)
Notice: RS Serial: ID 0x08 is not used <-- can use for Aqualinkd
Notice: RS Serial: ID 0x09 is not used <-- can use for Aqualinkd
Notice: RS Serial: ID 0x0a is not used <-- can use for Aqualinkd
Notice: RS Serial: ID 0x0b is not used <-- can use for Aqualinkd
Notice: RS Serial: ID 0x40 is not used <-- can use for Aqualinkd (Extended Device ID)
Notice: RS Serial: ID 0x41 is not used <-- can use for Aqualinkd (Extended Device ID)
Notice: RS Serial: ID 0x42 is not used <-- can use for Aqualinkd (Extended Device ID)
Notice: RS Serial: ID 0x43 is not used <-- can use for Aqualinkd (Extended Device ID)
Notice: RS Serial:
Notice: RS Serial: Suggested aqualinkd.conf values
Notice: RS Serial: -------------------------
Notice: RS Serial: device_id = 0x08
Notice: RS Serial: rssa_device_id = 0x48
Notice: RS Serial: extended_device_id = 0x32
Notice: RS Serial: -------------------------
Also not sure of the ?Read BAD PACKET" messages that I included above, it could be latency to the RS485 wifi adapter. I am using this one - https://www.amazon.com/dp/B0C7RLWLF5?psc=1&ref=ppx_yo2ov_dt_b_product_details. I don't have an option to run hard-wired right now simply because of where the controls are located at my house, and a Pi won't see wifi where its at and in the metal box. I was able to use an external wifi antenna with it.
So far, this is an awesome project and has taught me a TON about Docker. Thank you for your efforts, and looking forward to getting is pump issue hashed out and working, and your tweaks for this to be a Home Assistant add-on! Amazing work and I will be promoting this repo to many tech friends with Jandy pools!