Persist device that is taken offline during the day


I have two yeelight lamps set up using yeelight:

      name: living room
      name: bedroom

The one in the bedroom is always on and always available in HA, but the on in the living room can be plugged out during the day. This makes it disappear in HA and only a restart seems to be able to get it back when the device has been plugged in again.

Is there a setting I am missing to persist the bulbs?