-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implementing ComfoCool: request for help ;) #13
Comments
Btw, the pdo 69, as mentioned here is not working. It is 53 that is working on my device. |
Decode_pcap.py can only be used when you have a pcap with the traffic to the Comfoconnect Lan C in it. You will need to find a way to actually capture it first. If you could capture the traffic, that would help immensely. The local traffic isn't encrypted, and by using my decode script, I could fairly easy see what commands are being executed. The issue is that it's difficult to intercept the traffic. I've used a few ways in the past that worked.
Capturing on your router/firewall is probably not possible, since the traffic stays on the same subnet, and isn't passing your router/firewall. |
Thanks for the info! I was able to capture the traffic to the Comfoconnect using a managed switch, like you suggested :-)
|
Awesome! All commands that are executed will be in the CnRmiRequestType section at the bottom. You might want to toggle it on and off a few times so you can recognise the command. I think it might be the 8415050100000000100e000000. And the next one with the ffff's. The last bytes are the duration. So the most important part is the 84150501. You could try manually execute this, but I don't think I have a way to do this from the CLI. You can modify the main.py to change the cli tool, and have that execute this command. You could probably copy past from another command that also starts with 84 and create a new method to toggle your comfocool. I'm not near a computer right now, so it's a bit difficult to check. |
Success: I was able to turn the ComfoCool on and off (with timer "Continuouly") !
In
And then, for the
Now I'm able to run this a the CLI:
I hope that you can help me out on how to integrate this further in order to have this feature available in Home Assistant? Of course I'm happy to help as much as possible! |
Great! I have enough information with this. I'll try to add it to the library, and the Home Assistant integration when I find the time! |
@gertst what are the options you can choose from? Only "on" / "off", or is there also an "auto" option, or is "on" actually "auto"? If possible, create a capture and toggle between all the settings. I want to be sure that the I have all the possibilities of 84150501. |
I'm not at home , so I can't capture right now.
But in fact we only need "on" (Auto) or "always off" (off with duration "Continuous"). because durations can/should be handled by Home Assistant. Those 2 commands are the ones I provided in the previous post:
I'm happy to help if you need more info. |
Okay, that's clear. Can you try to checkout this branch, and create and run the test.py command i've added in the merge request? If all goes well, it should display the current status for 5 seconds (you can try to modify it from the app and it should update), turn the mode on, wait 5 seconds, and turn it off. You should see this being updated in the app UI instantly. For my Home Assistant integration, it's also required that I can read out the current status correctly. |
Sure - I will test this tonight |
I've merged your PR and made a 0.1.9 release for this library. Next thing to do is to add this to the Home Assistant integration here: https://github.com/michaelarnauts/home-assistant-comfoconnect |
Hi Michaël, Thanks! |
I have added this two PR's which should help add Full ComfoCool support. #28 and michaelarnauts/home-assistant-comfoconnect#51 |
and hopefully this one michaelarnauts/home-assistant-comfoconnect#52 |
These look good! Thanks @szibis |
Hi Michaël,
I can use python -m aiocomfoconnect show-sensor 53 --host 192.168.x.x to check if my ComfoCool is on or off: Off is 1 and On is -1 or 0. Don't know why it is 0, sometimes, but it looks that -1 is On, consistently, so that's good enough ;-)
I asked the question before if it is possible to include the ComfoCool integration, but I know that you don't have the ComfoCool, so you are not able to test on it. I totally understand that.
However, It would be very 'cool' (no pun intended :-)) if I manage to get the ComfoCool working by myself and sent you a pull request. I just don't know on how I can send a command to the ComfoCool to turn it on or off. Can you put me in the right direction on how to do this myself?
In the Zehnder app, the UI looks more or less like the Boost feature, but the other way around: To enable it, there is no timer, but to disable it there is a timer going from 1 hour to Continuously. Of course, that timer feature is not needed as this can be done in HA. But it might give you an idea on what command to use...
I'm a JS/Node/Vue programmer, but don't know Python, but I'm happy to experiment with it to have this feature enabled!
Can you provide me some more insights? I tried running the decode_pcap.py to capture the command, but for some reason I don't see any traffic on port 56747 or on the IP of my ComfoConnect ... I guess this is the first I get to do: capturing the traffic to turn it on/off?
Any help is appreciated a lot!
Gert
The text was updated successfully, but these errors were encountered: