parnic / node-screenlogic

Pentair ScreenLogic Javascript library using Node.JS

Home Page:https://www.npmjs.com/package/node-screenlogic

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get current light color for pool/spa lights

waltershewmake opened this issue · comments

I checked the SLControllerConfigMessage in bodyArray and colorArray, and I checked the SLPoolStatusMessage in circuit array. Am I missing something?

Also as a side question, is it possible to target specific group of lights, for example pool lights, or spa lights when doing sendLightCommand?

I checked the SLControllerConfigMessage in bodyArray and colorArray, and I checked the SLPoolStatusMessage in circuit array. Am I missing something?

The library doesn't support retrieving current color of a light. I don't know where/if that's available in the official app either, which is how I've been able to add features to this library at all. Best you could do is remember internally what the last color command you issued was and assume it's still that.

Also as a side question, is it possible to target specific group of lights, for example pool lights, or spa lights when doing sendLightCommand?

I wish. If that's possible, I haven't found the means by which to do it. I left a comment in the readme alluding to this.

I'd be excited to accept PRs to add these features if they're available.

I'd be excited to accept PRs to add these features if they're available.

I would be willing to check out the official app's code and help out if you could provide me with an apk or whatever you use to check.

I'd be excited to accept PRs to add these features if they're available.

I would be willing to check out the official app's code and help out if you could provide me with an apk or whatever you use to check.

Check this comment out.

I agree with parnic, I don't think either of those functions are possible.

I agree with parnic, I don't think either of those functions are possible.

I have been looking through the code and have come to the same conclusion.

The only way I can see possible is if we could somehow modify the hardware to accept special requests. I will look into this.

I agree with parnic, I don't think either of those functions are possible.

I have been looking through the code and have come to the same conclusion.

The only way I can see possible is if we could somehow modify the hardware to accept special requests. I will look into this.

That would be great, I was able to take apart the firmware upgrade utility for the screenlogic adapter and found the firmware file, unfortunately it uses a relatively obscure chip (a rabbit microprocessor) and uses DynamicC as the toolchain. I was unable to disassemble the firmware as the tools i could find did not have support for that chip. Granted I'm not too skilled in this kind of thing so maybe someone with more experience could take a look.

EDIT: the firmware file is called pool.bin and the easiest way to get it is to download the mac updater and search for it inside the directory structure of the update app.

Going to close this out for now as it seems we all agree it's impossible, at least with the information currently available. If you make other discoveries, feel free to open new issues!