Entity not Available when Yeelights devices are on power off stage / Devices being un-linked in Google Home App upon synchronization with HA

Hi, your suggestion/s please:

My set-up includes 9 Yeelight devices (3 ceiling lights, 3 LED strips and 3 pendant lights), I follow this links and everything works perfectly (Include Google Assitant).

However when I physically switch off Yeelight light (any one of them), the button or whatever card I configured for this device will show “Entity not available: light.xxx” in the HA, and the worst is when you run synchronization With Google assistant, Google will un-link & remove this device. You will have to redo the room assignment and etc after the power is resumed. Pretty hard to live with it.

Unlike other device, it shows “unavailable” when the power is off; Device remains linked in Google home and you do not have to do anything after the power is resumed, everything will back to normal.

The only way I found so far is to remain the power on, but this is not ideal and practical to me.

Yes, I can add Yeelight in Google Home, but it also mean i could not control them in HA; It also creates “double entry” when the power is resumed if have the configuration below:

discovery:
  ignore:
    - homekit
    - yeelight

yeelight:
  devices:
    192.168.x.x:
      name: Bedroom 2 Ceiling Light
    192.168.x.x:
      name: Bedroom 3 Ceiling Light
    192.168.x.x:
      name: Kitchen Ceiling Light
    192.168.x.x:
      name: Livingroom LED Strip 1
    192.168.x.x:
      name: Livingroom LED Strip 2
    192.168.x.x:
      name: Livingroom LED Strip 3
    192.168.x.x:
      name: Diningroom Pendant Light 1
    192.168.x.x:
      name: Diningroom Pendant Light 2
    192.168.x.x:
      name: Diningroom Pendant Light 3

Is there a better way I could keep the entities in HA when the power is off for Yeelight devices? Or I could integrate Yeelight products like how HA integrates with SmartThings?

FYI the devices with power off stage are not removed in Yeelights app but only HA.

Your help or advise is much appreciated.

Regards,
Terence

This issue seems resolved by adding the model number to each device, credit to zewelor

yeelight:
devices:
192.168.8.XXX:
name: Bedroom 2 Ceiling Light
model: ceiling1
192.168.8.XXX:
name: Bedroom 3 Ceiling Light
model: ceiling1
192.168.8.XXX:
name: Kitchen Ceiling Light
model: ceiling1
192.168.8.XXX:
name: Livingroom LED 1
model: strip1
192.168.8.XXX:
name: Livingroom LED 2
model: strip1
192.168.8.XXX:
name: Livingroom LED 3
model: strip1
192.168.8.XXX:
name: Livingroom Pendant 1
model: color1
192.168.8.XXX:
name: Livingroom Pendant 2
model: color1
192.168.8.XXX:
name: Livingroom Pendant 3
model: color1