I had this exact same problem. The issue is that Containers and Storage don't have an energy property; instead, because they can hold more than energy, they have a "store" property. Take a look at the documentation for the details: http://support.screeps.com/hc/en-us/articles/208436805-StructureStorage . I split my filter conditions into two parts to account for this. Hope that helps.
Posts made by Marikai
-
RE: Can't make harvesters put into containers or storage by type or ID