Hello, found an other script to update HA GUI when the fan speed is changed in the Dyson app. This one not only works at the power on value but keeps both values in sync.
alias: >-
[Integration] - Fan Speed: Update HA GUI from Dyson Fan
Speed Changes
description: ''
trigger:
- platform: template
value_template: >-
{% if (states.fan.dyson_pure_hot_cool.attributes.speed|int) !=
(states.input_number.dyson_pure_hot_cool_integration_fan_speed.state|int)
%}true{%endif%}
condition: []
action:
- service: input_number.set_value
data:
value: '{{states.fan.dyson_pure_hot_cool.attributes.speed|int}}'
entity_id: input_number.dyson_pure_hot_cool_integration_fan_speed
mode: single
initial_state: 'on'
So this has been bugging me for weeks and Iāll mess with it than give up.
I have a working Lovelace card for my Dyson Fan. I have a set input in my config but i cannot get the card to update if i change the fan speed through the Dyson App or the remote control. I swear I use to have it working before but months ago. I am trying the above automation but it does not seem to work.
The only difference I have here is my fan is called āfan.dyson_officeā and my input_number is 'input_number.dyson_fan_speed