lukasroegner / homebridge-dyson-pure-cool

Plugin for using the Dyson Pure Cool fans in homebridge.
MIT License
294 stars 51 forks source link

[Feature Request] Airflow Direction Support #252

Open Adryalin opened 2 years ago

Adryalin commented 2 years ago

Hello together,

Would it actually be possible to adjust the air jet via Homekit? In the Dyson app you can align the airflow direction almost 360 degrees. I discovered that a horizontal slider for the rotation speed has now been added. It would be nice if you could add a second slider to change the fan orientation. Slider in the middle = Dyson air jet in the middle. The Dyson then moves to the right and left according to the position you set.

I just tried to get on the Dyson with MQTT. But break now after 2h try and error.

As I found out now, it should be the MQTT command/response "osal" or "osau".

Greetings Adrian

----Because I'm German and don't speak English very well, I still have the German version here. :-) ----

Servus zusammen,

Wäre es eigentlich möglich über Homekit den Luftstrahl einzustellen? In der Dyson App kann man ja die Luftstrom Richtung nahezu 360Grad ausrichten. Habe entdeckt, dass mittlerweile ein horizontaler slider für die Rotation-Speed eingefügt wurde. Wäre irgendwie nice, wenn man einen zweiten Slider einfügen könnte mit dem man dann die Lüfter Ausrichtung verändern könnte. Slider mittig = Dyson Luftstrahl mittig. Rechts und Links fährt der Dyson dann entsprechend auf die Position den man einstellt.

Habe mal eben versucht mit MQTT auf den Dyson zu kommen. Aber breche nun nach 2h try and error ab.

So wie ich es nun herausgefunden habe, sollte es der MQTT Befehl/Rückmeldung "osal" oder "osau" sein.

Grüße Adrian

lukasroegner commented 2 years ago

Hi Adrian,

Generally, setting the osal and osau properties of the fans is not that big of an issue. The difficult part in this case is to find a HomeKit service that is viable for the "sliders". In HomeKit, you cannot just add a "UI element" to an accessory, you have to add a so called service with corresponding characteristics.

There are predefined services and characteristics from Apple that have a corresponding UI (in the Apple Home app). That means, we would have to find such a service (and its corresponding characteristics) that can be abused for settings the angle and direction of the airflow.

Another option would be to use custom characteristics. Those are not supported/displayed in the Apple Home app, however, you could use them in several third-party apps like the Eve app.

Adryalin commented 2 years ago

Hey Lukas,

It would be great if you could include the function. In my personal opinion it would be okay if you could control the direction via the Eve app. I would use NodeRed for automation and the Eve app for manual switching. If it doesn't cause you so much trouble, I would be very grateful for the integration! :-)

In the meantime, I've asked other Homebridge users if they also like the function. There were some who would also like to use this function.

Best regards, Adrian