-
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
One climate is not being reconized correctly anymore as an climate device #39
Comments
I enabled debugging when reloading and noticed this error:
|
Ok looking at the error and my programming experience, I expected it recieved some unknow value (6?) for the VALUE_TO_VERTICAL_POSITION key, so I changed the position of the AC Vent and reloaded and its fixed 👍 . I have zero experience with Python, but can't you do something like this: |
Yeah, there's a lot of chatter in the debug logs, with my current impression being it's due to some loose awkward handling of entities when the device is off. I've been waiting to get some time to come up with a better solution, but I'm similarly weary about side effects. I don't want to lose the original issue around your primary issue. Are all of your units the same model or are they different? While there could be a low brain solution around hardening the climate retrieval path, I think it would help to get a better understanding of your problem. |
Oh wait a minute, value 6. What are the vertical positions avaialble to your unit? Our current enumerations are 1-4: https://github.com/danielkaldheim/pyairstage/blob/master/pyairstage/constants.py#L114-L119. My device only has 4 positions available for swing, so there may be some additional parameters that indicate the possible range. |
Yes I have thee: |
Look like it once supported 6: VerticalPositionDescriptors has 6 values. |
That's a good contender. I do not have that param on my device, so it was probably added later. If you're savvy enough to do curls to your device, you can validate with sending
Otherwise I'll put together a test fork within a few days you can trial since I am unable to repro myself. |
Sorry, looks like this got away from me. I've set myself a reminder |
Alright, I put together a test repo that in theory works for your devices. I'm flying blind though so this will require someone to test to validate. And then it may be a slower turnaround as upstream changes to pyairstage need to occur, but one step at a time: https://github.com/ohshazbot/ha_airstage |
As I was experiencing the same issue after the firmware update of my ASYG09KMCC units to version 2.45, I've installed your test-repo. Where they were no longer working properly from HA anymore, it seems they are working again. No more messages with I do still see some messages with |
I'm still very new to HA and have no idea how I can just switch to an other repo without braking everything, got quite some integrations on it and renamed the entities, I may try and setup temp HA on my desktop and see if I can get that working. |
When you get an opportunity, please try adjusting the different fan direction settings, see if you have all 6 available or just 4 (or if things just start braking)
Connection timeout does seem out of scope, but if you see a stack coming out of |
So if your using HACS, you can remove and add custom repositories in the three dot menu. And if you remove this repo and add it you will not lose your configured entities (as long as a functioning repo is installed). But you should definitely take things at your speed |
Ok, last comment from me today, as I have some other stuff to do too. 😅
It seems I'm always getting |
I tryed it also, I got this error, when I tryed settings the swingmode:
When changing HVAC mode to heating from Drying, it seem to work when I check the airstage app, but in HA I get this error message: Failed to perform the action climate/set_hvac_mode. 6 When checking logs; I don't see any new errors? Maybe an idea to setup some call? PM me I'm in Belgium, you profile sais Boston, thats 5 houres difference if I'm not mistaking, can be challaging. |
Looks like I'm not finding the right magic key to get the number of swing positions. My devices does not report it at all (I think) so hard to test. And yes, I apparently butchered the curl command when I transposed it, so that comma was correct. But here's an amended one that throws in a few different possible parameters plus an always valid one just to make sure it returns properly.
If you fail to provide at least one valid parameter (in additional to some of the other attributes in the json) then you get the NG/0002 error, so that would explain why you're getting that. |
I have the same symptoms, but it is about fan speed. My HP has more fan speed options than what is in the code, is my uneducated guess: File "/usr/local/lib/python3.13/site-packages/pyairstage/airstageAC.py", line 116, in get_fan_speed
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ My HP model is General ASHH14KHCBN In the Airstage app, under Fan speed, I have 7 options: ...which is not 10 (key value 0-9) as indicated by the error log in HA. Btw: I have 4 possible vertical positions, and 5 horizontal positions, and I don't seem to have any problems with these, only the fan speed. If someone could make me a curl command to list fan speed options, I could try to investigate some more. PS: sorry about the bad formatting. I can't seem to get It right on my phone... |
@marhilde Still pretty decent for phone formatting :) Do you mind spinning this out to a new issue, fan speed is different then fan directions, so whatever solution we come up for this will probably not satisfy that. Want to make sure your issue isn't lost. When you do repost, if you can, run the following curl when you fan is at speeds:
And the command (note the placeholders for DEVICE_ID and DEVICE_IP) will be
|
Sure, thanks! I will post a new issue once I get home to my computer. Sorry about the derailing... |
You're fine, I can understand why you thought to chime in here :) |
Right, found some time again to play around with it... I managed to get 'some' output, but I needed to have another argument (at least for me and my unit) in the So the command became:
Response:
However, the response still doesn't show the info you're looking for, I'm afraid. No matter if I change the If only I could find some service manual or something on the internet... But I guess that's classified info hidden on some private and proprietary servers of Fujitsu probably, is it? Whatever the case, I've had no luck finding any of that kind (yet), unfortunately. Some more context: |
There's a few other things I can try to resolve this, thank you for checking. As for your additional context, how are you enabling heat mode that results in the swing position change (remote, airstage app, HA)? |
Doesn't matter, really. All 3 options actually make the unit's swing position turn into the full vertical position when changing to heating mode. Where switching it to fan, it always defaults to the horizontal position. It doesn't seem to 'remember' its swing position it had before when changing modes. However, the climate card in HA is always broken for a unit whenever its swing position gets set beyond position 4. Then I need to 'manually' reset it through the Airstage app or remote to get the unit working again in HA. So even though the climate card doesn't respond anymore for a unit with its swing position beyond 4, it does seem to have picked up the last command sent to it. At least, I always find the unit set to whatever I last set it to through HA. EDIT; fixed some typos |
Hi @Tw3aky81 I did some more sleuthing and I found another paramter from the unit that I'm hopeful about. In the curl command from before, I would like to inspect
|
Hi John,
|
SWEEET, I know what I'm doing this weekend |
I have updated my fork with this new information, if one of you with a 6 position device could test, that would be swell: https://github.com/ohshazbot/ha_airstage |
Hi @ohshazbot I found some time to play around with it and by my testing on my units, it looks like the integration still can't cope with a value of 6. One of the things I find out during my poking around with the What I did for testing your test-repo was going through the TL;DR Based on the error pointing towards the |
I mean, the worse case scenario is a literal user configuration to declare how many positions your device has, I've been trying to leverage information coming out of the unit to make that determination automatically. My thought was that |
@Tw3aky81 I have updated my branch with another version. Two changes I made:
|
@ohshazbot, should I see the extra swing positions you've added in the selection box of the climate control in HA? If so, I don't have them, even after deleting and re-adding the unit into the integration. Maybe I'm doing something wrong when updating? For the rest, I still seem to get the same output as in my previous test. Finally giving the error below, when hitting '6' in
It does seem to have picked up your changes in Cheers. |
Drat, that test seems fine. I was probably a little arogant when I saw the missed initial lookup. I'm gonna add some logging so we can root this out |
Well, not thrilled with this hack, but I have updated my branch and pyairstage to including printing out debug details because I could not get debug logging from pyairstage working. While doing so, I had to manually intervene in the pyairstage version for my HA container to ensure it actually applied. So with the new change, you should see output from home assistant like
In order to ensure that the right version of pyairstage is installed, you can do a Hopefully the shortcomings to this point were due to versions not updating as intended, but if your standing test does not work, that output line should help paint a picture for whats going on. |
Aha! Making progress, I think. Hooray!
I'm using HAOS btw, but it turned out I could use the exact docker commands you gave me through the Terminal & SSH add-on's web GUI, apart from the And although I don't have the extra options available in the unit's
Which would make sense if the old The good news is we got rid off that |
Yeah, seems that way. Once we can actually get a release cut it should go without a hitch. As for that last error, I did observed a missing step in the ha_airstage repo fork (I missed a reverse translation table), I have made a small update which should address the "Swing mode is not valid" error. Can you give it a go for a day so we can see if that gets that error to go away. Meanwhile I'm gonna try to get pyairstage updated for realsies |
@ohshazbot, I updated the ha_airstage repo to your last commit, but unfortunately the Seems as if the unit is reporting one of the Could it be that the |
Without seeing a full trace I'm not certain, but that certainly feels like a reasonable cause for the issue at hand. I have pushed an update to my branch to also populate swing modes, though I still need to test it to make sure this doesn't make for a bad time for us 4-position folks |
Progress in the sense that I now have all 6 swing modes available in the climate card... and the Now facing another issue in the backend I guess. When selecting
Never thought that what seemed to be a small difference could be that big of a PITA. 😄 |
I'm still comfortable with this being the right direction, looks like vertical positioning is just a rats nest of doubled up double translation layers. That stack trace was incredibly helpful, turns out I used the wrong constants for HA_SWING_TO_FUJITSU and I need to come up with a solution for VerticalSwingPosition as that also needs to rely on the encoding number for translation. I'm not sure how I want to address it, hopefully will have time Friday to take a stab as I'm starting to think a broader refactor for positions between ha_airstage and pyairstage needs to happen |
I have an ASEH12KHCBN and can also confirm that it has seven fan speeds (including Quiet and Auto). Thanks for all the effort—great to have the ability to control my HVAC in HA. |
I got the update of HA today: 2024.10.3 (I'm guessing this is what broke it, didn't change much more today)
Sinse then one of the 3 A/C isn't reconized correcly anymore, only some of the entities are added, they do work, so its not like it got new ip or forgot it... I tried removing it and adding it again, but that didn't help:

Note its missing A/C icon with on/off status and temps also not the model name, that used to be there, its an other model then the other two
This is one of the others that sill work: The is an A/C bureau-airco icon with status off and temps

Also when I try to add it again on the dashboard and type climate. I only get the two other A\C's don't know what to do.
The text was updated successfully, but these errors were encountered: