bsileo / hubitat_poolcontroller

Integration from a SmartThings or Hubitat hub to nodejs_poolcontroller
MIT License
8 stars 5 forks source link

Habitat integration issues #22

Closed dcorrea78 closed 1 year ago

dcorrea78 commented 1 year ago

I posted this over on the habitat forums a few days ago but I'm looking for help getting the nodejs pool controller integration working properly with my Pentair Easytouch 8 system. I successfully installed the nodejs pool controller integration through the package manager and it is connected to my Screenlogic Easy touch 8 via the nodejs pool controller running on my Rpi4.

The issue I am running into right now is that I am trying to make a dashboard to control my pool equipment but I cannot figure out:

How do I create a "RPM" control switch How do i get the dashboard to poll the pool equipment and update accordingly. For the RPM control, I created two virtual buttons; one for RPM up and one for RPM down. The problem is that I cannot find any attribute/button/switch etc in the Pentair intelliflo device, pool control device or easytouch device that increases RPM. Any ideas on where to find that and what type of device template I need to set the hubitat tile to in order to get it to work?

Secondly, the hubitat integration doesn't seem to poll the pool equipment and the hubitat devices get out of sync with the actual equipment. For example, I have a tile that reads the pump RPM using the "attribute" function of the tile wizard. However, if I change the pump RPM via the poolcontroller dashboard, the tile and hubitat device do not update accordingly. I have to manually refresh the device to get the rpm updated.

How do I ensure that any action taken outside of the hubitat environment (nodejs poolcontrol dashboard, Screenlogic app, etc) properly update the hubitat states?

philipfoltz commented 1 year ago

I'm struggling with the same issue of not getting updates from the poolcontroller to hubitat. I have the intigration set in the poolcontroller but not sure if I have the settings correct. Hubitat will send updates to the poolcontroller. I'm at a loss.

bsileo commented 1 year ago

Did you setup the Event Interface in the configuration file on the PoolController to point it at your Hubitat hub?

https://github.com/bsileo/hubitat_poolcontroller#setup-the-event-interface

On Thu, May 18, 2023, 5:26 PM philipfoltz @.***> wrote:

I'm struggling with the same issue of not getting updates from the poolcontroller to hubitat. I have the intigration set in the poolcontroller but not sure if I have the settings correct. Hubitat will send updates to the poolcontroller. I'm at a loss.

— Reply to this email directly, view it on GitHub https://github.com/bsileo/hubitat_poolcontroller/issues/22#issuecomment-1553666626, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABOVFMFPS4K5YMKRIDIFXSDXG2HZNANCNFSM6AAAAAAYE3RZGI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

philipfoltz commented 1 year ago

Yes, but there is also a protocol in that setting. Not sure which to choose.On May 19, 2023, at 8:49 PM, Brad Sileo @.***> wrote: Did you setup the Event Interface in the configuration file on the PoolController to point it at your Hubitat hub?

https://github.com/bsileo/hubitat_poolcontroller#setup-the-event-interface

On Thu, May 18, 2023, 5:26 PM philipfoltz @.***> wrote:

I'm struggling with the same issue of not getting updates from the poolcontroller to hubitat. I have the intigration set in the poolcontroller but not sure if I have the settings correct. Hubitat will send updates to the poolcontroller. I'm at a loss.

— Reply to this email directly, view it on GitHub https://github.com/bsileo/hubitat_poolcontroller/issues/22#issuecomment-1553666626, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABOVFMFPS4K5YMKRIDIFXSDXG2HZNANCNFSM6AAAAAAYE3RZGI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

bsileo commented 1 year ago

I'm not sure about the protocol bit - i am a little behind on NJsPC versions - maybe that is something new in V8?

Are you seeing anything in the Hubitat logs to indicate that traffic is coming from the event interface to the Hubitat hub?

On Fri, May 19, 2023, 10:07 PM philipfoltz @.***> wrote:

Yes, but there is also a protocol in that setting. Not sure which to choose.On May 19, 2023, at 8:49 PM, Brad Sileo @.***> wrote: Did you setup the Event Interface in the configuration file on the PoolController to point it at your Hubitat hub?

https://github.com/bsileo/hubitat_poolcontroller#setup-the-event-interface

On Thu, May 18, 2023, 5:26 PM philipfoltz @.***> wrote:

I'm struggling with the same issue of not getting updates from the poolcontroller to hubitat. I have the intigration set in the poolcontroller but not sure if I have the settings correct. Hubitat will send updates to the poolcontroller. I'm at a loss.

— Reply to this email directly, view it on GitHub < https://github.com/bsileo/hubitat_poolcontroller/issues/22#issuecomment-1553666626 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/ABOVFMFPS4K5YMKRIDIFXSDXG2HZNANCNFSM6AAAAAAYE3RZGI

. You are receiving this because you are subscribed to this thread.Message ID: @.***>

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/bsileo/hubitat_poolcontroller/issues/22#issuecomment-1555426854, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABOVFMFAL4RUI364GGZH773XHARPDANCNFSM6AAAAAAYE3RZGI . You are receiving this because you commented.Message ID: @.***>

dcorrea78 commented 1 year ago

The protocol options are http, https, or mqtt. I am using http since I don't believe Hubitat supports https.

dcorrea78 commented 1 year ago

I just realized that I didn't re-enable the integration after re-installing the pool-controller from scratch. I will check to see if Hubitat is getting the device status properly later today.

As for controlling the RPM, do you know where I can find the attribute that controls rpm speed? Basically I would like to mimic the poolcontroller-dashPanel controller on the hubitat dashboard and use a button to increase or decrease rpm.

bsileo commented 1 year ago

The protocol options are http, https, or mqtt. I am using http since I don't believe Hubitat supports https.

Ah yes HTTP would be the correct option here.

dcorrea78 commented 1 year ago

I just checked, and I still have to manually refresh the devices in hubitat to get the status updated. The hubitat integration also gives an option for the type of connection. It is defaulted to rest but http is an option there as well. I just changed to http to see what will happen, but can you confirm what it should be?

bsileo commented 1 year ago

I just checked, and I still have to manually refresh the devices in hubitat to get the status updated. The hubitat integration also gives an option for the type of connection. It is defaulted to rest but http is an option there as well. I just changed to http to see what will happen, but can you confirm what it should be?

Yes sorry - I think that should be rest. I would have to catch up on versions to verify this in my install.

bsileo commented 1 year ago

I just realized that I didn't re-enable the integration after re-installing the pool-controller from scratch. I will check to see if Hubitat is getting the device status properly later today.

As for controlling the RPM, do you know where I can find the attribute that controls rpm speed? Basically I would like to mimic the poolcontroller-dashPanel controller on the hubitat dashboard and use a button to increase or decrease rpm.

There is not a command on the Hubitat side to set the pump RPM at this time. This could be added to the pump device I think, though I am not sure if that API exists on NJSPC at present.

bsileo commented 1 year ago

I just checked, and I still have to manually refresh the devices in hubitat to get the status updated. The hubitat integration also gives an option for the type of connection. It is defaulted to rest but http is an option there as well. I just changed to http to see what will happen, but can you confirm what it should be?

Yes sorry - I think that should be rest. I would have to catch up on versions to verify this in my install.

What is your port set to for Hubitat? This should be 39501

philipfoltz commented 1 year ago

Here are my settings in the Pool Controller.

"hubitat": { "name": "Hubitat", "type": "http", "enabled": true, "fileName": "smartThings-Hubitat.json", "globals": {}, "options": { "host": "192.168.150", "port": 39501, "protocol": "http://" }

Pool Controller Settings 1

bsileo commented 1 year ago

That's not a valid IP address for your Hubitat.

On Sat, May 20, 2023, 9:09 AM philipfoltz @.***> wrote:

Here are my settings in the Pool Controller.

"hubitat": { "name": "Hubitat", "type": "http", "enabled": true, "fileName": "smartThings-Hubitat.json", "globals": {}, "options": { "host": "192.168.150", "port": 39501, "protocol": "http://" }

[image: Pool Controller Settings 1] https://user-images.githubusercontent.com/51804223/239689138-1d17c65d-1492-4273-ba5c-0c4fb724c9c4.png

— Reply to this email directly, view it on GitHub https://github.com/bsileo/hubitat_poolcontroller/issues/22#issuecomment-1555908659, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABOVFMALU4JVBKWUY2MYIHDXHC67LANCNFSM6AAAAAAYE3RZGI . You are receiving this because you commented.Message ID: @.***>

philipfoltz commented 1 year ago

Well now I feel stupid.. ;) I have updated it and testing

philipfoltz commented 1 year ago

Still not getting updates from the Pool Controller to Hubiat but Hubitat will control the Pool Controller.

bsileo commented 1 year ago

https://github.com/rstrouse/nodejs-poolController/blob/master/web/bindings/smartThings-Hubitat.json

On Sat, May 20, 2023 at 9:30 AM philipfoltz @.***> wrote:

Where is this file - "smartThings-Hubitat.json"? When I search for it nothing is found.

— Reply to this email directly, view it on GitHub https://github.com/bsileo/hubitat_poolcontroller/issues/22#issuecomment-1555912525, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABOVFMFTCSQX5NXNM3ASXW3XHDBPTANCNFSM6AAAAAAYE3RZGI . You are receiving this because you commented.Message ID: @.***>

philipfoltz commented 1 year ago

I found it. Just wanted to make sure it was there. And it matches

bsileo commented 1 year ago

Set the IDE Logging Level on your Pool Controller device in Hubitat to "Debug" and see what you get in logging.

image

On Sat, May 20, 2023 at 9:46 AM philipfoltz @.***> wrote:

I found it. Just wanted to make sure it was there. And it matches

— Reply to this email directly, view it on GitHub https://github.com/bsileo/hubitat_poolcontroller/issues/22#issuecomment-1555915273, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABOVFMETREULMIULV4ZT6BTXHDDMDANCNFSM6AAAAAAYE3RZGI . You are receiving this because you commented.Message ID: @.***>

bsileo commented 1 year ago

Here you can see mine with all the event data flowing into Hubitat

image

On Sat, May 20, 2023 at 9:52 AM Brad Sileo @.***> wrote:

Set the IDE Logging Level on your Pool COntroller device in Hubitat to "Debug" and see what you get in logging.

[image: image.png]

On Sat, May 20, 2023 at 9:46 AM philipfoltz @.***> wrote:

I found it. Just wanted to make sure it was there. And it matches

— Reply to this email directly, view it on GitHub https://github.com/bsileo/hubitat_poolcontroller/issues/22#issuecomment-1555915273, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABOVFMETREULMIULV4ZT6BTXHDDMDANCNFSM6AAAAAAYE3RZGI . You are receiving this because you commented.Message ID: @.***>

philipfoltz commented 1 year ago

Here is what I'm getting

Logs

bsileo commented 1 year ago

Certainly, no inbound events showing up there. You have to take a look at the logs on the NJSPC side to see if you can find these events being sent to Hubitat.

Set the Log Level: image

Watch the Logs directory for output under consoleLog*.log: [5/20/2023, 10:55:14 AM] debug: Sending [temps] request to Hubitat: {"headers":{"CONTENT-TYPE":"application/json","X-EVENT-TYPE":"temps"},"host":"192.168.2.106","port":39501,"method":"NOTIFY","path":"/notify"} [5/20/2023, 10:55:22 AM] debug: Sending [chlorinator] request to Hubitat: {"headers":{"CONTENT-TYPE":"application/json","X-EVENT-TYPE":"chlorinator"},"host":"192.168.2.106","port":39501,"method":"NOTIFY","path":"/notify"} [5/20/2023, 10:55:22 AM] debug: Sending [chlorinator] request to Hubitat: {"headers":{"CONTENT-TYPE":"application/json","X-EVENT-TYPE":"chlorinator"},"host":"192.168.2.106","port":39501,"method":"NOTIFY","path":"/notify"} [5/20/2023, 10:55:24 AM] debug: Sending [temps] request to Hubitat: {"headers":{"CONTENT-TYPE":"application/json","X-EVENT-TYPE":"temps"},"host":"192.168.2.106","port":39501,"method":"NOTIFY","path":"/notify"} [5/20/2023, 10:55:34 AM] debug: Packet not processed: 255,0,255,165,1,16,34,215,1,1,1,177 [5/20/2023, 10:55:34 AM] debug: Packet not processed: 255,255,255,255,255,0,255,165,1,15,16,23,16,1,0,0,0,0,0,0,0,0,0,128,128,0,0,0,128,2,109

philipfoltz commented 1 year ago

Where do I find this log?

bsileo commented 1 year ago

Under the directory where you installed NJSPC - something like ~/nodejs-poolController/logs

philipfoltz commented 1 year ago

Got it.

philipfoltz commented 1 year ago

I see it sending, still deciphering

dcorrea78 commented 1 year ago

When I get home I'll check my logs as well

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: philipfoltz @.> Sent: Saturday, May 20, 2023 11:12:54 AM To: bsileo/hubitat_poolcontroller @.> Cc: dcorrea78 @.>; Author @.> Subject: Re: [bsileo/hubitat_poolcontroller] Habitat integration issues (Issue #22)

I see it sending, still deciphering

— Reply to this email directly, view it on GitHubhttps://github.com/bsileo/hubitat_poolcontroller/issues/22#issuecomment-1555933056, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIGWRJPAJYD74VCHLY2C3CTXHDNPNANCNFSM6AAAAAAYE3RZGI. You are receiving this because you authored the thread.Message ID: @.***>

philipfoltz commented 1 year ago

Ok, after a few restarts and reading the logs it is now working. Thank you for your help! Awesome work on your integrations!

bsileo commented 1 year ago

Ok great news @philipfoltz

What about you @dcorrea78 ? I will close this for now but can reopen if you are still having issues.

I actually had not looked at this in about a year - always cool when I hear from others getting use out of it!

dcorrea78 commented 1 year ago

Ok looks like I got it working also. I didn't have the poolcontroller looking at the right IP for my hubitat. Doh!

I am seeing an error in the logs for the heater though in case you want to check that out: image

philipfoltz commented 1 year ago

I’m also interested in heater control, is that an option?On May 20, 2023, at 11:53 AM, dcorrea78 @.***> wrote: Ok looks like I got it working also. I didn't have the poolcontroller looking at the right IP for my hubitat. Doh! I am seeing an error in the logs for the heater though in case you want to check that out:

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

bsileo commented 1 year ago

Heater control is available. The Body device exposes heater / setpoint commands. It has the ThermostateHeatingSetpoint capability which lets you control it with Dashboards, etc.

philipfoltz commented 1 year ago

Great! I’ll review that!On May 21, 2023, at 8:07 PM, Brad Sileo @.***> wrote: Heater control is available. The Body device exposes heater / setpoint commands. It has the ThermostateHeatingSetpoint capability which lets you control it with Dashboards, etc.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

philipfoltz commented 1 year ago

Heater control is available. The Body device exposes heater / setpoint commands. It has the ThermostateHeatingSetpoint capability which lets you control it with Dashboards, etc.

I've been poking around this but can't quite figure it out. I see where the points are exposed in the device but can't get a dashboard tile to control them...

bsileo commented 1 year ago

Heater control is available. The Body device exposes heater / setpoint commands. It has the ThermostateHeatingSetpoint capability which lets you control it with Dashboards, etc.

I've been poking around this but can't quite figure it out. I see where the points are exposed in the device but can't get a dashboard tile to control them...

What Dashboard are you using? Here is an example of this tile deployed in Sharptools:

image

philipfoltz commented 1 year ago

As of right now just the Hubitat dashboards. Probably need to make the jump to a more robust dashboard option.

bsileo commented 1 year ago

Ok I don't have those installed so I am not sure how they support various Thermostat configurations. We are using the standard capability per https://docs2.hubitat.com/developer/driver/capability-list - capability.thermostatHeatingSetpoint

philipfoltz commented 1 year ago

Thank you for this feedback!Sent from my iPhonePhilip Foltz On Jun 7, 2023, at 8:29 AM, Brad Sileo @.***> wrote: Ok I don't have those installed so I am not sure how they support various Thermostat configurations. We are using the standard capability per https://docs2.hubitat.com/developer/driver/capability-list - capability.thermostatHeatingSetpoint

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

philipfoltz commented 1 year ago

I'm playing with sharptools now. How do you turn the heater on and off, I have the setpoint working. That attribute does not seem to be listed in sharptools.

bsileo commented 1 year ago

Check out the CurrentHeaterMode attribute on the Pool Body to see its state. I am using a Custom Rule in SharpTools to change the HeaterMode. This calls the command nextHeaterMode. The challenge here is that there can be different heater modes available for different installations (e.g. some have Solar Pref, etc)

image

philipfoltz commented 1 year ago

That will help me greatly! Thank you for this insight!

dcorrea78 commented 1 year ago

Philip,

I have the heater control working in the standard Hubitat dashboard with a combination of virtual buttons and rules.

I created virtual buttons for pool heater temp up, pool heater temp down, spa heater temp up and spa heater temp down. I then created a rule for each action. For example, for pool heater temp up my rule is as follows:

Trigger event - When pool heater set temp up button 1 is pushed Actions - Capability of action device = switch Select switches to act on = Pool (the pool device on my system contains the setPointUp attribute for the heater) Select custom command = setPointUp

I repeated this for the other Heater and Spa heater actions.

On the dashboard I added a tile for each "button" with the device set to the virtual button I want to trigger and the template set as a button. I also set the button number to 1 and the button command to push. I also added a tile that polls the heatingSetpoint attribute of the heater so that the set temp is displayed.

[image: image.png]

On Wed, Jun 7, 2023, 9:59 AM philipfoltz @.***> wrote:

Thank you for this feedback!Sent from my iPhonePhilip Foltz On Jun 7, 2023, at 8:29 AM, Brad Sileo @.***> wrote: Ok I don't have those installed so I am not sure how they support various Thermostat configurations. We are using the standard capability per https://docs2.hubitat.com/developer/driver/capability-list - capability.thermostatHeatingSetpoint

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/bsileo/hubitat_poolcontroller/issues/22#issuecomment-1580884571, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIGWRJPMFQSEVNMLQT3BBTTXKCCNHANCNFSM6AAAAAAYE3RZGI . You are receiving this because you were mentioned.Message ID: @.***>

philipfoltz commented 1 year ago

Thank you! I’ve been tinkering with these and your feedback is very helpful.Sent from my iPhonePhilip Foltz On Jun 7, 2023, at 12:17 PM, dcorrea78 @.***> wrote: Philip,

I have the heater control working in the standard Hubitat dashboard with a combination of virtual buttons and rules.

I created virtual buttons for pool heater temp up, pool heater temp down, spa heater temp up and spa heater temp down. I then created a rule for each action. For example, for pool heater temp up my rule is as follows:

Trigger event - When pool heater set temp up button 1 is pushed Actions - Capability of action device = switch Select switches to act on = Pool (the pool device on my system contains the setPointUp attribute for the heater) Select custom command = setPointUp

I repeated this for the other Heater and Spa heater actions.

On the dashboard I added a tile for each "button" with the device set to the virtual button I want to trigger and the template set as a button. I also set the button number to 1 and the button command to push. I also added a tile that polls the heatingSetpoint attribute of the heater so that the set temp is displayed.

[image: image.png]

On Wed, Jun 7, 2023, 9:59 AM philipfoltz @.***> wrote:

Thank you for this feedback!Sent from my iPhonePhilip Foltz On Jun 7, 2023, at 8:29 AM, Brad Sileo @.***> wrote: Ok I don't have those installed so I am not sure how they support various Thermostat configurations. We are using the standard capability per https://docs2.hubitat.com/developer/driver/capability-list - capability.thermostatHeatingSetpoint

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/bsileo/hubitat_poolcontroller/issues/22#issuecomment-1580884571, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIGWRJPMFQSEVNMLQT3BBTTXKCCNHANCNFSM6AAAAAAYE3RZGI . You are receiving this because you were mentioned.Message ID: @.***>

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>