-
Notifications
You must be signed in to change notification settings - Fork 12
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
Kumo Station & MHK2 support #25
Conversation
feat: Add support for kumo station with its outdoor temp
…-station Move PR #23 fix to py_kumo_base.py
Sorry for the delay -- ran a quick test this morning. Haven't been able to dig in yet, but something is up with account creation:
In the main branch, this succeeds. In
Hope this helps and can look further at this later today. |
Ah. That might get interesting. I think in my branch I had made a change to use the serial number as the key in the dict. As that shouldn’t ever change, but the units can be renamed. I can work on a PR to back out that breaking change if we want. Or maybe we could expose an alternate method for the indexed by serial number and restore the old one. |
Gotcha. It seemed like I wasn't seeing anything in the dict from (also, paranoid question: would this potentially change the name/IDs in Home Assistant integration in https://github.com/dlarrick/hass-kumo ?) |
We should test the upgrade. There is a PR against hass-kumo as well that pairs with this, but I don't think the names would change |
On my end, I took python3 ./server_parser.py ./examples/local.json
Units: dict_keys(['1434P008T1009999', '1734P008T1809999', '1434P008T1009999', '1434P008T1009999', '1434P008T1009999', '1434P008T1009999'])
Unit 3rd Floor: address: 192.168.3.185 credentials: {'password': 'OMIT', 'crypto_serial': 'OMIT'}
Unit Living Room: address: 192.168.3.181 credentials: {'password': 'OMIT', 'crypto_serial': 'OMIT'}
Unit Kumo: address: 192.168.3.180 credentials: {'password': 'OMIT', 'crypto_serial': 'OMIT'}
Unit Front Bedroom: address: 192.168.3.184 credentials: {'password': 'OMIT', 'crypto_serial': 'OMIT'}
Unit Back Bedroom: address: 192.168.3.183 credentials: {'password': 'OMIT/L', 'crypto_serial': 'OMIT'}
Unit Master Bedroom: address: 192.168.3.182 credentials: {'password': 'OMIT', 'crypto_serial': 'OMIT'}
Indoor Unit 3rd Floor Current Temp: 6.5
Indoor Unit Living Room Current Temp: 18
Kumo Station Outdoor Temp: -11.4
Indoor Unit Front Bedroom Current Temp: 17
Indoor Unit Back Bedroom Current Temp: 19
Indoor Unit Master Bedroom Current Temp: 19 I also attempted your test code @dmcc and it seemed to work ok. I noticed in your output the import pykumo
account = pykumo.KumoCloudAccount.Factory('USER', 'PASS')
kumos = account.make_pykumos()
print('kumos', kumos)
print(kumos['Living Room'])
=>
kumos {'Kumo': <pykumo.py_kumo_station.PyKumoStation object at 0x7f9f4e24c610>, 'Living Room': <pykumo.py_kumo.PyKumo object at 0x7f9f4e21f5b0>, '3rd Floor': <pykumo.py_kumo.PyKumo object at 0x7f9f4e316b20>, 'Front Bedroom': <pykumo.py_kumo.PyKumo object at 0x7f9f4e316880>, 'Master Bedroom': <pykumo.py_kumo.PyKumo object at 0x7f9f4e244ac0>, 'Back Bedroom': <pykumo.py_kumo.PyKumo object at 0x7f9f4e244520>}
<pykumo.py_kumo.PyKumo object at 0x7f9f4e21f5b0> |
Hi guys, thanks for testing. I gave this a try myself and I agree, seems to be working, result still indexed by name. I suspect KumoCloud was having one of its numerous outages. I'm also interested in whether this new version is picking up the Kumo Station and humidity from MHK2. |
Kumo Station looks good, I see it in my output above and it shows the outdoor temp ok |
Ah, weird, maybe there was an auth problem? Just ran it again this morning and now I see a different issue:
When I run it from my branch, I get the expected output ( |
Out of paranoia, I ran this again in a fresh checkout with these shell commands:
I get the same output I was seeing in #25 (comment) If this works for @dlarrick and @brgaulin then I'll work on tracking it down. |
Alright, I think I've found the issue. The
So, as a hacky fix, I can set:
at the top of |
I think setting pykumo to be the fallback is a good idea, and we can set more specific ones as needed |
Some units don't report a unit type, so we fall back to `PyKumo`. More details: #25
MHK2 + Kumo Station support: Make PyKumo the default class
I merged the fallback. Let me know how things look; if we're good I'll merge this to master and make a new release. |
Thanks @dlarrick! I've tested the latest version and it looks good. |
Sorry, my day job has been stupid busy. I hope to get a release out this weekend. |
No worries, I've been there 😃 |
@brgaulin @dmcc please test this version and report back. If it looks good I'll commit and make a new pykumo release.