Dyson Heat + Cool Fan and IR Blaster

Hi,
So I currently have been using the broadcom rm pro for controlling IR devices, but I was wondering what the best way for HA to keep track of the device is, specifically for the Dyson fan.

I’ve worked out if HA isnt showing what the fan is currently set to sending the following commands can recalibrate what HA thinks the device state is and what it actually is, the caveat is that the on/off state at the least is correct.

So basically sending these commands will get them both in sync

  1. Power off and then on the device (resets swing)
  2. Send the same heating up command 37 times.
  3. Lower the fan speed to the lowest.
  4. Lower the heat to the lowest

Then home assistant will know the state of swing, heating setpoint and the fan speed.
What I dont currently know is the best way to layout everything in home assistant and how I would go about sending all those commands and resetting switch states and things of the like. Plus if its even possible I would like it so that unless the device is actually turned on in home assistant it wont let you toggle some of the other switches like the swing or heat setpoint as that would then make the devices unsynced.

The things that I would like to have intergrated into home assistant in the end would be:

Current Mode (Heating / Fan)

Heat Mode

Raise Heat
Heat Setpoint (1-37)
Lower Heat

Fan Mode

Raise Fan Speed
Fan Speed (1-10)
Lower Fan Speed

Focused Air
Spread Air
Swing Fan