-
Notifications
You must be signed in to change notification settings - Fork 5
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
Handle preset finding in XML better #14
Comments
@CoMPaTech I think we should investigate a bit more before we push this update. |
Not sure, but finding it by |
I looked at your code-change and noticed the fall-back :) |
Let's close this issue, it's fixed I think? |
I was thinking when looking at this issue again, the problem is, when there is no name for the schedule(s), as in w2ckers-case, other stuff will not work. We might have fixed this particular error but there will be other errors. |
@CoMPaTech |
Totday I updated HA to version 0.102.0. I get the following error now in the log: "File "/usr/local/lib/python3.7/site-packages/haanna/haanna.py", line 197, in get_rule_id_by_template_tag |
Please let us know the firmware-version of your Anna, and please post the contents of |
Domain Objects here: https://pastebin.com/pduQDyz6 Firmware version is 1.8.20. |
I think you have to add the legacy statements then ... see https://www.home-assistant.io/blog/2019/11/20/release-102/#read-more on breaking changes. See https://www.home-assistant.io/integrations/plugwise/ on setting |
After changing this, I got a new error: File "/usr/local/lib/python3.7/site-packages/haanna/haanna.py", line 373, in get_schedule_temperature Any change I can update to a higher version? |
I looked at the various codes, I can't find anything obviously wrong at the moment. Replace in the file /homeassistant/components/plugwise/manifest.json on your system: |
I created it as custom component (I'm on Hass.io) but with this change it's working again. But... setpoint and presets have disappeared. |
Can you reproduce the fault in the custom component with haanna 0.13.5? I'm at a bit of a loss, it's working fine in my system (3.1.7) and it's working on someone else's legacy Anna. I've compared your XML-data to this persons XML-data, basically they are the same. So I don't understand why it's not working for you. The value is present in your XML but somehow the Haanna-code doesn't find it, very strange. |
What do you mean with "reproduce the fault in the custom component with haanna 0.13.5"? |
You have created a Plugwise custom component, correct? And you've made the change in the file manifest.json as I asked? Now I'm asking you to revert the change you made to this file and try again. You write you have two Anna's, do you have these both "connected" to Home Assistant? How? Via 2 separate climate instances in HA? You must have 2 Smiles then? |
Can you show me how your Anna climate device(s) looks like in Developer Tools --> States? |
I think I have found what is causing the error. Not sure how to solve it yet. I will not be available for the coming 2-3 weeks, I'm moving to a different city, 2 hrs drive away. |
I could not let this go yet :) I have made a haanna-simulator in which I imported the XML-data that you put on Pastebin. So, I think there is something wrong with your HA-system, maybe the haanna-version on your system is outdated, or something went wrong with the 0.102 update. After updating your HA-system, you've made Plugwise into a custom component, you wrote. How have you done that? Which files were put where? And please show the contents of the file manifest.json of your custom component. |
@fwestenberg, another user reported the same problem as you have found. |
My week-schedule is empty. I deleted it because I don't need it. I will create one and see if this solves the problem. |
Can you first create another XML-dump? That might help us to find a solution. |
It looks like it's all working as it should? |
But where is the setpoint adjustment? |
You can create your own pull-request towards the translation :) Or use the Simple Thermostat card, you can configure the names of the presets to anything you like. |
Can you please capture one last XML? http://[your smile ip]/core/direct_objects Another user has reported a similar issue and he found there's another XML-path where the actual indicator I'm looking for, is hidden. Hopefully the XML-data from your system can confirm this. |
Here it is: https://pastebin.com/6DaEQz9N |
Thanks! Was this capture taken with the heating in on/active state? |
Here's a paste with thermostat active: |
Thanks. But no avail, the |
Stop scratching. It's in the direct_objects: |
Yes, that is what I was expecting to see. Thanks! |
@fwestenberg Also, I had to reintroduce some old haanna-code that I had removed before. Without this code it is not possible to reactivate a previously used weekschedule on the latest Anna. This might reintroduce a bug for the legacy Anna. Let me know if there is an error in the log related to the "lambda" function. |
Thanks for the update, I'm testing it now. I removed the
|
Thanks for reporting back! |
@bouwew shouldn't this have been fixed? Seems like I was still on the plugwise_dev integration, but after changing to the original plugwise integration this shows up: plugwise: Error on device update! |
@fwestenberg "https://github.com/bouwew/haanna-1/archive/master.zip#haanna==0.14.2" Then save the file and restart HA. Let me know the result. Update: this fixed a similar issue for two other legacy Anna users. |
@bouwew I'm a legacy Anna user also. The change in the manifest.json works for me. However the illuminance is not in the attributes anymore. I don't know if the boiler state should be in it or the hvac -action should be update when de boiler is heating or not. please let me know if i can help. |
Sure, feedback is always welcome :) |
I'm sort of tinkering with sensors (again), but it takes some time to get it right :( |
@WilbertVerhoeff |
@bouwew I want to thank you anyway for all the work you put in this integration. The Plugwise integration is THE reason i started with HomeAssistant. |
@WilbertVerhoeff Under the
Under
And finally under
The placement of these lines doesn't really matter, as long as they are placed under the correct header. For editing the file, I would suggest the Visual Studio Code add-on. |
@WilbertVerhoeff zou jij ons kunnen helpen? |
Yes, I want to help! How do you want the data? Can I copy paste it some where? Or can I open a port so you can watch when you want? |
Great! Please go here: https://github.com/plugwise/Plugwise-Smile/tree/master/tests Also, please browse to http://{ip_of_your_smile}//system/status/xml and save the data there as well if there is any data. Please email all the files to bouwe "@" westerdijk "." info (spaties en " weghalen). Alvast bedankt! |
@fwestenberg We are working on a common platform for all Plugwise devices. There will be support for the Plugwise Anna's, Smile P1's and the Adam, and Plugs via the Adam. We have tested with the Adam, Plugs and the Anna with firmware 3.1.11. Now we are looking for testers that have a legacy Anna. Are you willing to help? |
Sure! Just let me know what to do! |
Very good, thanks!. After having installed the new component and having configured it, please check the result: are all the various entities there? If anything went wrong, check the Log and send us the error-info. Please provide as detailed feedback as possible. |
Or, the feedback can be given here: https://community.home-assistant.io/t/advice-how-to-load-sensor-info-from-plugwise-anna-thermostat-web-interface-xml/87801 |
@fwestenberg @WilbertVerhoeff we've just released 0.2.0 of our custom_component (with an upstream HA-PR in progress). As per the release of HA-core 0.109 this wednesday (or if you already run HA-core beta 109) you can start using plugwise-beta. Closing this issue. If you have any further comments or issues feel free to update The (community post)[https://community.home-assistant.io/t/plugwise-smile-custom-component-beta/183560/3?u=compatech] |
Modify (and test!) if searching for "a rule that has a
template_id
tag containingzone_setpoint_and_state_based_on_preset
and hasactive
set totrue
" instead of what is currently implemented in haanna.py (lines 62/63):As reported in home-assistant/core#26520
The text was updated successfully, but these errors were encountered: