-
Notifications
You must be signed in to change notification settings - Fork 15
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
mqtt input #39
Comments
Very cool, with this we will be able to start water heating from remote. Thank you so much! |
Thank you, after code stabilization I'd love to see this containerized by someone :-) Now I added the possibility to read, also (too stupid I did not included it before), this is the modified README.md section
new commit is here published values on mqtt are retained to simplify dashboard creation, but current format does not include timestamp so it is not known how old is a retained topic ...definitely an area to improve after feedback gathering |
That container part is already done: https://hub.docker.com/r/pdcemulator/pyhpsu/ :-) |
Sure, I know, I hope the Dockerfile will reside in this repository, ultimately |
Latest commit on my repo includes some stabilization on this feature.
|
I have reached a decent milestone, code is functionally complete, although inherently bad in terms of modularization and object orientation. In case someone's interested or can give me further suggestions, it starts at boot time with systemctl with a service defined like this
where canable.service is another custom service that brings up my can0-friendly-dongle. The commit I am talking about is here and it can be maybe merged on the testing branch if decided it is the right thing to do. |
Make a PullRequest and I will merge git so everyone can test it. :) |
Yes please. I'd like to volunteer to test it. |
I've been testing it over the last week. I've actually updated to https://github.com/segaura/pyHPSU. It has been working fine. Needed to adjust hpsu.service as follows:
The EnvironmentFile doesn't seem to do anything.
I'm looking into controlling heat_slope, t_dhw_setpoint1 and t_room1_setpoint from my home automation system. Q: Does anyone have experience which values are accepted for t_dhw_setpoint1 and t_room1_setpoint? The app allows for temperatures with half a degree difference (20.0, 20.5 for t_room1_setpoint). Did somebody try sending values like 20.1 (one decimal) or even 20.25 (2 decimals)? I noticed another hpsu project on github: https://github.com/weltenwort/py-hpsu-monitor |
I also commented the
As of today, it is the systemd unit file that has been hammered to work with pyHPSU more than pyHPSU designed to conform with systemd. I confirm the On segaura/pyHPSU I am a few commits ahead exactly because I am trying to solve issues regarding use with systemd. Regarding accepted values for For everything you think you can improve, I encourage you to submit a pull request. |
Now that mqtt output plugin is present and working very well, I missed a lot the possibility to send mqtt input to pyHPSU, also.
I implemented a simple MQTT Daemon.
By now it is an option of pyHPSU.py,
--mqttdaemon
, only this code file has been modified.This is the excerpt from the mode section of the new README.md
Proposed code is on top of the branch with the revised log management (logrevision branch in segaura repo, testing in Spanni26 repo), this is the latest commit
segaura@8fc6ae2
Coding is not complete,
--mqttdaemon
can't live along other "command/output" options, like-a
,-c
,-o
, ..., it has been tested alone only, so far.Moreover, as with previous commits, I tried to stick with existing code setup, avoiding refactoring wherever possible: this is not ideal but I think it is the correct "first step".
Other changes included:
NOTE: current implementation is dedicated to "write" commands, in the next commit I plan to enable "read" command (mqtt daemon publish) and also to enable automatic read after write (e.g. mqtt daemon receives a write command in the subscribed topic, executes it, read the changed value back from hpsu and publish it on mqtt)
The text was updated successfully, but these errors were encountered: