-
Notifications
You must be signed in to change notification settings - Fork 28
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
add preset mode: normal #70
Comments
Hey, thanks for the post (And the PR!) and sorry for the slow followup! I'm not entirely sure I understand the ask here. Could you go into a bit more detail? I'll go over and take a look at the PR too, but I'll try to keep discussion here to avoid confusion. |
Aha, okay looking at the PR (and at Home Assistant) I see what you're getting at now. The code looks pretty good! There are a few details to address but overall I think this is pretty great. I'll do some testing and make a PR onto your PR (It's For those details to address, I want to preface it with this: None of these are anything you should feel discouraged by. It's just details - your code itself is 👍 👍 .
|
Are the devices then automatically updated to the latest version or do you have to do something manually in Home assistant? |
how does the fan actually remember which mode he had before switching off? |
If you're asking "How do I update this integration?" then you'll need to update it with HACS. After I publish a new release in just a bit here, it can take up to two hour for HACS to detect the new version and give you an "update" button. But you can force it to re-check by restarting your Home Assistant instance. Short version: You don't need to update the (Dyson) devices but you will need to manually press the "update" button for the Home Assistant Integration.
The fan itself has its own internal compute hardware and memory/storage. When you turn it on, it's more like a computer fast-rebooting than a fan simply turning on. I'm not sure what hardware it's running, but seems substantial enough as it has Wi-Fi, Bluetooth, an MQTT Broker, and processing for several sensors. I'd guess it's running something around the level of an ESP32. Now I'm curious, maybe @Paul-McNeice might be able to enlighten us (if he's allowed to - this might be one of those industrial secret things). |
Released v1.2.0, thanks for your contribution! This is one of those detailed quality-of-life things that really make the experience so much better. Closing this issue, but feel free to keep discussing here in the thread if you want. |
I just received the update, looks like all is working. |
It looks like this part is not working yet. via Dyson Remote Via.Dyson.Remote.mp4via Home Assistant via.Home.Assistant.mp4 |
@Silther interesting! Looks like when we send a power-on command, we're also overriding the device's internal state. This'll probably be a small fix but might take some funky debugging to find the problem. If you want to take a stab at it, here's some guidance I can provide: This will probably need to be implemented in the libdyson repo. But I'll try to get to debugging it later tonight to get a clearer picture of what's happening. Reopening this issue to track it. |
I would like to, but since I am currently between exams, I do not have enough time. |
Lol no worries. Exams come first. |
Could you add a screenshot also showing the current settings page? And why is there a small icon switch inside of the right switch? It looks pretty strang to me. |
Have you searched for similar bugs reports in the himekit bridge github? I looks pretty strange to me, that homekit showed you an additional EDITt: I just saw that you have an humidify, this device shoud not even be affected be the changes I made. |
I have an older model, a Pure Humidify+Cool Cryptomic (PH02).
Not sure how exactly your implementation works, but the auto/manual toggle pre-1.2.0 does actually work and the changes introduced in 1.2.0 caused that toggle to disappear from the accessory settings page. In its place exists two extra switches called "Auto" and "Normal" which do the same thing, just less elegantly, see below: These switches are automatically grouped together into one page, that's what the first screenshot is in my original post And this is what the settings page for the fan accessory looks like running ha-dyson 1.3.2 (notice the missing auto/manual toggle)
I did, but unfortunately it seems that I might be the first to experience this. (or maybe I'm not good at searching github issues lol) |
What happens if you switch both of them off? |
Nothing happens to my Dyson fan, it just eventually turns whichever switch was on last back on. Turning one on turns off the other, and an invalid state (both off) just reverts the virtual HomeKit switches. This is how Home Assistant exports presets to HomeKit it seems, similar to how input_selects are exported to HomeKit. |
Just migrated from shenxn/ha-dyson to libdyson-wg/ha-dyson and this is the first thing I noticed as well. I also prefer the 'old' way. |
Thats seems to be a limitation of homekit, as they do not support fan modes. Documentation Could you upload a video how the old switches worked? |
What dyson fan do you use? |
I came here to report the HomeKit behaviour and saw @tetra-fox post... thought I would post here instead of creating a new issue. On the old Dyson Integration it shows like the below (which is my preference)
|
the thing is, that the home assistant users never had the switch between normal and auto, that is what I added. It seems that homkit just doesn't support preset modes |
I did a quick bit of research and it looks like this behavior stems from the HomeKit integration, specifically these lines of code. When there is only one preset mode added to a However, it seems that this integration's implementation of preset modes is possibly incorrect, per the Fan Entity documentation.
and
stick out to me specifically. To elaborate, the first excerpt indicates to me that manual should not be a preset mode at all, as the manual preset essentially sets the fan speed percentage. The second excerpt suggests that because setting a percentage speed technically would not disable the manual preset, a switch or service should be created instead. I'd be more than happy to assist with modifying the implementation to better align with the Home Assistant documentation. |
I'm not sure if I read it correctly, but after the documantation it should show none instead of normal if automode is disabled? |
The documentation suggests that when no preset is selected (e.g., when auto mode is off), the The previous implementation seems more in line with the documentation: ha-dyson/custom_components/dyson_local/fan.py Lines 128 to 133 in a13917f
|
Option 1:
How can you deactivate the auto-Preset mode if you only have one preset?
(I don't want to adjust the speed but switch off the auto mode at the current speed)
Option 2: (preferred)
Add an normal or none preset mode to the Dyson Pure Cool Link or all fans.
The preset mode should also stay the same after you switch the device off and on again.
The text was updated successfully, but these errors were encountered: