ZigBee network has many advantages in terms of high availability, low power consumption and cost-effective device for constructing the wireless sensor network. For this reason, ZigBee network is the most attractive technology for home automation which allows users to designate home network and control home appliances depending on their ease. To improve the safety of home automation, messages exchanged through ZigBee network need to meet the appropriate security level, and it also provides various services to authorized users or would-be users such as visitors. For this reason, Attribute Based Proxy Re-encryption (ABPRE) is an enabling technology satisfying requirements mentioned before. In the paper, we apply an ABPRE scheme to ZigBee security. The proposal provides the delegation of the power and attribute based encryption. It is also reduces the number of key used for encryption.