GithubHelp home page GithubHelp logo

ggiesen / pynavilink Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 17 KB

Python library for communicating with a Navien NaviLink interface to Navien Domestic Hot Water Heaters and Boilers

License: GNU Affero General Public License v3.0

Python 100.00%

pynavilink's People

Contributors

ggiesen avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

jjang750

pynavilink's Issues

Continued development?

It looks like there was a fair bit of progress made on this, but I was curious if you managed to discover any more details about the format of the binary API requests/responses?

I started down the path of attempting to decipher the communication protocol being used by the mobile app for my NPE water heater and initially found Matthew1471/Navien-API/issues/1, but this seems to use a different method of authentication than what is used with the current version of the Android app. However, it uses the same port 6001 for the binary protocol and at least the device ID position in the binary response payloads align. I later found PyNaviLink, and see that a bit more aligns with what I have observed in mitmproxy and Wireshark captures with my setup.

I noticed PyNaviLink references a "Channel Information" response and a "State" response and assume that these align with the initial 52 byte binary payload, and second 271 byte binary payloads received. Apart from the device ID, I haven't yet managed to decipher the Channel Information response binary payload, but the State response binary payload has a few other identifiable fields in it.

I am also curious how you were able to derive the parameters used here

PyNaviLink/src/defs.py

Lines 39 to 48 in a0545ce

# Start transmission
STX = b'\x07'
# ???
DID = b'\x99'
# ???
RESERVED = b'\x00'
# Command
CMD = b'\xa6'
# ???
DSID = b'\x00'

In my case, I can see 0x07 0x99 0x00 0xa6 0x37 0x00 before the device ID in the request.

In any case, curious to get your thoughts.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.