Skip to content
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

TFA Dostmann AIRCO2NTROL Coach #13

Open
alpxp opened this issue Mar 7, 2020 · 6 comments
Open

TFA Dostmann AIRCO2NTROL Coach #13

alpxp opened this issue Mar 7, 2020 · 6 comments

Comments

@alpxp
Copy link

alpxp commented Mar 7, 2020

For TFA Dostmann AIRCO2NTROL Coach version of co2meter I had to comment out the _decrypt(msg) in co2meter.py, i.e. this works:

def hid_read(self):
""" Read 8-byte string from HID device """
    return self._h.read(8)

Otherwise (None, None) is returned.

Here is the >>> mon.info

{'product_name': u'USB-zyTemp', 'vendor_id': 1241, 'serial_no': u'2.00', 'product_id': 41042, 'manufacturer': u'Holtek'}
@alpxp
Copy link
Author

alpxp commented Mar 8, 2020

Ok, so TFA Dostmann AIRCO2NTROL Coach measures humidity as well. Humidity measurement starts with 0x41 code (learned here).

I made all the necessary changes to output the humidity, with the exception of homekit.py, which does not work for me at all. Here is the new code:
alpxp@e70c36e

Screenshots with humidity:
Screenshot 2020-03-08 at 14 58 50
Screenshot 2020-03-08 at 14 58 37
Screenshot 2020-03-08 at 14 58 58

I think this code will not work with the Mini version out of the box, because of the encryption there, which has been commented out in alpxp@e70c36e. May be this is easy to fix by adding some kind of detection of the device version. The rest of the code should be relatively ok, as Mini returns 0 for 0x41 (humidity) by default.

@vfilimonov
Copy link
Owner

Hello @alpxp
Thanks for reporting and figuring out how to decode humidity!
Let me have a look and incorporate your code to co2meter. I suspect that I'd need to wrap _decrypt() with some flag which should be set in the beginning - my model sends encrypted messages

@vfilimonov
Copy link
Owner

Similar issue: #16
It took 8 months (🤦), but the bypass_decrypt argument has been added to master: 5d4187d

@alpxp
Copy link
Author

alpxp commented Aug 4, 2021

Cool :)
I'm remaining on my fork for now, because I use the Humidity readings as well.
I have also implemented MQTT output to be used with the Home Assistant/Influx/Grafana etc... Might do a pull request later if this is interesting.

@Major2828
Copy link

@alpxp Could you discribe how to use your fork for MQTT Output? I woul integrate it in Home Assistant.
Thank you in Advice

@hurricup
Copy link
Contributor

hurricup commented Dec 7, 2021

@Major2828 you may check https://github.com/devbis/co2mqtt
I'm using it for HA integration. Thinking about my own component, but not there yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants