Right now item.id doesn't work for equipped planar essences, where

item = Inspect.Item.Detail(item)

In fact, item.id is actually returning item.type for equipped planar essences (those slotted in a focus). It works fine for essences in your bags (not slotted)