Floorplan stopped working

my floorplan was working fine then some of the toggles stopped working no apparent reason and some of them give error “no entity provided for more info dialog” atteches is a pic of the code


, please help im baffled


error only on certain light not every light