Fan custom UI slider

Hello,

I would like to know if it’s possible to make this slider from custom UI control the fan speed.

I have a dyson fan with 10 speed, i used the “custom_ui_state_card” to add the slider with the 10 positions.

It would be awsome to be able to make it work somehow.

Here is the code i used in customize_glob:

fan.salon:
  custom_ui_state_card: state-card-custom-ui
  state_card_mode: single-line
  slider_theme:
    min: 0
    max: 10
    pin: true
    off_when_min: false
    report_when_not_changed: false

Any kind of help will be awsome.

Thanks.

Off the top of my head I would think no, because the slider in custom_ui is not a universal slider, but a ‘brightness’ slider, so probably specifically links to the light/brightness service.

Unless someone can tell you how to link it to your fan speed, then you’re going to need an input_number on the line below I think.

(totally happy to be wrong on this btw, and hope someone can help you get it working as desired)

Hello, I really hope that it’s possible. It’s would look perfect on the ui card and it could be also be helpfull for the community.

I will keep my finger crossed and hope someone will come with à fix.

Thank you and have a nice day.

I have finally make my button “oscillate” working fine for the dyson link fan.

I used the input_boolean to achiver this and it was quit difficult for me to understand the process. I want to share my code for the peeople interested:

input_boolean:
  fan:
    name: Fan
    initial: off

 - alias: 'Oscillate On'
   trigger:
     - platform: state
       entity_id: input_boolean.fan
       to: 'on'
   action:
     - service: script.turn_on
       entity_id: script.1516402506314
     
 - alias: 'Oscillate Off'
   trigger:
     - platform: state
       entity_id: input_boolean.fan
       to: 'off'
   action:
     - service: script.turn_on
       entity_id: script.1516402701204

'1516402506314':
  alias: Fan oscillate on
  sequence:
  - data:
  entity_id: fan.salon
  oscillating: 'true'
service: fan.oscillate

'1516402701204':
  alias: Fan oscillate off
  sequence:
  - data:
  entity_id: fan.salon
  oscillating: 'false'
service: fan.oscillate

Hope it will help.

could you show your configuration of card? looks cool, but don’t understand how to access pm2.5 or Noc level from dyson.

This card won’t work anymore with lovelace. Sorry.