michaelusner / esp32-pentair-controller

Control your Pentair pool equipment via RS485->ESP32->MQTT->Home Assistant
27 stars 7 forks source link

Working code? #1

Open XMaarten opened 3 years ago

XMaarten commented 3 years ago

I would like to do the same thing at my home. Is your project already in a working state?

Thanks, Maarten

michaelusner commented 3 years ago

@XMaarten ,

Yes, the code is working and is running on my ESP32 sitting in front of me.  It's integrated with HomeAssistant and I'm able to control via my phone.I am seeing an issue where after a few days, it will stop controlling equipment.  When I connect to the ESP32's serial port, it will start working again so it's hard to debug. I have a few changes I wanted to make but it it is in a "mostly" working state today.

I'll add a picture of the controller in a moment.

michaelusner commented 1 year ago

I'm working on an ESPHome version of this project that should allow more flexibility and better integration in Home Assistant. It's still a WIP but I'll update the issues here when it's ready.

XMaarten commented 1 year ago

Are you making any progress with your ESPHome version? Could you maybe publish the work you done so far in a development branch so others, like me, can help you with development?

I found another project that seems to be useful. I think it is for a different protocol, but is for integrating a pump with ESPHome as well. It might be useful to work together. See CentryVSPump

michaelusner commented 1 year ago

Hi Maarten,

I had to replace my main Easytouch board after lightning destroyed it. I also added a ScreenLogic2 controller so the urgency on this project isn't so great anymore. I also found that the com portion of my pump is not working either and will have to replace the pump drive. I'm using a manually programmed schedule for the pump now but I think I'm at the point where I can resume my work on this project.

My plan was to create a custom ESPHome component where the pool device RS485 addresses can be defined in the yaml file. I have a basic component that reads air and water temperature and displays in Home Assistant but am having a bit of trouble adding a custom switch to the component for the devices. I have to say that I'm very discouraged at the lack of ESPHome documentation and examples for a use-case like this.

Anyway, I'll continue here and once I solve the custom switch problem, I should be able to make good progress.

Thanks, Mike

On Wed, Jun 28, 2023 at 2:58 PM Maarten Bremer @.***> wrote:

Are you making any progress with your ESPHome version? Could you maybe publish the work you done so far in a development branch so others, like me, can help you with development?

I found another project that seems to be useful. I think it is for a different protocol, but is for integrating a pump with ESPHome as well. It might be useful to work together. See CentryVSPump https://github.com/gazoodle/CenturyVSPump

— Reply to this email directly, view it on GitHub https://github.com/michaelusner/esp32-pentair-controller/issues/1#issuecomment-1612021516, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQ5DFYO3XPTYYMG6LPTU5TXNSEGPANCNFSM47HJWIGQ . You are receiving this because you commented.Message ID: @.***>

XMaarten commented 1 year ago

Did you have a look at the project I mentioned? It is the same thing, an ESPHome component for a RS485 controlled pump. I think it is using a different protocol, but the functionality seems to be the same.

michaelusner commented 1 year ago

I'll have a closer look. It seems to be a bit different than what I have but might have some useful info. I elected not to use the modbus component in my case and instead derived from the UARTDevice class.

Thank you for the link BTW.

-Mike

On Thu, Jun 29, 2023 at 9:33 AM Maarten Bremer @.***> wrote:

Did you have a look at the project I mentioned? It is the same thing, an ESPHome component for a RS485 controlled pump. I think it is using a different protocol, but the functionality seems to be the same.

— Reply to this email directly, view it on GitHub https://github.com/michaelusner/esp32-pentair-controller/issues/1#issuecomment-1613292213, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQ5DFYRVLDRUHSFXFRERMLXNWG27ANCNFSM47HJWIGQ . You are receiving this because you commented.Message ID: @.***>

michaelusner commented 1 year ago

I think things are finally working again for me. The lighting also destroyed my ESP32 dev board and MAX485 so I had to replace them. I have temperature coming through fine and am working on switches for devices and components now: image

XMaarten commented 1 year ago

Great! Can you already share your code please? I am very curious if can get some results as well.

michaelusner commented 1 year ago

Sure, let me clean things up a bit and I'll put up a draft. Note that the switch doesn't work yet.

On Mon, Jul 10, 2023, 4:03 PM Maarten Bremer @.***> wrote:

Great! Can you already share your code please? I am very curious if can get some results as well.

— Reply to this email directly, view it on GitHub https://github.com/michaelusner/esp32-pentair-controller/issues/1#issuecomment-1629727889, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQ5DFZJ4D26FEXCMLHANODXPRUYVANCNFSM47HJWIGQ . You are receiving this because you commented.Message ID: @.***>

michaelusner commented 1 year ago

@XMaarten https://github.com/michaelusner/esphome-components

NumanGulzar commented 3 months ago

I will also get a sneeze to reduce??