private static void UpdateGroupName(LifxNetwork network, BulbGroup group, IBulb bulb)
        {
            var command = (SetTagLabels)PacketFactory.GetCommand(CommandType.SetTagLabels);

            command.Init(group.Bitmask, Encoding.UTF8.GetBytes(group.Name));
            network.SendCommand(bulb, command);
        }
        private static void SetGroups(LifxNetwork network, IBulb bulb, IEnumerable <BulbGroup> groups)
        {
            var command = (SetTags)PacketFactory.GetCommand(CommandType.SetTags);

            command.Init(GetBitmask(groups));

            network.SendCommand(bulb, command);
        }