ZHA: modify entity “light” to "valve” (not working)

Hi,

based on this thread Turning a "Light" entity to "Switch" entity - #9 by neilv

and the ZHA docs ZHA: modifying-the-device-type

I tried to change some light entities to valve (not switch)
in configuration.yaml:

 zha:
  device_config:
    a4:c1:38:58:51:40:33:c2-1:    # format: {ieee}-{endpoint_id}
      type: "valve"              # corrected device type

it “somehow” works, but the type changed to switch and not valve

Is this something that should work?
Or is type: "switch" the only allowed option here?
(And I’m supposed to change the switch to a valve with a helper later? Helper switch as x )

Based on the same ZHA docs you linked to (at the top) valve is not listed as a supported device type. Probably because the valve type was added to HA not that long ago. So you might want to search the forum if there already is an FR for it and vote for it, or add one if there isn’t.

Thank you - for the answer - I didn’t realise that

Seems there is no feature request for this (at least I didn’t found one). Anyway I’m planning to move to z2m …