tadasdanielius / pyaltherma

Python library to control Daikin Altherma heat pump
MIT License
8 stars 0 forks source link

Finding the REST endpoints for BRP069A78 module #5

Open chris24walsh opened 1 year ago

chris24walsh commented 1 year ago

Could you explain how you identified the query paths for the BRP069A62 module? I have a different LAN module (BRP069A78) integrated into my Altherma, which according to the Daiking website is also accessible 'via your local network or internet'. Nmap shows that port 80 is open, but if I try an example script with pyaltherma I just get:

aiohttp.client_exceptions.WSServerHandshakeError: 404, message='Invalid response status', url=URL('ws://192.168.2.61/mca'

I would hope that I can still use the BRP069A78 module, but just need to find the right paths.

tarmor1 commented 1 year ago

Hi Chris! This is how I did do it for various debugging back in 2018:

sudo tcpdump -A -i eth0 src 192.168.2.4 and dst 192.168.1.40

Some notes too: https://community.openenergymonitor.org/t/hack-my-heat-pump-and-publish-data-onto-emoncms/2551/35

It's the command I did run on my Raspberry PI that acts as a dumb bridge for wired LAN module and my wireless network, so I could really easy sniff the packets moving through that Raspberry with tcpdump. In the above example 192.168.2.4 is the Daikin LAN module and 192.168.1.40 is my local HA instance running on (another) Raspberry, Basically what you need is a machine running tcpdump or somehting similar that gets hold of the Daikin LAN packets. Maybe can you elaborate a bit about your network setup?