I have the same problem with the code not showing the light as a dimmer in HA. Were you able to figure out a fix?