tagyoureit / nodejs-poolController

An application to control pool equipment from various manufacturers.
GNU Affero General Public License v3.0
317 stars 94 forks source link

Apparent failed install of controller and panel #353

Closed mzuniga51 closed 2 years ago

mzuniga51 commented 2 years ago

Hello folks. I am a noob in all things Raspberry Pi but gave it a try to install the Pool Controller following the very detailed instructions MyAZPool provided in TFP. Installation of both applications got hung after some errors and when launching the web interface I find several strange behaviors, maybe consistent with a failed installation. For instance, my pool appear off when it is actually on, and the pump is actually running. I can control light, circuits, pumps and I can see chemistry.

I've tried installation a few times, one fixing npm audit errors (I realize I should not do that now) but the errors persists in either cases.

Per tagyoureit instruction I'm attaching the packet capture plus the applications installation logs.

Any help will be much appreciated!

2021-10-10T01_51_47_875Z-debug.log 2021-10-10T01_58_16_401Z-debug.log replay.zip

136494302-d3c285b0-c35c-4ac1-a3a3-b1a7b3db2dff 136494320-716dcd14-b31b-408b-9301-7e8e973a6ae9

Pool Equipment

Raspberry Pi Raspberry Pi 3 B+ Raspberry Pi OS 5.10 USB to RS485 adapter https://www.amazon.com/dp/B081MB6PN2?psc=1&ref=ppx_yo2_dt_b_product_details connected with Cat5e shielded cable to Intellicenter Com port

Desktop:

Smartphone:

rstrouse commented 2 years ago

Both @tagyoureit and myself are looking at your output. It appears we have successful communication with the IntelliCenter i10D and are receiving messages for your pumps, heaters, IntelliChem, and Chlorinator. I assume you can still only install 1 chlorinator on an i10D since there is no way to address an IntelliChlor.

So here comes a few questions.

  1. It appears you are set up to get tempeatures in C. Is this correct? This for the most part seems successful but on my IntelliCenter i10PS I cannot change the units. The option is grayed out and forcibly changing it results in goofiness on my wireless controller. It does appear that at least one of the sensor ports are outputting in F but I will get around this.
  2. You appear to have 2 MasterTemp heaters attached to your RS485 bus but these are not responding to IntelliCenter (at least during the capture we are looking at). Are these connected to RS485 or are they connected to the heater port on the i10D board? If they are not connected to RS485, then they are not configured correctly in IntelliCenter. This results in comms errors for the heaters but you are probably not displaying them.
  3. In the screenshot above it appears that we have not set the pool body circuit to be on. This is probably a mapping issue on our end with the output from the i10D. However, are all the other circuit state representations correct?
mzuniga51 commented 2 years ago

Thank you sir. I will have two Intellichlors and two Intellichems. Currently I have only the pool Intellichem working with an intellichlor. The spa Intellichem is coming soon and will be connected to my other Intellichlor (which is currently connected manually). About your questions:

  1. Yes. This works for me. We live in Costa Rica so it is metric all the way
  2. Yes. Two MasterTemp connected to the fireman switch. No RS485 port in my heaters so two cable connections so far. It seem to work fine, except I cannot see alerts. Interestingly, the controller identify them as Max-e-temp for some reason. Back on the Intellicenter panel they are correctly identified.
  3. All other circuits seem to be correctly represented except for Pool and the fact that I got a No Communication error with the Intellichlor. This last one seems to be a bug since I can see all levels and information correctly includin when the Intellichem is dispensing for example.

Thanks again for the help!

On Mon, Oct 11, 2021 at 1:05 PM rstrouse @.***> wrote:

Both @tagyoureit https://github.com/tagyoureit and myself are looking at your output. It appears we have successful communication with the IntelliCenter i10D and are receiving messages for your pumps, heaters, IntelliChem, and Chlorinator. I assume you can still only install 1 chlorinator on an i10D since there is no way to address an IntelliChlor.

So here comes a few questions.

  1. It appears you are set up to get tempeatures in C. Is this correct? This for the most part seems successful but on my IntelliCenter i10PS I cannot change the units. The option is grayed out and forcibly changing it results in goofiness on my wireless controller. It does appear that at least one of the sensor ports are outputting in F but I will get around this.
  2. You appear to have 2 MasterTemp heaters attached to your RS485 bus but these are not responding to IntelliCenter (at least during the capture we are looking at). Are these connected to RS485 or are they connected to the heater port on the i10D board? If they are not connected to RS485, then they are not configured correctly in IntelliCenter. This results in comms errors for the heaters but you are probably not displaying them.
  3. In the screenshot above it appears that we have not set the pool body circuit to be on. This is probably a mapping issue on our end with the output from the i10D. However, are all the other circuit state representations correct?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tagyoureit/nodejs-poolController/issues/353#issuecomment-940368658, or unsubscribe https://github.com/notifications/unsubscribe-auth/AV2HSS33RUKK7MJ2NFQJTLTUGMYQRANCNFSM5FWZCE5Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

rstrouse commented 2 years ago

Ok so you got me a bit excited with the heaters. So you do have these configured incorrectly. You need to delete these in IntelliCenter and add them as Gas Heaters. If you do not IntelliCenter will be doing work behind the scenes to wake them up.

While you may not see this on the surface, your IntelliCenter is frantically sending messages to the heater. The communication setup for RS485 heaters outside of UltraTemp are not widely shipping yet. In fact the boards don't even have the port or the transceiver chip. So when you are connected to the Gas Heater port on the board (which you are) then you must choose the Gas Heater. Somebody at Pentair should be slapped for not making that clear. The strange thing is that you gain nearly nothing by being on the RS485 bus other than creating more traffic.

With the metric settings I will figure out where why the spa temp is coming in in F. I am guessing your spa isn't 100C.

The No Communication error on the IntelliChem is definitely a bug. It is just not clearing the message when the IntelliChem finally responds. During startup it is common for IntelliChem (and IntelliChlor) to not respond right away.

For the body circuit I will put together some instructions for a very specific replay capture that I would like you to do. We have only seen one other IntelliCenter i10D and it was set up differently than yours. So we are probably missing a bit on the status message that tells us whether the pool circuit is engaged.

mzuniga51 commented 2 years ago

Ok. The heaters are connected to the gas heater ports and configured correctly as MasterTemp gas heaters, and identified as such both in the Intellicenter as well as in the Pentair Web Portal and IOS app. It is just that the nodejs-pool Controller interface is showing Max-e-therm. Should be a bug as I have deleted the heaters twice and added them back up with the same result.

BTW, yes the spa was at a balmy 100F at that moment (not always obviously lol).

The no communication error persists for the remainder of the session but seems to be just cosmetics.

Where can I get your instructions? I'm excited to be a guinea pig for this!

Again many many thanks

On Mon, Oct 11, 2021 at 1:58 PM rstrouse @.***> wrote:

Ok so you got me a bit excited with the heaters. So you do have these configured incorrectly. You need to delete these in IntelliCenter and add them as Gas Heaters. If you do not IntelliCenter will be doing work behind the scenes to wake them up.

While you may not see this on the surface, your IntelliCenter is frantically sending messages to the heater. The communication setup for RS485 heaters outside of UltraTemp are not widely shipping yet. In fact the boards don't even have the port or the transceiver chip. So when you are connected to the Gas Heater port on the board (which you are) then you must choose the Gas Heater. Somebody at Pentair should be slapped for not making that clear. The strange thing is that you gain nearly nothing by being on the RS485 bus other than creating more traffic.

With the metric settings I will figure out where why the spa temp is coming in in F. I am guessing your spa isn't 100C.

The No Communication error on the IntelliChem is definitely a bug. It is just not clearing the message when the IntelliChem finally responds. During startup it is common for IntelliChem (and IntelliChlor) to not respond right away.

For the body circuit I will put together some instructions for a very specific replay capture that I would like you to do. We have only seen one other IntelliCenter i10D and it was set up differently than yours. So we are probably missing a bit on the status message that tells us whether the pool circuit is engaged.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tagyoureit/nodejs-poolController/issues/353#issuecomment-940400071, or unsubscribe https://github.com/notifications/unsubscribe-auth/AV2HSS6FYJR5G365TJQSZ3LUGM6VZANCNFSM5FWZCE5Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

rstrouse commented 2 years ago

Your heaters are not correctly configured. Even though they are MasterTemp heaters they are not correctly defined. Only MasterTemp heaters that have RS485 connections should be defined the way you have them. The Max-e-Therm id is simply because njsPC has not seen a response from the heater yet. If it were to see a response it would change this to the proper model as Max-e-therm and MasterTemp share the same boards. It should however start with the Pentair version instead of the Sta-Rite version. Or simply not set it until it actually sees a response.

When you add them back you need to add them as Gas not MasterTemp. If you don't IntelliCenter will incorrectly attempt to contact them on the RS485 bus. This results in repeated traffic on the bus. Every time a message to the heater fails it will send 5 more in rapid succession. Then after about 1.5 seconds it will start over again to do the same thing. I don't know why they didn't identify these as MasterTemp RS485 or Max-e-therm RS485 but I assure you the way you have them set up is not desirable.

I will try to get to a fix for the comms error on the IntelliChem and put some instructions together for you to create the replay I need. It appears that the bit for the pool circuit is not set on the status message for the i10D but it is set on the configuration message. Wierd.

I also just noticed another thing that is not explainable. Here is the screenshot you sent and it appears to have a jacked up water temp as well for the spa. image

mzuniga51 commented 2 years ago

Ohhh. I got you. I will change to the default gas heater then. Sorry, i didnt understand the firs time.

Im realizing that the screenshot I sent was from before I connected a temp sensor to the spa, so it reflected de -100 error. Now it is working correctly 29C the pool and 37C the spa (we like our water rather warm).

On Mon, Oct 11, 2021 at 3:01 PM rstrouse @.***> wrote:

Your heaters are not correctly configured. Even though they are MasterTemp heaters they are not correctly defined. Only MasterTemp heaters that have RS485 connections should be defined the way you have them. The Max-e-Therm id is simply because njsPC has not seen a response from the heater yet. If it were to see a response it would change this to the proper model as Max-e-therm and MasterTemp share the same boards. It should however start with the Pentair version instead of the Sta-Rite version. Or simply not set it until it actually sees a response.

When you add them back you need to add them as Gas not MasterTemp. If you don't IntelliCenter will incorrectly attempt to contact them on the RS485 bus. This results in repeated traffic on the bus. Every time a message to the heater fails it will send 5 more in rapid succession. Then after about 1.5 seconds it will start over again to do the same thing. I don't know why they didn't identify these as MasterTemp RS485 or Max-e-therm RS485 but I assure you the way you have them set up is not desirable.

I will try to get to a fix for the comms error on the IntelliChem and put some instructions together for you to create the replay I need. It appears that the bit for the pool circuit is not set on the status message for the i10D but it is set on the configuration message. Wierd.

I also just noticed another thing that is not explainable. Here is the screenshot you sent and it appears to have a jacked up water temp as well for the spa. [image: image] https://user-images.githubusercontent.com/47839015/136854966-705bcf69-f299-4058-88a6-b899f924b61c.png

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tagyoureit/nodejs-poolController/issues/353#issuecomment-940436388, or unsubscribe https://github.com/notifications/unsubscribe-auth/AV2HSSZEKHTIWZH2WAYYOZTUGNGAZANCNFSM5FWZCE5Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

rstrouse commented 2 years ago

Ok so that makes more sense. The solar sensor is reading -100C in your output but the water temps were fine. That threw me.

Pull njsPC as I fixed the comms error on IntelliChem cd nodejs-poolController git pull npm i

Then shutdown njsPC and restart it.

In the next day or so I will put together some instructions for the replay I need.

mzuniga51 commented 2 years ago

Yea no. Everything is fine with temperatures. A few things:

-The controller now seem to complete installation successfully. -Error with Intellichlor disappeared. Both intellichor and intellichem appear correctly in settings -Now also pulling the right intellicenter model in the Controller tab in settings. No mention to the i10d added personality card though -Only one of my valves appear (pool bubbler). Missing the other one which is spa jets

Thanks and I wait for you intructions.

On Mon, Oct 11, 2021 at 3:46 PM rstrouse @.***> wrote:

Ok so that makes more sense. The solar sensor is reading -100C in your output but the water temps were fine. That threw me.

Pull njsPC. cd nodejs-poolController git pull npm i

Then shutdown njsPC and restart it.

In the next day or so I will put together some instructions for the replay I need.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tagyoureit/nodejs-poolController/issues/353#issuecomment-940465301, or unsubscribe https://github.com/notifications/unsubscribe-auth/AV2HSS5UBM2SCVT6XFGDZDDUGNLMPANCNFSM5FWZCE5Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

mzuniga51 commented 2 years ago

BTW, I have found that if Pool is off I can turn it on on the application, although the green light gets on and immediately off. If Pool is on then I cannot turn it of from the application. Strange...

rstrouse commented 2 years ago

This is because Pentair is not setting the circuit bit on the status for the pool. njsPC is correctly sending the command bits but it is not correctly responding that it actually turned the circuit on. This is for circuit 6 which is the pool circuit. I need to get a replay that contains the bit locations for what the controller believes is a running pool circuit. So please review then follow the instructions below.

Step 1:

Turn everything off using the Pentair controller. Nothing should be running on the pool. This includes any aux circuits or feature circuits.

Step 2:

Navigate to the logging tab under the hamburger menu in dashPanel. Press the Capture Replay button then the begin capture button on the Select Capture Options dialog. Please DO NOT check the Capture Configuration Reload button as this will give me a forest of messages to find our tree in. image

Step 3:

Using any of the Pentair controllers turn on the pool circuit. Wait 10 seconds then turn it off.

Step 4:

Using any of the Pentair controllers turn on the spa circuit. Wait 10 seconds then turn it off.

Step 5:

Return to the logging tab under the hamburger menu in dashPanel. Pess the Cancel Capture button. image

Step 6:

A replay.zip file will be downloaded to your browser. Please upload that here.

mzuniga51 commented 2 years ago

Hi. I think I followed your instructions correctly. Here is the capture

replay.zip

rstrouse commented 2 years ago

Ok just to be sure you only turned on the pool or the spa circuit. You didn't turn on a group of circuits or anything else... correct. The reason why I am asking is that there are two aux circuits being turned on when you turned on the pool circuit. These are Pool Cell and Spa Cell. Is there something special about AUX 1 & 2 in your setup?

mzuniga51 commented 2 years ago

Nop, I did as you told me. Now as I understand it Pool triggers the pump, then the pump triggers the cell. Here is my circuit distribution as the PB left it. Maybe I have something hooked up incorrectly.

Screen Shot 2021-10-12 at 15 33 31
rstrouse commented 2 years ago

When I refer below to circuit numbers you can tell what I am talking about by counting from the top of the circuit list to the bottom. So Spa is circuit 1 and Aux 9 is circuit 11.

What I am seeing now that makes sense. The reason why I am seeing Aux 1 & 2 turning on with the pool body is because these are set up as Chem Relay. Not sure why this was set up this way for a dual body system. The chem relay is a relay that is triggered when the filter relay is engaged for the Pool Circuit (6). However, in your case you should have 2 filter relays and the Chem Relay circuit function only works for the pool body. If these are tied to your IntelliChlors then this probably isn't the best or even a correct setup.

These work fine in a single body and a shared body system for this purpose because there is typically only one IntelliChlor and one filter circuit. However, they are rarely wired in this way and not the recommended way to wire them. The reason is that the relays in IntelliCenter are DPST relays so the cells are set up to be on one leg of the filter relay. The only thing this does is eat an Aux circuit and not operate like you would hope. What this does is make it so your Spa Cell can only be on when the Pool Circuit (6) is engaged given the way you have this wired up. It is not correct.

On an i10D filter relay 1 should be connected to the Filter connector on the main board and filter relay 2 should be connected to the second filter relay. This should not be wired to aux 1 or 2. The IntelliChlor is attached this way to ensure we do not have a scenario where the IntelliChlor can engage without the filter running. This is a safety feature. Unfortunately Chem Relay only and always engages with the pool circuit so in your case the Spa Cell can only run when the pool is running. So in fact when you turn the pool circuit on it is engaging the Spa Cell. This is not good since a faulty flow sensor on the cell can start it generating chlorine when the spa filter is in fact off. If the PB says it can't happen there are quite a few examples of this occurring. Some of them ending in a hydrogen gas explosion. image

Below is the correct wiring for the IntelliChlor attached to the Pool circuit. For the Spa circuit it should be connected such that the Filter 2 relay is used to power the Spa cell. What I am seeing here is not the correct use of a Chem Relay. In fact they are only applicable to the Pool Circuit anyway and do not match up with your equipment. Unfortunately, you will only get RS485 control of the Pool IntelliChlor anyway unless you use one of the commercial units. This is because the consumer units are not addressable on the RS485 bus. image

So now that I have bagged on the Chem Relay circuit function it does have a purpose. Mostly, it is used for non-IntelliChem dosing systems. This allows the power supply for any pumps and CO2 delivery to be cut off when the pool circuit is disengaged. However, this only works for those chem systems attached to a pool body. Even then, chaining the filter relay is probably a better option.

mzuniga51 commented 2 years ago

So, good news is that I may have connected the salt cells correctly now.  I deleted the salt cells from the Aux 1 and 2 and connect Filter Relay 1 to circuit fltr and relay 2 to circuit fltr2.  I'm attaching a new packet capture with everything corrected.

Bad news is that I got ambitious and tried to connect the Intellichem to the Filter Relay 1 (it was connected to a regular outlet). Boy o boy, current here in Costa Rica is 120v standard and I forget the relays are 220. Didn't rewire the Intellichem first, so I got a nice sparks show and a melted its transformer. As far as I can tell, the board was spared. Well, live and learn, and hope I can find the part. Take 1576 of feeling like and idiot with this system. lol replay (1).zip

.

rstrouse commented 2 years ago

Uggh. That isn't good. I assume it is split current like the U.S. Two 120v legs. If this is true, that means you connect to only one leg of the relay and the other to neutral to get 120v. Hopefully you didn't fry anything else.

mzuniga51 commented 2 years ago

Well. Not my first bbq. The board was in deed spared thank god.

You think from the capture I have the right connections for the cells now?

Also

mzuniga51 commented 2 years ago

BTW, when you say connect one leg of the relay and the other to neutral, which will be a neutral in the Intellicenter panel? The ground bus bar? Sorry for the probably very basic and stupid question.

rstrouse commented 2 years ago

No. If the electrical system is the same as it is here in the US, neutral is supplied from the main panel. The IntelliCenter load center should have a neutral bus bar if the electrical system is the same. It most certainly is not ground.

rstrouse commented 2 years ago

For US based systems the neutral bus is pointed to by the arrow if the electrician pulled a neutral from the main service panel. Most commonly this is a white wire. image

mzuniga51 commented 2 years ago

Thank you. In my case the breaker panel is separate from the Intellicenter so I guess it will be there. I have a pretty good idea abot how to connect it now. The new should arrive in a week or so.

Did you take a look at the new packet capture I send after I corrected the cells connenctions? Just want to check if everything else seem correct to yo now.

Again, many thanks for taking the time to help me out. I appreciate it.

On Wed, Oct 13, 2021 at 10:06 AM rstrouse @.***> wrote:

For US based systems the neutral bus is pointed to by the arrow if the electrician pulled a neutral from the main service panel. Most commonly this is a white wire. [image: image] https://user-images.githubusercontent.com/47839015/137171368-61a6314e-dc46-4ffd-ab42-4d6bf543ce88.png

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tagyoureit/nodejs-poolController/issues/353#issuecomment-942456444, or unsubscribe https://github.com/notifications/unsubscribe-auth/AV2HSS6ANBLKVY3X3TZDZY3UGWU6XANCNFSM5FWZCE5Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

rstrouse commented 2 years ago

The circuits now appear to be correct. In case you are interested (and even if you are not) here is the issue with the pool state. The pool circuit (body 1) is always 6 in every IntelliCenter system. To turn on that circuit the controller sends a message to the OCP (Outdoor Control Panel) with bit 6 set. So your system is sending the message out on the RS485 bus correctly as follows. image

However, there is a status message that indicates which circuits are activated and this is broadcast from the OCP to any controller on the bus. Notice bit 6 is not set. image

But that is not the only bit that gets set when a body is engaged. There is also another message that indicates that a body is on. We will use that instead of the bit 6 in this case. Oddly every other circuit is correct on on the status message. I can only think of this as a weirdo bug for this firmware.

Just to illustrate the issue here is what happens when you turn on your spa. It is bit 1. image

Then miraculously the status message looks like it should. But strangely enough it never sets the body bit on the other message. image

I will have an update for you shortly that should make this all work.

rstrouse commented 2 years ago

Go ahead and pull njsPC. I made the change to look at the other byte. cd nodejs-poolController git pull npm i

Then restart njsPC.

mzuniga51 commented 2 years ago

Very interesting. I will run the updated version and get back to you.

On Wed, Oct 13, 2021 at 11:10 AM rstrouse @.***> wrote:

The circuits now appear to be correct. In case you are interested (and even if you are not) here is the issue with the pool state. The pool circuit (body 1) is always 6 in every IntelliCenter system. To turn on that circuit the controller sends a message to the OCP (Outdoor Control Panel) with bit 6 set. So your system is sending the message out on the RS485 bus correctly as follows. [image: image] https://user-images.githubusercontent.com/47839015/137178494-b35d3d19-b204-46a4-b184-b20840cacc8e.png

However, there is a status message that indicates which circuits are activated and this is broadcast from the OCP to any controller on the bus. Notice bit 6 is not set. [image: image] https://user-images.githubusercontent.com/47839015/137178857-56cfa9e1-1fae-4d90-aa91-155828172962.png

But that is not the only bit that gets set when a body is engaged. There is also another message that indicates that a body is on. We will use that instead of the bit 6 in this case. Oddly every other circuit is correct on on the status message. I can only think of this as a weirdo bug for this firmware.

Just to illustrate the issue here is what happens when you turn on your spa. It is bit 1. [image: image] https://user-images.githubusercontent.com/47839015/137179593-c3815dcb-3d21-46a4-a570-f12dc6f395b6.png

Then miraculously the status message looks like it should. But strangely enough it never sets the body bit on the other message. [image: image] https://user-images.githubusercontent.com/47839015/137179801-27669b9b-78e4-4c44-b199-76452a0ec589.png

I will have an update for you shortly that should make this all work.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tagyoureit/nodejs-poolController/issues/353#issuecomment-942535452, or unsubscribe https://github.com/notifications/unsubscribe-auth/AV2HSS5RJFFKQUI5FASDNT3UGW4QNANCNFSM5FWZCE5Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

mzuniga51 commented 2 years ago

Success! Now i can turn the pool on and off. Now, i dont yet see temperature data as i do with the spa body. I see when the heater is on though with a very nice animated flme icon.

On Wed, Oct 13, 2021 at 11:27 AM rstrouse @.***> wrote:

Go ahead and pull njsPC. I made the change to look at the other byte. cd nodejs-poolController git pull npm i

Then restart njsPC.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tagyoureit/nodejs-poolController/issues/353#issuecomment-942550234, or unsubscribe https://github.com/notifications/unsubscribe-auth/AV2HSS4IVRANMAVKLUXQMZTUGW6RHANCNFSM5FWZCE5Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

rstrouse commented 2 years ago

I'm not sure I understand what you mean. I see the temperature in your data and njsPC is extracting it. I assume you have a water temp sensor in each filter system. Is that correct?

mzuniga51 commented 2 years ago

Yes. Both sensors are working correctly. This is what I'm seeing:

Screen Shot 2021-10-13 at 15 29 15 Screen Shot 2021-10-13 at 15 26 03
mzuniga51 commented 2 years ago

Oh, and there is something weird. When I turn Pool on, the schedule assigned won't "take". The weird thing is that if I go into service mode and then into auto again, the schedule does take.

rstrouse commented 2 years ago

Wait the pool circuit is not showing as on.

mzuniga51 commented 2 years ago

Never mind. I realized that if Pool at the OCP is off i can turn it on from njsPC and it will appear as on there. If Pool is on at the OCP, then Pool will appear as off at njsPC and I will not be able to control it. So, I have control of Pool from njsPC only when Pool has initially been turned on at njsPC.

Would it be helpful for me to give access to my Raspberry Pi via VNC?

rstrouse commented 2 years ago

If you are in service mode you cannot control it from an external controller. Does the Pool Circuit appear green when the pool is on. This should not matter where it is turned on from... except when you are in service mode. Service mode in effect disables all external controllers.

EDIT: To further clarify. It should not matter where the pool or spa is turned on from. The correct state should be shown on dashPanel. However, it you switch the OCP to service mode dashPanel should flash Service at the top of the screen.

The temperature of any given body is only valid when the circuit is indicate as on. That is why you see the words Current Temp in the web interface. dashPanel will simply gray it out if the body is not currently active because whatever is reading in the pipe is not the temperature of the body until water is circulating.

In the screenshot above it looks like the body is running in the IntelliCenter web interface but dashPanel does not show it as on. This is not correct. Am I seeing this correctly?

tagyoureit commented 2 years ago

As a complete aside, it looks like you have 4 Pool schedules that cover 24 hours. Just curious why you do that? The circuit can be set to "don't stop" if you just want it to run for 24 hours straight.

rstrouse commented 2 years ago

Are you using the IntelliCenter web app to turn the pool on and off or are you setting the OCP to service mode then turning it on and off?

mzuniga51 commented 2 years ago

maybe this video explains it better. Sorry for my awful accent https://youtu.be/un9Tpi15ESw

rstrouse commented 2 years ago

Unfortunately I think I confused the issue by identifying circuit 6. Here is how it is mapped in Pentair. The pool and spa get tucked into the circuit count.

  1. Body 1 = Spa
  2. AUX 1 = None
  3. AUX 2 = None
  4. AUX 3 = Pool Lights
  5. AUX 4 = Bubbler Light
  6. Body 2 = Pool
  7. AUX 5 = Sishi-Odoshi
  8. AUX 6 = Fire Pit
  9. AUX 7
  10. AUX 8
  11. AUX 9

So when I refer to 6 it is engaging the FLTR relay for body 1 but internally it is setting the id 6. I know its confusing. And your schedules do now make sense. However, you may find that the BTUs to maintain the heat will remain the same over the course of the day. The heat loss remains constant regardless of whether you are running the heater and the BTUs required to raise that temperature will be the same. However, if you are finding that the sun overshoots your temp target it may make sense to schedule the heater off during the time you get BTUs from the sun.

I would like you to do the same replay you did before but this time do it from the web app. I do think we have uncovered a weirdo thing with the i10D at the OCP. We will solve this mystery.

mzuniga51 commented 2 years ago

Thanks for your persistence. Here

replay.zip

rstrouse commented 2 years ago

Please pull njsPC and restart it. cd nodejs-poolController git pull npm i

If you are running pm2 pm2 restart njsPC

If not please shut down the njsPC process and restart it.

When you are done if I can get you to generate our replay again but this time end with the pool and spa both being on.

mzuniga51 commented 2 years ago

Here. Did it from the web interface. Let me know if you need me to do it from the OCP replay.zip

rstrouse commented 2 years ago

I needed you to start with all circuits off. An do it from the intellicenter.com website (not dashPanel). I am looking for the responses from the OCP when it gets an external request. If you have an Indoor Controller or even the mobile app that is fine too. I just don't want you to do it from the control panel on your Power Center.

mzuniga51 commented 2 years ago

Got it. Here from the mobile app replay 2.zip

rstrouse commented 2 years ago

Please pull njsPC again and restart it using the commands above.

Then make sure everything is turned off on your system and collect another capture just like the last one. We are narrowing in on it.

mzuniga51 commented 2 years ago

Im not sure Im killing the process correctly. Im rebooting but not sure if that is enough. Im not running pm2 so i tried to kill It but i dont know exactly what PID the processes have. Are the processes the ones that says npm?

mzuniga51 commented 2 years ago

Here [Uploading replay 3.zip…]()

mzuniga51 commented 2 years ago

https://user-images.githubusercontent.com/91519307/137408240-3883ecab-7f2e-4688-a6e9-825ed582c82e.MOV

Now on web interface i have a blinking green light on Pool fyi

rstrouse commented 2 years ago

Your upload of the replay failed. The file upload didn't finish before you closed browser.

mzuniga51 commented 2 years ago

replay 4.zip

Sorry. Here

rstrouse commented 2 years ago

Pull njsPC and restart. Barring any outstanding holes I think we have it. When the new firmware comes out I have marked the code just in case they fix this bug.

Also, somehow I noticed that you have a Nixie controlled IntelliChem. For the world of me I don't know how you managed to do that unless the configuration was updated while the controller was disconnected from the OCP. Perhaps you should delete your poolConfig.json and poolState.json files in the data directory before you start njsPC. This will force njsPC to get the configuration from IntelliCenter.

mzuniga51 commented 2 years ago

Thanks. I will try that. I dont even know what a Nixie controller is so me neither.

---------- Forwarded message --------- From: rstrouse @.> Date: Thu, Oct 14, 2021 at 7:29 PM Subject: Re: [tagyoureit/nodejs-poolController] Apparent failed install of controller and panel (#353) To: tagyoureit/nodejs-poolController < @.> CC: mzuniga51 @.>, Author @.>

Pull njsPC and restart. Barring any outstanding holes I think we have it. When the new firmware comes out I have marked the code just in case they fix this bug.

Also, somehow I noticed that you have a Nixie controlled IntelliChem. For the world of me I don't know how you managed to do that unless the configuration was updated while the controller was disconnected from the OCP. Perhaps you should delete your poolConfig.json and poolState.json files in the data directory before you start njsPC. This will force njsPC to get the configuration from IntelliCenter.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tagyoureit/nodejs-poolController/issues/353#issuecomment-943908607, or unsubscribe https://github.com/notifications/unsubscribe-auth/AV2HSS7CUB2MMMX7IEQAEOLUG57ZLANCNFSM5FWZCE5Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

mzuniga51 commented 2 years ago

Yep. I think you did it!! I'll make more tests tomorrow andnget back to you.

mzuniga51 commented 2 years ago

So ive been running a few tests this morning and this is what i found:

-If i turn on Pool or Spa from the Pentair app or from the OCP i see the Pool or Spa go on on njsPC web and vice versa. All good there. -If Pool was started by a schedule or coming out of service to auto mode then Ioose control of Pool from nsjPC web