-
Notifications
You must be signed in to change notification settings - Fork 33
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
Merge WPU manual control from fork #234
Conversation
This merges the changes in the private fork that enables "manual operation". It is mainly used for controlling the WPU heatpump. This commit adds "4030 Manual control" to the debug page. The debug option "dryrun" is removed. It is no longer needed.
Thanks! I've pushed some textual changes and a first try for some documentation for the api page of the add-on. https://github.com/arjenhiemstra/ithowifi/tree/pr/234 |
and here also a compiled firmware file for those who want to test: |
I've tested this and it works OK. I do notice something that might be better to fix. If I leave an extra comma in the MQTT command:
Note the extra comma after "checked":1,
instead of the D_LOG() echos of the command that is executed:
|
I merged pr/234 into this and added (a little bit) of information. The information is from the (publicly available) documentation of the i2c modbus module: https://www.ithodaalderop.nl/nl-NL/consument/product/03-00638 In the past I've added some documentation for these WPU features to the wiki: https://github.com/arjenhiemstra/ithowifi/wiki/Itho-WPU-Heat-pump-support EDIT: Done. |
Had a small look into this. A JSON with a stray comma (one not followed by an object key or array value) is not a valid JSON. That is exactly what you see happening. The input fails here:
and hits this line:
as there is an error in the JSON, the API processing passed the input to the ithoExecCommand function here: ithowifi/software/NRG_itho_wifi/main/tasks/task_mqtt.cpp Lines 446 to 448 in cd73d0e
what is passed is the raw input string (s_payload), which is logged in the ithoExecCommand function. |
nice work, thanks!!! |
I just had a look at this link, imho it's best to leave as little external dependancies as possible. |
This merges the changes in the private fork that enables "manual operation". It is mainly used for controlling the WPU heatpump.
This commit adds "4030 Manual control" to the debug page. The debug option "dryrun" is removed. It is no longer needed for initial debugging.
Ref: https://gathering.tweakers.net/forum/list_message/77786836#77786836
It seems to work, but I will do some more testing tomorrow, to make sure this actually works.
TODO: