Debug an error

Have the following error in config now.
With a lor of rules in place already - it’s hard to switch them off one by one. So is there any better way to debug? As the error log provides not so much detail

17-03-25 14:41:56 ERROR (MainThread) [homeassistant.core] Invalid service data for switch.turn_off: Entity ID  is an invalid entity id for dictionary value @ data['entity_id']. Got ''
17-03-25 14:42:17 WARNING (MainThread) [homeassistant.helpers.condition] Value cannot be processed as a number: unknown